8#ifndef GRAPHICS_GVBO_H_
9#define GRAPHICS_GVBO_H_
52 void setVertexData(
const glm::vec3* vertices,
int total,
int usage = GL_STATIC_DRAW);
53 void setVertexData(
const glm::vec2* vertices,
int total,
int usage = GL_STATIC_DRAW);
54 void setVertexData(
const float* verticesptr,
int coordNum,
int total,
int usage,
int stride = 0);
56 void setColorData(
const float* color0r,
int total,
int usage,
int stride = 0);
58 void setTexCoordData(
const float* texCoord0x,
int total,
int usage,
int stride = 0);
59 void setNormalData(
const glm::vec3* normals,
int total,
int usage = GL_STATIC_DRAW);
60 void setNormalData(
const float* normal0x,
int total,
int usage,
int stride = 0);
73 bool isvertexdataallocated;
74 int vertexdatacoordnum, totalvertexnum;
75 int vertexusage, vertexstride;
77 bool isindexdataallocated;
Definition gRenderObject.h:25
void setVertexData(const gVertex *vertices, int coordNum, int total)
void setIndexData(const int *indices, int total, int usage)
int getIndicesNum() const
void setVertexData(const float *verticesptr, int coordNum, int total, int usage, int stride=0)
bool isIndexDataAllocated() const
void setVertexData(const glm::vec2 *vertices, int total, int usage=GL_STATIC_DRAW)
void setTexCoordData(const float *texCoord0x, int total, int usage, int stride=0)
void setColorData(const gColor *colors, int total, int usage)
gVbo(const gVbo &)=delete
int getVerticesNum() const
void setIndexData(const gIndex *indices, int total)
void setTexCoordData(const glm::vec2 *texCoords, int total, int usage)
void setNormalData(const glm::vec3 *normals, int total, int usage=GL_STATIC_DRAW)
void setNormalData(const float *normal0x, int total, int usage, int stride=0)
void setVertexData(const glm::vec3 *vertices, int total, int usage=GL_STATIC_DRAW)
bool isVertexDataAllocated() const
void setColorData(const float *color0r, int total, int usage, int stride=0)
gVbo & operator=(const gVbo &other)=delete
unsigned int gIndex
Definition gRenderObject.h:19
glm::vec3 position
Definition gVbo.h:16
glm::vec3 color
Definition gVbo.h:26
glm::vec3 bitangent
Definition gVbo.h:24
glm::vec3 tangent
Definition gVbo.h:22
glm::vec3 normal
Definition gVbo.h:18
glm::vec2 texcoords
Definition gVbo.h:20