hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::graphics::buffers::Attribute Class Reference

OpenGL buffer attribute. More...

#include <attribute.hpp>

Public Member Functions

 Attribute ()
 Construct an empty attribute.
 
 Attribute (const std::string name, const GLenum type, const GLuint size)
 Construct a buffer attribute. More...
 
const std::string getName () const
 Get the attribute name. More...
 
const GLenum getType () const
 Get the attribute type. More...
 
const GLuint getSize () const
 Get the attribute size. More...
 

Detailed Description

OpenGL buffer attribute.

Definition at line 35 of file attribute.hpp.

Constructor & Destructor Documentation

hx3d::graphics::buffers::Attribute::Attribute ( const std::string  name,
const GLenum  type,
const GLuint  size 
)

Construct a buffer attribute.

Parameters
nameAttribute name (in the shader)
typeAttribute type (GL_FLOAT, etc.)
sizeAttribute size (1, 2, 3, 4)

Definition at line 30 of file attribute.cpp.

Member Function Documentation

const std::string hx3d::graphics::buffers::Attribute::getName ( ) const

Get the attribute name.

Returns
Name

Definition at line 36 of file attribute.cpp.

const GLuint hx3d::graphics::buffers::Attribute::getSize ( ) const

Get the attribute size.

Returns
Size

Definition at line 44 of file attribute.cpp.

const GLenum hx3d::graphics::buffers::Attribute::getType ( ) const

Get the attribute type.

Returns
Type

Definition at line 40 of file attribute.cpp.


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