# TestFrameWork::OpenglDriver Class Reference

List of all members.

## Public Member Functions
| OpenglDriver (OpenglVersion version, HDC canvasContext, size_t width, size_t height, int depth, int samples)
void | BeginFrame (void)
void | EndFrame (void)
size_t | CreateVertexBuffer (Vertices vertices, size_t verticesCount)
size_t | CreateIndexBuffer (Indices32 indices, size_t indicesCount)
OpenglProgramWeakPtr | CreateProgram (const std::vector< ShaderFileDesc > &shaders)
OpenglTextureWeakPtr | CreateTexture (TextureData data, OpenglTextureFormat format, size_t width, OpenglTextureFilter filter, OpenglTextureEdgeValue edge)
OpenglTextureWeakPtr | CreateTexture (TextureData data, OpenglTextureFormat format, size_t width, size_t height, OpenglTextureFilter filter, OpenglTextureEdgeValue edge)
OpenglTextureWeakPtr | CreateTexture (TextureData data, OpenglTextureFormat format, size_t width, size_t height, size_t depth, OpenglTextureFilter filter, OpenglTextureEdgeValue edge)
void | SetProgram (OpenglProgramWeakPtr program)
void | SetTexture (OpenglTextureWeakPtr texture, int textureUnit)
void | DrawIndexedPrimitive (OpenglPrimitive primitive, size_t vertexBufferId, size_t indexBufferId, size_t primitivesCount=1)
void | GetMaximumTextureSize (OpenglTextureFormat format, size_t &width, size_t &height)
void | Draw2DString (const std::string &s, size_t x, size_t y, const Vector3 &color)

## Member Function Documentation

void OpenglDriver::DrawIndexedPrimitive | ( | OpenglPrimitive | primitive,
|  | size_t | vertexBufferId,
|  | size_t | indexBufferId,
|  | size_t | primitivesCount = `1` |
| ) |  |  |

TODO: Fixed index type to 32bits

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

- src/TaskBasedFlockSim/OpenglDriver.h
- src/TaskBasedFlockSim/OpenglDriver.cpp