// // File: background.h // // G A M E.O.N.E - LOW LEVEL LIB V1.0 // Copyright (C) 2001 LEVEL ONE ENTERTAINMENT, // Licensed under the terms of LGPL. //:--------------------------------------------------------------------------- //:Description // // FRAMEWORK global object class BACKGROUND // //:--------------------------------------------------------------------------- ////////////////////////////////////////////////////////////////////// #if !defined(_BACKGROUND_H) #define _BACKGROUND_H #include "llfrm_layer.h" #include "../llgfx_blit.h" class CBackground : public CLayer { public: CBackground(); virtual ~CBackground(); virtual void Action(float delta); virtual void Draw(llgfx_id id); virtual bool ParseMsg(const char *Type ); llgfx_id m_gfx; // current gfx to display llgfx_id m_stretchgfx; // temp llgfx_id m_blurgfx; // gfx für fixalpha TxU32 m_clearcolor; int m_blitmode; float m_rotate; typedef enum { NONE, CLEAR, TILE, TILE_CENTERED, STRETCH, SNAPSHOT, // erstellt kopie vom aktuellen backbuffer und verwendet diesen dann } eBlitmodeBackground; private: void DrawToGfx(llgfx_id dstgfx); }; #endif // !defined(_BACKGROUND_H)