nux-0.9.46

nux::TemplateQuadBuffer Class Reference

#include <NuxGraphics/GLTemplatePrimitiveBuffer.h>

Public Member Functions

 TemplateQuadBuffer (GpuDevice *, ShaderType Type=SHADER_TYPE_GLSL, int NumQuads=256)
 ~TemplateQuadBuffer ()
void BindAttribute (INT AttributeLocation, UINT AttributeIndex)
 Bind GLSL parameter.
void UnBindAttribute (INT AttributeLocation)
 Bind NVidia CG parameter.
void UnBind ()
void Render (INT NumPrimitives)
void SetPerQuadAttribute (UINT AttributeIndex, INT Num, Vector4 *)
 Set the Vertices's attribute on a per quad basis.
void SetPerVertexAttribute (UINT AttributeIndex, INT Num, Vector4 *pVector)
 Set the Vertices's attribute on a per vertex basis.
void UnSetQuadAttribute (UINT AttributeIndex)
void SetNumQuads (int NumQuads)
int GetNumQuads () const

Protected Member Functions

void FormatQuads ()

Protected Attributes

ObjectPtr< IOpenGLIndexBufferm_IB

Constructor & Destructor Documentation

nux::TemplateQuadBuffer::TemplateQuadBuffer ( GpuDevice ,
ShaderType  Type = SHADER_TYPE_GLSL,
int  NumQuads = 256 
)
nux::TemplateQuadBuffer::~TemplateQuadBuffer ( )

Member Function Documentation

void nux::TemplateQuadBuffer::BindAttribute ( INT  AttributeLocation,
UINT  AttributeIndex 
)

Bind GLSL parameter.

void nux::TemplateQuadBuffer::FormatQuads ( ) [protected]
int nux::TemplateQuadBuffer::GetNumQuads ( ) const
void nux::TemplateQuadBuffer::Render ( INT  NumPrimitives)
void nux::TemplateQuadBuffer::SetNumQuads ( int  NumQuads)
void nux::TemplateQuadBuffer::SetPerQuadAttribute ( UINT  AttributeIndex,
INT  Num,
Vector4  
)

Set the Vertices's attribute on a per quad basis.

Set the Vertices's attribute on a per quad basis. All vertex of the quad will have the same value for the attribute index.

void nux::TemplateQuadBuffer::SetPerVertexAttribute ( UINT  AttributeIndex,
INT  Num,
Vector4 pVector 
)

Set the Vertices's attribute on a per vertex basis.

Set the vertex attribute on a per vertex basis.

void nux::TemplateQuadBuffer::UnBind ( )
void nux::TemplateQuadBuffer::UnBindAttribute ( INT  AttributeLocation)

Bind NVidia CG parameter.

void nux::TemplateQuadBuffer::UnSetQuadAttribute ( UINT  AttributeIndex)

Field Documentation


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