vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
cOglVb Class Reference

OpenGL OSD 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

OpenGL OSD Vertex Buffers.

Describes and handles the OpenGL vertices for the different drawing commands

Definition at line 299 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglVb()

cOglVb::cOglVb ( int  type)
inline

Definition at line 301 of file openglosd.h.

◆ ~cOglVb()

virtual cOglVb::~cOglVb ( void  )
inlinevirtual

Definition at line 302 of file openglosd.h.

Member Function Documentation

◆ ActivateShader()

void cOglVb::ActivateShader ( void  )

Definition at line 821 of file openglosd.cpp.

References m_shader, and Shaders.

◆ Bind()

void cOglVb::Bind ( void  )

Definition at line 805 of file openglosd.cpp.

References GL_CHECK, m_positionLoc, m_sizeVertex1, m_sizeVertex2, m_texCoordsLoc, and m_vbo.

◆ DisableBlending()

void cOglVb::DisableBlending ( void  )

Definition at line 832 of file openglosd.cpp.

References GL_CHECK.

◆ DrawArrays()

void cOglVb::DrawArrays ( int  count = 0)

Definition at line 885 of file openglosd.cpp.

References GL_CHECK, m_drawMode, and m_numVertices.

◆ EnableBlending()

void cOglVb::EnableBlending ( void  )

Definition at line 826 of file openglosd.cpp.

References GL_CHECK.

◆ Init()

◆ SetShaderAlpha()

void cOglVb::SetShaderAlpha ( GLint  alpha)

Definition at line 856 of file openglosd.cpp.

References m_shader, and Shaders.

◆ SetShaderBorderColor()

void cOglVb::SetShaderBorderColor ( GLint  color)

Definition at line 844 of file openglosd.cpp.

References ConvertColor(), m_shader, and Shaders.

◆ SetShaderColor()

void cOglVb::SetShaderColor ( GLint  color)

Definition at line 837 of file openglosd.cpp.

References ConvertColor(), m_shader, and Shaders.

◆ SetShaderProjectionMatrix()

void cOglVb::SetShaderProjectionMatrix ( GLint  width,
GLint  height 
)

Definition at line 861 of file openglosd.cpp.

References m_shader, and Shaders.

◆ SetShaderTexture()

void cOglVb::SetShaderTexture ( GLint  value)

Definition at line 851 of file openglosd.cpp.

References m_shader, and Shaders.

◆ SetVertexData()

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

Definition at line 876 of file openglosd.cpp.

References GL_CHECK, m_numVertices, m_sizeVertex1, m_sizeVertex2, and m_vbo.

◆ SetVertexSubData()

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

Definition at line 867 of file openglosd.cpp.

References GL_CHECK, m_numVertices, m_sizeVertex1, m_sizeVertex2, and m_vbo.

◆ Unbind()

void cOglVb::Unbind ( void  )

Definition at line 816 of file openglosd.cpp.

References GL_CHECK.

Member Data Documentation

◆ m_drawMode

GLuint cOglVb::m_drawMode = 0
private

Definition at line 328 of file openglosd.h.

Referenced by DrawArrays(), and Init().

◆ m_numVertices

int cOglVb::m_numVertices = 0
private

Definition at line 327 of file openglosd.h.

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

◆ m_positionLoc

GLuint cOglVb::m_positionLoc = 0
private

Definition at line 323 of file openglosd.h.

Referenced by Bind(), and Init().

◆ m_shader

◆ m_sizeVertex1

int cOglVb::m_sizeVertex1 = 0
private

Definition at line 325 of file openglosd.h.

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

◆ m_sizeVertex2

int cOglVb::m_sizeVertex2 = 0
private

Definition at line 326 of file openglosd.h.

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

◆ m_texCoordsLoc

GLuint cOglVb::m_texCoordsLoc = 1
private

Definition at line 324 of file openglosd.h.

Referenced by Bind(), and Init().

◆ m_type

eVertexBufferType cOglVb::m_type
private

Definition at line 319 of file openglosd.h.

Referenced by Init().

◆ m_vao

GLuint cOglVb::m_vao
private

Definition at line 321 of file openglosd.h.

◆ m_vbo

GLuint cOglVb::m_vbo = 0
private

Definition at line 322 of file openglosd.h.

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


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