Platform_Win32_3D_Texture.h
Go to the documentation of this file.00001 00011 #ifndef __Platform_Win32_3D_Texture_H__ 00012 #define __Platform_Win32_3D_Texture_H__ 00013 00014 // Includes 00015 #include "Platform_3D_Texture.h" 00016 00017 // Forward declares 00018 class Platform_Win32_3D; 00019 class Platform_Win32_3D_Technology; 00020 class Image; 00021 class Asset; 00022 00023 // Platform_Win32_3D_Texture 00024 class Platform_Win32_3D_Texture: public Platform_3D_Texture 00025 { 00026 public: 00027 Platform_Win32_3D_Texture( 00028 Platform_Win32_3D* win32_3d, 00029 const Asset& asset 00030 ); 00031 00032 Platform_Win32_3D_Texture( 00033 Platform_Win32_3D* win32_3d, 00034 const Image& image 00035 ); 00036 00037 virtual ~Platform_Win32_3D_Texture(); 00038 00039 void Reset(Platform_Win32_3D_Technology* technology); 00040 00041 virtual void Bind(int stage); 00042 00043 virtual int GetWidth(); 00044 virtual int GetHeight(); 00045 virtual bool HasAlphaChannel(); 00046 00047 virtual void Lock(); 00048 virtual void Unlock(); 00049 virtual unsigned char* GetTexelData(); 00050 virtual int GetPitch(); 00051 00052 private: 00053 Platform_Win32_3D* win32_3d_; 00054 int width_; 00055 int height_; 00056 int size_; 00057 unsigned char* textureData_; 00058 Platform_3D_Texture* technologyTexture_; 00059 }; 00060 00061 #endif /* __Platform_Win32_3D_Texture_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
