xoreos  0.0.5
Public Member Functions | Public Attributes | List of all members
Graphics::VertexAttrib Struct Reference

Generic vertex attribute data. More...

#include <vertexbuffer.h>

Public Member Functions

 VertexAttrib ()
 
 VertexAttrib (GLuint i, GLint s, GLenum t, GLsizei st=0, const GLvoid *p=0)
 
GLvoid * getData ()
 
const GLvoid * getData () const
 
void enable () const
 
void disable () const
 

Public Attributes

GLuint index
 Index of the vertex attribute (see VertexAttribIdEnum). More...
 
GLint size
 Number of components per vertex attribute, must be 1, 2, 3, 4. More...
 
GLenum type
 Data type of each attribute component in the array. More...
 
GLsizei stride
 Byte offset between consecutive vertex attributes. More...
 
const GLvoid * pointer
 Offset of the first component of the first generic vertex attribute. More...
 

Detailed Description

Generic vertex attribute data.

Definition at line 43 of file vertexbuffer.h.

Constructor & Destructor Documentation

◆ VertexAttrib() [1/2]

Graphics::VertexAttrib::VertexAttrib ( )
inline

Definition at line 50 of file vertexbuffer.h.

◆ VertexAttrib() [2/2]

Graphics::VertexAttrib::VertexAttrib ( GLuint  i,
GLint  s,
GLenum  t,
GLsizei  st = 0,
const GLvoid *  p = 0 
)
inline

Definition at line 51 of file vertexbuffer.h.

Member Function Documentation

◆ disable()

void Graphics::VertexAttrib::disable ( ) const

◆ enable()

void Graphics::VertexAttrib::enable ( ) const

◆ getData() [1/2]

GLvoid * Graphics::VertexAttrib::getData ( )

Definition at line 34 of file vertexbuffer.cpp.

References pointer.

◆ getData() [2/2]

const GLvoid * Graphics::VertexAttrib::getData ( ) const

Definition at line 38 of file vertexbuffer.cpp.

References pointer.

Member Data Documentation

◆ index

GLuint Graphics::VertexAttrib::index

Index of the vertex attribute (see VertexAttribIdEnum).

Definition at line 44 of file vertexbuffer.h.

Referenced by Graphics::Aurora::Model_Sonic::createBound(), disable(), and enable().

◆ pointer

const GLvoid* Graphics::VertexAttrib::pointer

Offset of the first component of the first generic vertex attribute.

Definition at line 48 of file vertexbuffer.h.

Referenced by Graphics::Aurora::Model_Sonic::createBound(), enable(), and getData().

◆ size

GLint Graphics::VertexAttrib::size

Number of components per vertex attribute, must be 1, 2, 3, 4.

Definition at line 45 of file vertexbuffer.h.

Referenced by Graphics::Aurora::Model_Sonic::createBound(), and enable().

◆ stride

GLsizei Graphics::VertexAttrib::stride

Byte offset between consecutive vertex attributes.

Definition at line 47 of file vertexbuffer.h.

Referenced by Graphics::Aurora::Model_Sonic::createBound(), and enable().

◆ type

GLenum Graphics::VertexAttrib::type

Data type of each attribute component in the array.

Definition at line 46 of file vertexbuffer.h.

Referenced by Graphics::Aurora::Model_Sonic::createBound(), and enable().


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