#include <GL/glut.h>
#include <vector>
#include <string>
Go to the source code of this file.
Classes | |
class | Shader |
Basic element for turning shaders on and off. More... | |
class | Texture |
Element for setting texture states in OpenGL. More... | |
class | RFBuffer |
Render / Frame Buffer. More... | |
class | VertexData |
Vertex Buffer Object. More... | |
class | IndexData |
Index Data. More... | |
Enumerations | |
enum | TextureType { TTGRAYSCALE = 0, TTRGB, TTRGBA, TTRGBA16, TTRGBA32, TTUNDEFINED } |
Texture type for use with CPPGPGPU. More... | |
Functions | |
void | DrawSquare () |
Draw a single square from [-1,-1] to [1,1]. | |
void | DrawGeometry (VertexData **vd, string *vsVertexNames, int iNumVertexDatas, IndexData *id, Shader *sShader) |
Draw the Index Data id using the specified vertex data and shader using GL_POINTS. | |
void | DrawGeometrySolid (VertexData **vd, string *vsVertexNames, int iNumVertexDatas, IndexData *id, Shader *sShader, int facecount) |
Draw the Index Data id using the specified vertex data and shader using GL_TRIANGLES. | |
void | SetupForDataRun () |
Setup matricies for computation. | |
void | PopFromDataRun () |
Special command, for reversing effect of SetupForDataRun. | |
void | StripDataFromBuffer (int ix, int iy, int iwidth, int iheight, TextureType tt, char *buffer) |
Strip data from the render/frame buffer into a vertex buffer object. | |
int | OpenPPM (const char *sPPMName, unsigned char **buffer, int *width, int *height) |
enum TextureType |
void DrawGeometry | ( | VertexData ** | vd, | |
string * | vsVertexNames, | |||
int | iNumVertexDatas, | |||
IndexData * | id, | |||
Shader * | sShader | |||
) |
Draw the Index Data id using the specified vertex data and shader using GL_POINTS.
Definition at line 771 of file OGLParts.cpp.
void DrawGeometrySolid | ( | VertexData ** | vd, | |
string * | vsVertexNames, | |||
int | iNumVertexDatas, | |||
IndexData * | id, | |||
Shader * | sShader, | |||
int | facecount | |||
) |
Draw the Index Data id using the specified vertex data and shader using GL_TRIANGLES.
Definition at line 792 of file OGLParts.cpp.
void DrawSquare | ( | ) |
int OpenPPM | ( | const char * | sPPMName, | |
unsigned char ** | buffer, | |||
int * | width, | |||
int * | height | |||
) |
OpenPPM Utility function - This isn't ordinarily used, but has been found to be useful. It allocates a buffer, and you give it pointers to width and height. 0 return indicates a failed load.
void PopFromDataRun | ( | ) |
Special command, for reversing effect of SetupForDataRun.
Definition at line 824 of file OGLParts.cpp.
void SetupForDataRun | ( | ) |
Setup matricies for computation.
Special command, for setting up the perspective and modelview matricies strictly for computation purpose. This command and the PopFromDataRun() command should be placed around any geometry you will be drawing for computation purposes.
Definition at line 813 of file OGLParts.cpp.
void StripDataFromBuffer | ( | int | ix, | |
int | iy, | |||
int | iwidth, | |||
int | iheight, | |||
TextureType | tt, | |||
char * | buffer | |||
) |
Strip data from the render/frame buffer into a vertex buffer object.
Definition at line 832 of file OGLParts.cpp.