|
Clove
A Simple Physics Engine to simulate Hooke's law in a 2D environment
|
Draw Shapes and Objects in the Simulator. More...
#include <Drawable.h>
Public Member Functions | |
| void | draw () |
Protected Attributes | |
| std::vector< float > | vertices |
| Shape Corners. | |
| std::vector< unsigned int > | indices |
| Use to select specific vertices to draw. | |
| unsigned int | numberOfVertices = 0 |
| How many Vertices we wish to draw. | |
| unsigned int | vertexLocation = 0 |
| Vertex attribute index in Shader. | |
| unsigned int | vertexSize = 0 |
| How many dimensions is the vector. | |
| unsigned int | stride = 0 |
| The space between consectuive vertex attributes (In Bytes). | |
| const void * | byteOffset = nullptr |
| Offset in VBO. | |
| VAO | ArrayObject |
| VBO | BufferObject |
| EBO | ElementBufferObject |
Draw Shapes and Objects in the Simulator.