Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::VertexBufferPT Class Reference

#include <StkVertexBuffer.h>

Inheritance diagram for STK::VertexBufferPT:
STK::VertexBuffer

Public Member Functions

 VertexBufferPT (int size=0, GLenum usage=GL_STATIC_DRAW)
 
void setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::RGBA &color, const STK::Vector4f &boneWeights, const unsigned char *boneIndices) override
 
STK::Vector3f getPosition (int idx) const override
 
STK::Vector2f getTexCoord (int idx) const override
 
void addVertex (const VertexPT &vtx)
 
void applyVertexAttribs (ShaderProgram &program) override
 
void disableVertexAttribs (ShaderProgram &program) override
 
void initBuffer () override
 
int getSize () const override
 
void setSize (int size) override
 
char * data () override
 
const char * data () const override
 
- Public Member Functions inherited from STK::VertexBuffer
 VertexBuffer (GLenum usage=GL_STATIC_DRAW)
 
void setUsage (GLenum usage)
 
GLenum getUsage () const
 
virtual void setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::RGBA &color, const STK::Vector4f &boneWeights, const unsigned char *boneIndices)=0
 
void setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord)
 
void setVertex (int idx, const STK::Vector3f &position)
 
void setVertex (int idx, const STK::Vector3f &position, const STK::RGBA &color)
 
void setNormal (int idx, const STK::Vector3f &normal)
 
void setTexCoord (int idx, const STK::Vector2f &texcoord)
 
void setVertex (int idx, const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::Vector4f &boneWeights, const unsigned char *boneIndices)
 
void addVertex (const STK::Vector3f &position)
 
void addVertex (const STK::Vector3f &position, const STK::Vector3f &normal)
 
void addVertex (const STK::Vector3f &position, const STK::Vector3f &normal, const STK::Vector2f &texcoord, const STK::RGBA &color, const STK::Vector4f &boneWeights, const unsigned char *boneIndices)
 
virtual STK::Vector3f getPosition (int idx) const =0
 
virtual STK::Vector3f getNormal (int) const
 
virtual STK::RGBA getColor (int) const
 
virtual STK::Vector2f getTexCoord (int) const
 
virtual STK::Vector4f getBoneWeights (int) const
 
virtual const unsigned char * getBoneIndices (int) const
 
virtual void initBuffer ()=0
 
virtual void applyVertexAttribs (ShaderProgram &program)=0
 
virtual void disableVertexAttribs (ShaderProgram &program)=0
 
virtual int getSize () const =0
 
virtual void setSize (int size)=0
 
void deleteBuffer ()
 
void setDirty (bool dirty)
 
bool isDirty () const
 
virtual char * data ()=0
 
virtual const char * data () const =0
 

Additional Inherited Members

- Protected Attributes inherited from STK::VertexBuffer
GLuint vbo_id_ = 0
 
GLuint vao_id_ = 0
 
GLenum usage_ = 0
 
bool dirty_ = false
 

Detailed Description

VertexBufferPT - Vertex buffers for Point and Texture coordinate data. This vertex buffer class contains interleaved position and texture coordinate data

Member Function Documentation

◆ applyVertexAttribs()

void VertexBufferPT::applyVertexAttribs ( ShaderProgram program)
overridevirtual

Implements STK::VertexBuffer.

◆ data() [1/2]

const char * STK::VertexBufferPT::data ( ) const
inlineoverridevirtual

Implements STK::VertexBuffer.

◆ data() [2/2]

char * STK::VertexBufferPT::data ( )
inlineoverridevirtual

Implements STK::VertexBuffer.

◆ disableVertexAttribs()

void VertexBufferPT::disableVertexAttribs ( ShaderProgram program)
overridevirtual

Implements STK::VertexBuffer.

◆ getPosition()

STK::Vector3f VertexBufferPT::getPosition ( int  idx) const
overridevirtual

Implements STK::VertexBuffer.

◆ getSize()

int STK::VertexBufferPT::getSize ( ) const
inlineoverridevirtual

Implements STK::VertexBuffer.

◆ getTexCoord()

STK::Vector2f STK::VertexBufferPT::getTexCoord ( int  idx) const
inlineoverridevirtual

Reimplemented from STK::VertexBuffer.

◆ initBuffer()

void VertexBufferPT::initBuffer ( )
overridevirtual

Implements STK::VertexBuffer.

◆ setSize()

void STK::VertexBufferPT::setSize ( int  size)
inlineoverridevirtual

Implements STK::VertexBuffer.

◆ setVertex()

void VertexBufferPT::setVertex ( int  idx,
const STK::Vector3f position,
const STK::Vector3f normal,
const STK::Vector2f texcoord,
const STK::RGBA &  color,
const STK::Vector4f boneWeights,
const unsigned char *  boneIndices 
)
overridevirtual

Implements STK::VertexBuffer.


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