Update of /cvsroot/fftrader/fftrader3d/src/engine
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9024/src/engine
Modified Files:
main.h
Added Files:
gfxconsole.cpp gfxconsole.h
Removed Files:
console.cpp console.h
Log Message:
Index: main.h
===================================================================
RCS file: /cvsroot/fftrader/fftrader3d/src/engine/main.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** main.h 5 Jan 2005 22:06:00 -0000 1.1
--- main.h 9 Jan 2005 05:10:14 -0000 1.2
***************
*** 15,19 ****
#include "entity.h"
! #include "console.h"
#include "model.h"
--- 15,19 ----
#include "entity.h"
! #include "gfxconsole.h"
#include "model.h"
--- console.h DELETED ---
--- console.cpp DELETED ---
--- NEW FILE: gfxconsole.h ---
#ifndef GFXCONSOLE_H
#define GFXCONSOLE_H
#include <common/console.h>
#include <gltext.h>
class GraphicsConsole : public Console
{
public:
virtual void render();
};
#endif
--- NEW FILE: gfxconsole.cpp ---
#include "gfxconsole.h"
#include <gl/gl.h>
void GraphicsConsole::render()
{
gltext::FontPtr myFont(gltext::OpenFont("fonts/arial.ttf", 14));
gltext::FontRendererPtr myRenderer(gltext::CreateRenderer(gltext::MIPMAP, myFont));
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4ub(255, 255, 255, 255);
glPushMatrix();
glTranslatef(0, 0, 0);
myRenderer->render("This is the end, my friend.. see you soon again :(");
glPopMatrix();
glDisable(GL_BLEND);
}
|