cs sdk v 1.14 released
Home | Product | Documents | Tutorials | FAQ | Download | Forum | Contacts | Link
Cross Suit
Cross Suit SDK
LUA tutorials
Support
Product parts
Virtual File system
Demo Games
3D Engine
gvSystem(dx9)
Link
00001 #pragma once 00002 00003 #ifndef __GM_VB_H__ 00004 #define __GM_VB_H__ 00005 00006 //#undef struct _v 00010 class gm_vb 00011 { 00012 private: 00013 void* m_p_vertexbuffer; 00014 void* m_pVBTemp; 00015 int m_nNumVertices; 00016 int m_nVertexSize; 00017 bool m_bLocked; 00018 int m_iPrimType; // tirangle strip,list.. 00022 void *gethandle(void); 00026 void* getvertexbuffer(void); 00027 00028 public: 00030 gm_vb(void); 00032 ~gm_vb(void); 00039 void* getvbtemp(void); 00040 int getvertexsize(void); 00041 int getnumvertices(void); 00042 bool create_vertex_buffer(int VertexSize, int NumVertices,int PrimType); 00043 00044 bool set(void* VertexData,int FirstVertex, int NumVertices); 00045 bool set(void* VertexData); 00046 bool free(void); 00050 bool isloaded(void); 00054 void render(void); 00058 bool lock(void); 00062 bool unlock(void); 00063 }; 00064 00065 #endif 00066 // 00067 // 00068 // 00069
Copyright(C) gvSystem & GamePlus All Rights Reserved.