Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

D:/Programming/GUI Editor (Source)/OpenGLTexture.h

00001 // OpenGLTexture.h: interface for the COpenGLTexture class. 00002 // 00004 00005 #if !defined(AFX_OPENGLTEXTURE_H__8DF78D3D_F090_4E13_93BB_8906C272AD09__INCLUDED_) 00006 #define AFX_OPENGLTEXTURE_H__8DF78D3D_F090_4E13_93BB_8906C272AD09__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "Texture.h" 00014 00018 class COpenGLTexture : public CTexture 00019 { 00020 CREATOR(CTextureManager); 00021 protected: 00022 00023 COpenGLTexture(); 00024 virtual ~COpenGLTexture(); 00025 00031 virtual int LoadXML(TiXmlNode *pDataNode, CString strFilename); 00037 virtual int SaveXML(TiXmlNode *pDataNode, CString strFilename); 00042 void Destroy(); 00047 virtual void Release(); 00052 void Bind(); 00057 UINT Create(); 00062 virtual bool IsOfType(eEntityType eType); 00063 00064 private: 00065 //---------------------------------------------------------------------- 00066 // OpenGL related members 00067 //-- 00068 UINT m_uiGLTextureID; 00069 UINT m_uiGLFormat; 00070 UINT m_uiGLInternalFormat; 00071 UINT m_uiPixelStride; 00073 }; 00074 00075 bool CheckSize(UINT Size); 00076 00077 #endif // !defined(AFX_OPENGLTEXTURE_H__8DF78D3D_F090_4E13_93BB_8906C272AD09__INCLUDED_)

Generated on Sun Jul 17 21:34:28 2005 for OpenGL GUI by doxygen 1.3.8