|
vdr-plugin-softhddevice-drm-gles 1.4.0
|
#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 |
Definition at line 315 of file openglosd.h.
| cOglVb::cOglVb | ( | int | type | ) |
Definition at line 1027 of file openglosd.cpp.
References drawMode, numVertices, positionLoc, sizeVertex1, sizeVertex2, texCoordsLoc, type, and vbo.
|
virtual |
Definition at line 1038 of file openglosd.cpp.
| void cOglVb::ActivateShader | ( | void | ) |
Definition at line 1118 of file openglosd.cpp.
References shader, Shaders, and cShader::Use().
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawText::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::Bind | ( | void | ) |
Definition at line 1104 of file openglosd.cpp.
References GL_CHECK, positionLoc, sizeVertex1, sizeVertex2, texCoordsLoc, and vbo.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawText::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::DisableBlending | ( | void | ) |
Definition at line 1127 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), and cOglCmdDrawImage::Execute().
| void cOglVb::DrawArrays | ( | int | count = 0 | ) |
Definition at line 1172 of file openglosd.cpp.
References drawMode, GL_CHECK, and numVertices.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawText::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::EnableBlending | ( | void | ) |
Definition at line 1122 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawImage::Execute(), and cOglThread::InitOpenGL().
| bool cOglVb::Init | ( | void | ) |
Definition at line 1041 of file openglosd.cpp.
References drawMode, GL_CHECK, numVertices, positionLoc, shader, sizeVertex1, sizeVertex2, stRect, stText, stTexture, stTextureSwapBR, texCoordsLoc, type, vbEllipse, vbo, vbRect, vbSlope, vbText, vbTexture, and vbTextureSwapBR.
Referenced by cOglThread::InitVertexBuffers().
| void cOglVb::SetShaderAlpha | ( | GLint | alpha | ) |
Definition at line 1147 of file openglosd.cpp.
References cShader::SetVector4f(), shader, and Shaders.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::SetShaderBorderColor | ( | GLint | bcolor | ) |
Definition at line 1137 of file openglosd.cpp.
References ConvertColor(), cShader::SetVector4f(), shader, and Shaders.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::SetShaderColor | ( | GLint | color | ) |
Definition at line 1131 of file openglosd.cpp.
References ConvertColor(), cShader::SetVector4f(), shader, and Shaders.
Referenced by cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), and cOglCmdDrawText::Execute().
| void cOglVb::SetShaderProjectionMatrix | ( | GLint | width, |
| GLint | height | ||
| ) |
Definition at line 1151 of file openglosd.cpp.
References cShader::SetMatrix4(), shader, and Shaders.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawText::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::SetShaderTexture | ( | GLint | value | ) |
Definition at line 1143 of file openglosd.cpp.
References cShader::SetInteger(), shader, and Shaders.
| 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().
| void cOglVb::SetVertexSubData | ( | GLfloat * | vertices, |
| int | count = 0 |
||
| ) |
Definition at line 1156 of file openglosd.cpp.
References GL_CHECK, numVertices, sizeVertex1, sizeVertex2, and vbo.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
| void cOglVb::Unbind | ( | void | ) |
Definition at line 1114 of file openglosd.cpp.
References GL_CHECK.
Referenced by cOglCmdRenderFbToBufferFb::Execute(), cOglCmdCopyBufferToOutputFb::Execute(), cOglCmdDrawRectangle::Execute(), cOglCmdDrawEllipse::Execute(), cOglCmdDrawSlope::Execute(), cOglCmdDrawText::Execute(), cOglCmdDrawImage::Execute(), and cOglCmdDrawTexture::Execute().
|
private |
Definition at line 326 of file openglosd.h.
Referenced by cOglVb(), DrawArrays(), and Init().
|
private |
Definition at line 325 of file openglosd.h.
Referenced by cOglVb(), DrawArrays(), Init(), SetVertexData(), and SetVertexSubData().
|
private |
Definition at line 321 of file openglosd.h.
|
private |
Definition at line 318 of file openglosd.h.
Referenced by ActivateShader(), Init(), SetShaderAlpha(), SetShaderBorderColor(), SetShaderColor(), SetShaderProjectionMatrix(), and SetShaderTexture().
|
private |
Definition at line 323 of file openglosd.h.
Referenced by Bind(), cOglVb(), Init(), SetVertexData(), and SetVertexSubData().
|
private |
Definition at line 324 of file openglosd.h.
Referenced by Bind(), cOglVb(), Init(), SetVertexData(), and SetVertexSubData().
|
private |
Definition at line 322 of file openglosd.h.
|
private |
Definition at line 317 of file openglosd.h.
|
private |
Definition at line 319 of file openglosd.h.
|
private |
Definition at line 320 of file openglosd.h.
Referenced by Bind(), cOglVb(), Init(), SetVertexData(), and SetVertexSubData().