- implement model vertex buffer and draw MD2 models using it instead of using the GLCommands from the model.
This commit is contained in:
parent
2cd1118aad
commit
1efc2938b7
10 changed files with 121 additions and 136 deletions
|
|
@ -193,6 +193,7 @@ struct FModelVertex
|
|||
class FModelVertexBuffer : public FVertexBuffer
|
||||
{
|
||||
int mIndexFrame[2];
|
||||
unsigned int ibo_id;
|
||||
|
||||
public:
|
||||
// these are public because it's the models having to fill them in.
|
||||
|
|
@ -203,7 +204,7 @@ public:
|
|||
~FModelVertexBuffer();
|
||||
|
||||
void BindVBO();
|
||||
void UpdateBufferPointers(int frame1, int frame2);
|
||||
unsigned int SetupFrame(unsigned int frame1, unsigned int frame2, float factor);
|
||||
};
|
||||
|
||||
#define VMO ((FModelVertex*)NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue