Show kmode.h syntax highlighted
/*
Copyright (C) 2003, 2004, 2005 by Luca Cappa
Written by Luca Cappa groton@users.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __KMODE_H__
#define __KMODE_H__
struct iEngine;
struct iGraphics3D;
struct iLoader;
struct iMaterialWrapper;
struct iMeshWrapper;
struct iSprite3DState;
struct iSprite3DFactoryState;
class csTransform;
struct iPolygon3D;
struct iCollideSystem;
struct iGeneralMeshState;
struct iSprite2DState;
class csVector3;
class BlockId;
class KCamera;
class KFlags;
class csBox3;
class KMode
{
public:
/**
* States in which this object could be. Basically, a state indentify an image to display.
*/
enum KMODE_STATE
{
NONE = 0,
EDITING,
MISSION1,
MISSION2,
MISSION3,
REPLAY
};
private:
csRef<iGraphics3D> mG3d;
csRef<iEngine> mEngine;
csRef<iFontServer> mFontServer;
csRef<iSprite2DState> mSpr2dState;
csRef<iMeshWrapper> mSpr2dMW;
csRef<iMaterialWrapper> mEditingMat;
csRef<iMaterialWrapper> mMission1Mat;
csRef<iMaterialWrapper> mMission2Mat;
csRef<iMaterialWrapper> mMission3Mat;
csRef<iMaterialWrapper> mReplayMat;
public:
KMode ();
virtual ~KMode ();
void Initialize ();
void SetDisplay (KMODE_STATE);
void SetupFrame (KCamera* p_kcam, float);
csPtr<iTextureWrapper> KMode::CreateTextureText (char const* pText,
/*size_t pWidth, size_t pHeight,*/ csColor /*const*/& pTransColor);
};
#endif // __KMODE_H__
See more files for this project here