vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Private Attributes | List of all members
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 color)
 
void SetShaderBorderColor (GLint bcolor)
 
void SetShaderTexture (GLint value)
 
void SetShaderAlpha (GLint alpha)
 
void SetShaderProjectionMatrix (GLint width, GLint height)
 
void SetVertexSubData (GLfloat *vertices, int count=0)
 
void SetVertexData (GLfloat *vertices, int count=0)
 
void DrawArrays (int count=0)
 

Private Attributes

eVertexBufferType type
 
eShaderType shader
 
GLuint vao
 
GLuint vbo
 
GLuint positionLoc
 
GLuint texCoordsLoc
 
int sizeVertex1
 
int sizeVertex2
 
int numVertices
 
GLuint drawMode
 

Detailed Description

Definition at line 315 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglVb()

cOglVb::cOglVb ( int  type)

Definition at line 1027 of file openglosd.cpp.

References drawMode, numVertices, positionLoc, sizeVertex1, sizeVertex2, texCoordsLoc, type, and vbo.

◆ ~cOglVb()

cOglVb::~cOglVb ( void  )
virtual

Definition at line 1038 of file openglosd.cpp.

Member Function Documentation

◆ ActivateShader()

void cOglVb::ActivateShader ( void  )

◆ Bind()

void cOglVb::Bind ( void  )

◆ DisableBlending()

void cOglVb::DisableBlending ( void  )

◆ DrawArrays()

void cOglVb::DrawArrays ( int  count = 0)

◆ EnableBlending()

void cOglVb::EnableBlending ( void  )

◆ Init()

bool cOglVb::Init ( void  )

◆ SetShaderAlpha()

void cOglVb::SetShaderAlpha ( GLint  alpha)

◆ SetShaderBorderColor()

void cOglVb::SetShaderBorderColor ( GLint  bcolor)

◆ SetShaderColor()

void cOglVb::SetShaderColor ( GLint  color)

◆ SetShaderProjectionMatrix()

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

◆ SetShaderTexture()

void cOglVb::SetShaderTexture ( GLint  value)

Definition at line 1143 of file openglosd.cpp.

References cShader::SetInteger(), shader, and Shaders.

◆ SetVertexData()

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

Definition at line 1164 of file openglosd.cpp.

References GL_CHECK, numVertices, sizeVertex1, sizeVertex2, and vbo.

Referenced by cOglCmdDrawText::Execute().

◆ SetVertexSubData()

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

◆ Unbind()

void cOglVb::Unbind ( void  )

Member Data Documentation

◆ drawMode

GLuint cOglVb::drawMode
private

Definition at line 326 of file openglosd.h.

Referenced by cOglVb(), DrawArrays(), and Init().

◆ numVertices

int cOglVb::numVertices
private

Definition at line 325 of file openglosd.h.

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

◆ positionLoc

GLuint cOglVb::positionLoc
private

Definition at line 321 of file openglosd.h.

Referenced by Bind(), cOglVb(), and Init().

◆ shader

eShaderType cOglVb::shader
private

◆ sizeVertex1

int cOglVb::sizeVertex1
private

Definition at line 323 of file openglosd.h.

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

◆ sizeVertex2

int cOglVb::sizeVertex2
private

Definition at line 324 of file openglosd.h.

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

◆ texCoordsLoc

GLuint cOglVb::texCoordsLoc
private

Definition at line 322 of file openglosd.h.

Referenced by Bind(), cOglVb(), and Init().

◆ type

eVertexBufferType cOglVb::type
private

Definition at line 317 of file openglosd.h.

Referenced by cOglVb(), and Init().

◆ vao

GLuint cOglVb::vao
private

Definition at line 319 of file openglosd.h.

◆ vbo

GLuint cOglVb::vbo
private

Definition at line 320 of file openglosd.h.

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


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