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