vdr-plugin-softhddevice-drm-gles 1.6.2
cOglVb Class Reference

Vertex Buffers. More...

#include <openglosd.h>

Public Member Functions

 cOglVb (int type)
 
virtual ~cOglVb (void)
 
bool Init (void)
 
void Bind (void)
 
void Unbind (void)
 
void ActivateShader (void)
 
void EnableBlending (void)
 
void DisableBlending (void)
 
void SetShaderColor (GLint)
 
void SetShaderBorderColor (GLint)
 
void SetShaderTexture (GLint)
 
void SetShaderAlpha (GLint)
 
void SetShaderProjectionMatrix (GLint, GLint)
 
void SetVertexSubData (GLfloat *, int count=0)
 
void SetVertexData (GLfloat *, int count=0)
 
void DrawArrays (int count=0)
 

Private Attributes

eVertexBufferType m_type
 
eShaderType m_shader
 
GLuint m_vao
 
GLuint m_vbo = 0
 
GLuint m_positionLoc = 0
 
GLuint m_texCoordsLoc = 1
 
int m_sizeVertex1 = 0
 
int m_sizeVertex2 = 0
 
int m_numVertices = 0
 
GLuint m_drawMode = 0
 

Detailed Description

Vertex Buffers.

Describes and handles the OpenGL vertices for the different drawing commands

Definition at line 282 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglVb()

cOglVb::cOglVb ( int  type)
inline

Definition at line 284 of file openglosd.h.

◆ ~cOglVb()

virtual cOglVb::~cOglVb ( void  )
inlinevirtual

Definition at line 285 of file openglosd.h.

Member Data Documentation

◆ m_drawMode

GLuint cOglVb::m_drawMode = 0
private

Definition at line 311 of file openglosd.h.

Referenced by DrawArrays(), and Init().

◆ m_numVertices

int cOglVb::m_numVertices = 0
private

Definition at line 310 of file openglosd.h.

Referenced by DrawArrays(), Init(), SetVertexData(), and SetVertexSubData().

◆ m_positionLoc

GLuint cOglVb::m_positionLoc = 0
private

Definition at line 306 of file openglosd.h.

Referenced by Bind(), and Init().

◆ m_shader

◆ m_sizeVertex1

int cOglVb::m_sizeVertex1 = 0
private

Definition at line 308 of file openglosd.h.

Referenced by Bind(), Init(), SetVertexData(), and SetVertexSubData().

◆ m_sizeVertex2

int cOglVb::m_sizeVertex2 = 0
private

Definition at line 309 of file openglosd.h.

Referenced by Bind(), Init(), SetVertexData(), and SetVertexSubData().

◆ m_texCoordsLoc

GLuint cOglVb::m_texCoordsLoc = 1
private

Definition at line 307 of file openglosd.h.

Referenced by Bind(), and Init().

◆ m_type

eVertexBufferType cOglVb::m_type
private

Definition at line 302 of file openglosd.h.

Referenced by Init().

◆ m_vao

GLuint cOglVb::m_vao
private

Definition at line 304 of file openglosd.h.

◆ m_vbo

GLuint cOglVb::m_vbo = 0
private

Definition at line 305 of file openglosd.h.

Referenced by Bind(), Init(), SetVertexData(), and SetVertexSubData().


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