summaryrefslogtreecommitdiff
path: root/src/stubs2.cpp
blob: a68ba9972504ddc4c09264f4145f4ceee9a042a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "fixer.h"

#include "3dc.h"
#include "platform.h"
#include "indexfnt.hpp"

/* indexfnt.cpp */
IndexedFont* IndexedFont :: pIndexedFont[ IndexedFonts_MAX_NUMBER_OF_FONTS ];

IndexedFont::IndexedFont(FontIndex I_Font_New)
{
	fprintf(stderr, "IndexedFont::IndexedFont(%d)\n", I_Font_New);
	
	I_Font_Val = I_Font_New;
	                
	pIndexedFont[ I_Font_New ] = this;	                                
}

IndexedFont::~IndexedFont()
{
	fprintf(stderr, "IndexedFont::~IndexedFont()\n");
}

void IndexedFont::UnloadFont(FontIndex I_Font_ToGet)
{
	fprintf(stderr, "IndexedFont::UnloadFont(%d)\n", I_Font_ToGet);
}

OurBool IndexedFont::bCanRenderFully(ProjChar* pProjCh)
{
	fprintf(stderr, "IndexedFont::bCanRenderFully(%p)\n", pProjCh);
	
	return 0;
}

void IndexedFont_Proportional_PF::PFUnLoadHook(FontIndex I_Font_ToGet)
{
	fprintf(stderr, "IndexedFont_Proportional_PF::PFUnLoadHook(%d)\n", I_Font_ToGet);
}

IndexedFont_HUD::IndexedFont_HUD(FontIndex I_Font_New) : IndexedFont(I_Font_New)
{
	fprintf(stderr, "IndexedFont_HUD::IndexedFont_HUD(%d)\n", I_Font_New);
}

void IndexedFont_HUD :: RenderString_Clipped
(
	struct r2pos& R2Pos_Cursor,
	const struct r2rect& R2Rect_Clip,
	int FixP_Alpha,// FixP_Alpha,
        const SCString& SCStr
) const
{
	fprintf(stderr, "IndexedFont_HUD :: RenderString_Clipped(stuff, stuff, %d, stuff)\n", FixP_Alpha);
}

void IndexedFont_HUD :: RenderString_Unclipped
(
        struct r2pos& R2Pos_Cursor,
        int FixP_Alpha, //  FixP_Alpha,
        const SCString& SCStr
) const
{
	fprintf(stderr, "IndexedFont_HUD :: RenderString_Unclipped: shouldn't be called!\n");
	exit(EXIT_FAILURE);
}

r2size IndexedFont_HUD :: CalcSize
(
        ProjChar* pProjCh
) const
{
        r2size R2Size_Return
        (
                0,
                GetHeight()
        );

	fprintf(stderr, "IndexedFont_HUD :: CalcSize(%p)\n", pProjCh);

	return R2Size_Return;
}

void IndexedFont_HUD :: RenderChar_Clipped
(
        struct r2pos& R2Pos_Cursor,
        const struct r2rect& R2Rect_Clip,
        int, // FixP_Alpha,
        ProjChar ProjCh
) const
{
	fprintf(stderr, "IndexedFont_HUD :: RenderChar_Clipped(stuff, stuff, stuff, stuff)\n");
}

void IndexedFont_HUD :: RenderChar_Unclipped
(
        struct r2pos& R2Pos_Cursor,
        int, // FixP_Alpha,
        ProjChar ProjCh
) const
{
	fprintf(stderr, "IndexedFont_HUD :: RenderChar_Unclipped(stuff, stuff, stuff)\n");
}