"L. Spiro Engine"
|
00001 00016 #ifndef __LSG_OPENGLESFLOATTEXTURE_H__ 00017 #define __LSG_OPENGLESFLOATTEXTURE_H__ 00018 00019 #include "../LSGGraphicsLib.h" 00020 #include "../Texture/LSGTextureBase.h" 00021 #include "LSGOpenGlEsStandardTexture.h" 00022 00023 #ifdef LSG_OGLES 00024 00025 namespace lsg { 00026 00033 class COpenGlEsFloatTexture : public CTextureBase { 00034 public : 00035 // == Various constructors. 00036 LSE_CALLCTOR COpenGlEsFloatTexture(); 00037 virtual LSE_CALLCTOR ~COpenGlEsFloatTexture(); 00038 00039 00040 // == Functions. 00044 virtual LSVOID LSE_CALL Reset(); 00045 00052 virtual LSBOOL LSE_CALL Activate( LSUINT32 _ui32Slot ); 00053 00057 LSVOID LSE_CALL DeActivate(); 00058 00059 protected : 00060 // == Members. 00064 GLuint m_uiDepthId; 00065 00066 00067 // == Functions. 00073 LSBOOL LSE_CALL CreateApiTexture(); 00074 00078 LSVOID LSE_CALL ResetApi(); 00079 00085 virtual LSBOOL LSE_CALL SetAsDepthStencilRenderTarget() const; 00086 00090 LSVOID LSE_CALL EndAsRenderTarget() const; 00091 00092 00093 private : 00094 typedef CTextureBase Parent; 00095 }; 00096 00097 00098 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00099 // DEFINITIONS 00100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00101 00102 00103 } // namespace lsg 00104 00105 #endif // #ifdef LSG_OGLES 00106 00107 #endif // __LSG_OPENGLESFLOATTEXTURE_H__