#include <OGLParts.h>
Public Member Functions | |
| VertexData () | |
| ~VertexData () | |
| void | Init (float *Verts, int iNumVerts, int iStride=3) |
| Set Verts to be NULL if you will be streaming to this. Otherwise, put data in here. | |
| void | UpdateData (float *Verts, int iNumVerts, int iStride=3) |
| Allows you to change the data enclosed within the buffer. | |
| void | StripFromFrameBuffer (int iWidth, int iHeight, TextureType tt) |
| Note: This can only be stripped from 0th texture in the framebuffer. | |
Private Attributes | |
| int | mStride |
| GLuint | iVertexData |
Friends | |
| 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. | |
This class is used to hold Vertex data. It can be ripped from the 0th slot on a RFBuffer when it's being used. Idealy, you would either load regular data into here when operating normally, or you would rip data off a framebuffer into this object. When loading data into this object, you would execute StripFromFrameBuffer() immediately before your framebuffer's End() command.
Definition at line 236 of file OGLParts.h.
| VertexData::VertexData | ( | ) | [inline] |
Definition at line 239 of file OGLParts.h.
| VertexData::~VertexData | ( | ) |
Definition at line 626 of file OGLParts.cpp.
| void VertexData::Init | ( | float * | Verts, | |
| int | iNumVerts, | |||
| int | iStride = 3 | |||
| ) |
Set Verts to be NULL if you will be streaming to this. Otherwise, put data in here.
Definition at line 633 of file OGLParts.cpp.
| void VertexData::UpdateData | ( | float * | Verts, | |
| int | iNumVerts, | |||
| int | iStride = 3 | |||
| ) |
Allows you to change the data enclosed within the buffer.
Definition at line 644 of file OGLParts.cpp.
| void VertexData::StripFromFrameBuffer | ( | int | iWidth, | |
| int | iHeight, | |||
| TextureType | tt | |||
| ) |
Note: This can only be stripped from 0th texture in the framebuffer.
Definition at line 652 of file OGLParts.cpp.
| void DrawGeometry | ( | VertexData ** | vd, | |
| string * | vsVertexNames, | |||
| int | iNumVertexDatas, | |||
| IndexData * | id, | |||
| Shader * | sShader | |||
| ) | [friend] |
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 | |||
| ) | [friend] |
Draw the Index Data id using the specified vertex data and shader using GL_TRIANGLES.
Definition at line 792 of file OGLParts.cpp.
int VertexData::mStride [private] |
Definition at line 251 of file OGLParts.h.
GLuint VertexData::iVertexData [private] |
Definition at line 252 of file OGLParts.h.