37 decl[0].pointer = verts;
39 decl[0].type = GL_FLOAT;
45 *verts++ = -1.0f; *verts++ = 1.0f; *verts++ = 1.0f;
46 *verts++ = -1.0f; *verts++ = -1.0f; *verts++ = 1.0f;
48 *verts++ = -1.0f; *verts++ = -1.0f; *verts++ = 1.0f;
49 *verts++ = 1.0f; *verts++ = -1.0f; *verts++ = 1.0f;
51 *verts++ = 1.0f; *verts++ = -1.0f; *verts++ = 1.0f;
52 *verts++ = 1.0f; *verts++ = 1.0f; *verts++ = 1.0f;
54 *verts++ = 1.0f; *verts++ = 1.0f; *verts++ = 1.0f;
55 *verts++ = -1.0f; *verts++ = 1.0f; *verts++ = 1.0f;
58 *verts++ = -1.0f; *verts++ = 1.0f; *verts++ = -1.0f;
59 *verts++ = -1.0f; *verts++ = -1.0f; *verts++ = -1.0f;
61 *verts++ = -1.0f; *verts++ = -1.0f; *verts++ = -1.0f;
62 *verts++ = 1.0f; *verts++ = -1.0f; *verts++ = -1.0f;
64 *verts++ = 1.0f; *verts++ = -1.0f; *verts++ = -1.0f;
65 *verts++ = 1.0f; *verts++ = 1.0f; *verts++ = -1.0f;
67 *verts++ = 1.0f; *verts++ = 1.0f; *verts++ = -1.0f;
68 *verts++ = -1.0f; *verts++ = 1.0f; *verts++ = -1.0f;
71 *verts++ = -1.0f; *verts++ = 1.0f; *verts++ = 1.0f;
72 *verts++ = -1.0f; *verts++ = 1.0f; *verts++ = -1.0f;
74 *verts++ = -1.0f; *verts++ = -1.0f; *verts++ = 1.0f;
75 *verts++ = -1.0f; *verts++ = -1.0f; *verts++ = -1.0f;
77 *verts++ = 1.0f; *verts++ = -1.0f; *verts++ = 1.0f;
78 *verts++ = 1.0f; *verts++ = -1.0f; *verts++ = -1.0f;
80 *verts++ = 1.0f; *verts++ = 1.0f; *verts++ = 1.0f;
81 *verts++ = 1.0f; *verts++ = 1.0f; *verts++ = -1.0f;
void setVertexDecl(const VertexDecl &decl)
Set vertex declaration for this buffer.
std::vector< VertexAttrib > VertexDecl
Vertex data layout.
VertexBuffer _vertexBuffer
GLvoid * getData()
Access buffer data.
void setSize(uint32 vertCount, uint32 vertSize)
Change buffer size.