Clean up StdDDraw2.h a little

Günther Brammer 2011-10-03 17:19:51 +02:00
parent 1cafba4be8
commit 20b71f030a
3 changed files with 3 additions and 20 deletions

View File

@ -136,6 +136,7 @@ class StdMesh;
class StdMeshBone;
class StdMeshInstance;
class StdMeshMaterial;
class StdMeshMatrix;
class StdMeshSkeletonLoader;
class C4Draw;
class C4AbstractApp;

View File

@ -42,7 +42,6 @@
// Global access pointer
C4Draw *pDraw=NULL;
int iGfxEngine=-1;
// Transformation matrix to convert meshes from Ogre to Clonk coordinate system
const StdMeshMatrix C4Draw::OgreToClonk = StdMeshMatrix::Scale(-1.0f, 1.0f, 1.0f) * StdMeshMatrix::Rotate(float(M_PI)/2.0f, 1.0f, 0.0f, 0.0f) * StdMeshMatrix::Rotate(float(M_PI)/2.0f, 0.0f, 0.0f, 1.0f);
@ -1250,7 +1249,7 @@ void C4Draw::RemoveZoom(float & X, float & Y)
bool DDrawInit(C4AbstractApp * pApp, bool Editor, bool fUsePageLock, unsigned int iXRes, unsigned int iYRes, int iBitDepth, int Engine, unsigned int iMonitor)
{
// create engine
switch (iGfxEngine = Engine)
switch (Engine)
{
default: // Use the first engine possible if none selected
#ifdef USE_DIRECTX

View File

@ -30,32 +30,15 @@
#include <C4windowswrapper.h>
#endif
// texref-predef
class C4Draw;
class C4TexRef;
class C4Surface;
struct CStdPalette;
class CStdGLCtx;
class C4AbstractApp;
class C4Window;
class StdMeshMatrix;
class StdMeshMaterial;
class StdMeshInstance;
// engines
#define GFXENGN_DIRECTX 0
#define GFXENGN_OPENGL 1
#define GFXENGN_DIRECTXS 2
#define GFXENGN_NOGFX 3
// Global DDraw access pointer
// Global Draw access pointer
extern C4Draw *pDraw;
extern int iGfxEngine;
// font def color indices
// rotation info class
class C4BltTransform
{