#include <NuxGraphics/GLTemplatePrimitiveBuffer.h>
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 |
|
) |
| |
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: