From a19b480fa2b2eee0e38773c05d856b71701c1b87 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 11 Sep 2000 23:52:04 +0000 Subject: [PATCH] --- source/paul/paul.cpp | 118 +++++++++++++++++++++++++++++++++++++++++++ source/paul/paul.h | 60 ++++++++++++++++++++++ 2 files changed, 178 insertions(+) create mode 100644 source/paul/paul.cpp create mode 100644 source/paul/paul.h diff --git a/source/paul/paul.cpp b/source/paul/paul.cpp new file mode 100644 index 000000000..668ba488e --- /dev/null +++ b/source/paul/paul.cpp @@ -0,0 +1,118 @@ +/*========================================================================= + + paul.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2000 Climax Development Ltd + +===========================================================================*/ + + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "paul\paul.h" + +#ifndef __SYSTEM_DBG_H__ +#include "system\dbg.h" +#endif + +#ifndef __GFX_FONT_H__ +#include "gfx\font.h" +#endif + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ +static FontBank s_fontBank; + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPaulScene::init() +{ + setActiveDbgChannels(DC_PAUL); + PAUL_DBGMSG("this is a message.."); + PAUL_DBGMSG("this is a message.. 2"); + PAUL_DBGMSG("this is a message.. 3"); + + s_fontBank.initialise(&standardFont); +} + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPaulScene::shutdown() +{ +} + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPaulScene::render() +{ + int logCount; + int i,y,charHeight; + + logCount=getNumberOfDbgLinesInLog(); + y=20; + charHeight=s_fontBank.getCharHeight(); + for(i=0;i