From 681b48343d4d109592f8208881f6547a5ddac472 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Wed, 15 Aug 2001 07:53:04 +0000 Subject: Added a README. Added the HUD font drawing code. now stubs2.cpp is no longer needed. --- src/stubs2.cpp | 107 --------------------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 src/stubs2.cpp (limited to 'src/stubs2.cpp') diff --git a/src/stubs2.cpp b/src/stubs2.cpp deleted file mode 100644 index a68ba99..0000000 --- a/src/stubs2.cpp +++ /dev/null @@ -1,107 +0,0 @@ -#include -#include -#include - -#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"); -} -- cgit v1.3