Refactoring structs Part 1
This commit is contained in:
@ -10,11 +10,11 @@
|
||||
|
||||
/**
|
||||
* Creates a new primitive.
|
||||
* @param primitive Primitive to initialize.
|
||||
* @param verticeCount How many vertices can the primitive hold.
|
||||
* @param indiceCount How many indices can the primitive hold.
|
||||
* @return The newly created primitive ready to be buffered to.
|
||||
*/
|
||||
primitive_t * primitiveCreate(int32_t verticeCount, int32_t indiceCount);
|
||||
void primitiveInit(primitive_t *primitive, int32_t verticeCount, int32_t indiceCount);
|
||||
|
||||
/**
|
||||
* Buffer Vertices to a primitive for use in rendering.
|
||||
@ -47,7 +47,7 @@ void primitiveBufferIndices(primitive_t *primitive,
|
||||
void primitiveDraw(primitive_t *primitive, int32_t start, int32_t count);
|
||||
|
||||
/**
|
||||
* Cleanup a previously created primitive.
|
||||
* Cleanup a previously initialized primitive.
|
||||
* @param primitive Primitive to cleanup.
|
||||
*/
|
||||
void primitiveDispose(primitive_t *primitive);
|
Reference in New Issue
Block a user