-
Notifications
You must be signed in to change notification settings - Fork 9
Object Class
Add a list of vertices and indices statically into object. The indices are indexed at 0 so lazy method is do a quick loop. The two arrays need to be pushed into buffers.
Clear the list of vertices and indices.
Updates the angle and will rotate the model accordingly with some help from GLM.
The shader code (look in shader.cpp) expects vertex data at location 0 and colors at location 1. These locations must be enabled and disabled at the end. These two locations will then receive the data which was stored in the vertex object. The vertex and index buffers must be bound. The draw call must be made.
Returns the model of the object.
The model matrix of 4x4 that represents the object in space.
The buffer of each vertex in the object.
The buffer to hold Indices of the cube. All objects are made up of vertices and this list is what connection each vertex has in order to form a triangle.
The value that will point to the list of vertices in the GPU.
The value that will point to the list of indices in the GPU.
Used to rotate the cube throughout time.
The statics vertices and indices are changed when writing a model loader.

.png)