Clove
A Simple Physics Engine to simulate Hooke's law in a 2D environment
Loading...
Searching...
No Matches
Drawable Class Reference

Draw Shapes and Objects in the Simulator. More...

#include <Drawable.h>

Inheritance diagram for Drawable:
Rectangle Square

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

Detailed Description

Draw Shapes and Objects in the Simulator.


The documentation for this class was generated from the following file: