prepare for GPU cloth/softbody

This commit is contained in:
erwincoumans
2013-05-06 18:35:34 -07:00
parent b882211769
commit 25fe5f4a77
11 changed files with 5259 additions and 8 deletions

View File

@@ -53,9 +53,13 @@ public:
void RenderScene(void);
void CleanupShaders();
void updateShape(int shapeIndex, const float* vertices);
///vertices must be in the format x,y,z, nx,ny,nz, u,v
int registerShape(const float* vertices, int numvertices, const int* indices, int numIndices, int primitiveType=B3_GL_TRIANGLES);
int registerShape(const float* vertices, int numvertices, const int* indices, int numIndices, int primitiveType=B3_GL_TRIANGLES, int textureIndex=-1);
int registerTexture(const unsigned char* texels, int width, int height);
///position x,y,z, quaternion x,y,z,w, color r,g,b,a, scaling x,y,z
int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling);