Platform_Win32_3D_IndexBuffer.h
Go to the documentation of this file.00001 00011 #ifndef __Platform_Win32_3D_IndexBuffer_H__ 00012 #define __Platform_Win32_3D_IndexBuffer_H__ 00013 00014 // Includes 00015 #include "Platform_3D_IndexBuffer.h" 00016 00017 // Forward declares 00018 class Platform_Win32_3D; 00019 class Platform_Win32_3D_Technology; 00020 00021 // Platform_Win32_3D_IndexBuffer 00022 class Platform_Win32_3D_IndexBuffer: public Platform_3D_IndexBuffer 00023 { 00024 public: 00025 Platform_Win32_3D_IndexBuffer( 00026 Platform_Win32_3D* win32_3d, 00027 int indexCount, 00028 bool dynamic 00029 ); 00030 00031 void Reset(Platform_Win32_3D_Technology* technology); 00032 00033 virtual ~Platform_Win32_3D_IndexBuffer(); 00034 00035 virtual void Lock(int startIndex = 0, int indexCount = 0); 00036 00037 virtual void Unlock(); 00038 00039 virtual unsigned short* GetIndexData(); 00040 00041 virtual int GetIndexStride(); 00042 00043 virtual void Bind(); 00044 00045 private: 00046 Platform_Win32_3D* win32_3d_; 00047 int indexCount_; 00048 bool dynamic_; 00049 unsigned short* indexData_; 00050 bool locked_; 00051 Platform_3D_IndexBuffer* technologyIndexBuffer_; 00052 }; 00053 00054 #endif /* __Platform_Win32_3D_IndexBuffer_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
