vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
cOglVb Class Reference

#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

Definition at line 292 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglVb()

cOglVb::cOglVb ( int  type)
inline

Definition at line 295 of file openglosd.h.

◆ ~cOglVb()

virtual cOglVb::~cOglVb ( void  )
inlinevirtual

Definition at line 296 of file openglosd.h.

Member Function Documentation

◆ ActivateShader()

◆ Bind()

◆ DisableBlending()

◆ DrawArrays()

◆ EnableBlending()

◆ Init()

◆ SetShaderAlpha()

◆ SetShaderBorderColor()

◆ SetShaderColor()

void cOglVb::SetShaderColor ( GLint  color)

◆ SetShaderProjectionMatrix()

◆ SetShaderTexture()

void cOglVb::SetShaderTexture ( GLint  value)

Definition at line 843 of file openglosd.cpp.

References m_shader, cOglShader::SetInteger(), and Shaders.

◆ SetVertexData()

void cOglVb::SetVertexData ( GLfloat *  vertices,
int  count = 0 
)

Definition at line 868 of file openglosd.cpp.

References m_numVertices, m_sizeVertex1, m_sizeVertex2, and m_vbo.

Referenced by cOglCmdDrawText::Execute().

◆ SetVertexSubData()

◆ Unbind()

Member Data Documentation

◆ m_drawMode

GLuint cOglVb::m_drawMode = 0
private

Definition at line 322 of file openglosd.h.

Referenced by DrawArrays(), and Init().

◆ m_numVertices

int cOglVb::m_numVertices = 0
private

Definition at line 321 of file openglosd.h.

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

◆ m_positionLoc

GLuint cOglVb::m_positionLoc = 0
private

Definition at line 317 of file openglosd.h.

Referenced by Bind(), and Init().

◆ m_shader

◆ m_sizeVertex1

int cOglVb::m_sizeVertex1 = 0
private

Definition at line 319 of file openglosd.h.

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

◆ m_sizeVertex2

int cOglVb::m_sizeVertex2 = 0
private

Definition at line 320 of file openglosd.h.

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

◆ m_texCoordsLoc

GLuint cOglVb::m_texCoordsLoc = 1
private

Definition at line 318 of file openglosd.h.

Referenced by Bind(), and Init().

◆ m_type

eVertexBufferType cOglVb::m_type
private

Definition at line 313 of file openglosd.h.

Referenced by Init().

◆ m_vao

GLuint cOglVb::m_vao
private

Definition at line 315 of file openglosd.h.

◆ m_vbo

GLuint cOglVb::m_vbo = 0
private

Definition at line 316 of file openglosd.h.

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


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