vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
openglosd.h File Reference

OpenGL OSD Header File. More...

#include <cstdio>
#include <memory>
#include <mutex>
#include <queue>
#include <ft2build.h>
#include <GLES2/gl2.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <vdr/osd.h>

Go to the source code of this file.

Classes

struct  sOglImage
 
class  cOglShader
 OpenGL OSD Vertex/Fragment Shader. More...
 
class  cOglGlyph
 OpenGL OSD Glyph of a Font. More...
 
struct  cOglGlyph::tKerning
 
class  cOglAtlasGlyph
 OpenGL OSD Glyph on a Texture Atlas. More...
 
class  cOglFontAtlas
 OpenGL OSD Texture Atlas for a Font. More...
 
class  cOglFont
 OpenGL OSD Representation of a VDR Font. More...
 
class  cOglFb
 OpenGL OSD Framebuffer/ Texture Object. More...
 
class  cOglOutputFb
 Main Framebuffer/ Texture Object for OSD. More...
 
class  cOglVb
 OpenGL OSD Vertex Buffers. More...
 
class  cOglCmd
 OpenGL Hardware Command. More...
 
class  cOglCmdInitOutputFb
 OpenGL command: Init the output framebuffer. More...
 
class  cOglCmdInitFb
 OpenGL command: Init a framebuffer. More...
 
class  cOglCmdDeleteFb
 OpenGL command: Delete a framebuffer. More...
 
class  cOglCmdRenderFbToBufferFb
 OpenGL command: Render a framebuffer to another framebuffer. More...
 
class  cOglCmdCopyBufferToOutputFb
 OpenGL command: Render a framebuffer to the output framebuffer. More...
 
class  cOglCmdFill
 OpenGL command: Fill a polygon. More...
 
class  cOglCmdBufferFill
 OpenGL command: Fill a framebuffer. More...
 
class  cOglCmdDrawRectangle
 OpenGL command: Draw a rectangle. More...
 
class  cOglCmdDrawEllipse
 OpenGL command: Draw an ellipse. More...
 
class  cOglCmdDrawSlope
 OpenGL command: Draw a slope. More...
 
class  cOglCmdDrawText
 OpenGL command: Draw a text. More...
 
class  cOglCmdDrawImage
 OpenGL command: Draw an image. More...
 
class  cOglCmdDrawTexture
 OpenGL command: Draw a texture. More...
 
class  cOglCmdStoreImage
 OpenGL command: Store image in the cache. More...
 
class  cOglCmdDropImage
 OpenGL command: Drop image from cache. More...
 
class  cOglThread
 OpenGL Commands Processing Thread. More...
 
class  cOglPixmap
 OpenGL Implementation of a cPixmap. More...
 
class  cOglOsd
 OpenGL OSD Implementation (GPU accelerated) More...
 

Macros

#define FT_ERRORDEF(e, v, s)   { e, s },
 
#define FT_ERROR_START_LIST   {
 
#define FT_ERROR_END_LIST   { 0, 0 } };
 
#define BORDERCOLOR   0x00000000
 OpenGL OSD (GPU)
 
#define MIN_CHARCODE   32
 
#define MAX_CHARCODE   255
 
#define OGL_MAX_OSDIMAGES   512
 
#define OGL_CMDQUEUE_SIZE   200
 

Enumerations

enum  eShaderType {
  stRect , stTexture , stTextureSwapBR , stText ,
  stCount
}
 
enum  eVertexBufferType {
  vbRect , vbEllipse , vbSlope , vbTexture ,
  vbTextureSwapBR , vbText , vbCount
}
 

Variables

struct { 
 
   int   code 
 
   const char *   message 
 
FT_Errors [] 
 

Detailed Description

OpenGL OSD Header File.

Note
This file was originally authored by Stefan Braun (see README), but there was never set any copyright info.

Definition in file openglosd.h.

Macro Definition Documentation

◆ FT_ERROR_END_LIST

#define FT_ERROR_END_LIST   { 0, 0 } };

Definition at line 31 of file openglosd.h.

◆ FT_ERROR_START_LIST

#define FT_ERROR_START_LIST   {

Definition at line 30 of file openglosd.h.

◆ FT_ERRORDEF

#define FT_ERRORDEF (   e,
  v,
  s 
)    { e, s },

Definition at line 29 of file openglosd.h.

◆ MAX_CHARCODE

#define MAX_CHARCODE   255

Definition at line 164 of file openglosd.h.

◆ MIN_CHARCODE

#define MIN_CHARCODE   32

Definition at line 163 of file openglosd.h.

◆ OGL_CMDQUEUE_SIZE

#define OGL_CMDQUEUE_SIZE   200

Definition at line 697 of file openglosd.h.

◆ OGL_MAX_OSDIMAGES

#define OGL_MAX_OSDIMAGES   512

Definition at line 696 of file openglosd.h.

Enumeration Type Documentation

◆ eShaderType

Enumerator
stRect 
stTexture 
stTextureSwapBR 
stText 
stCount 

Definition at line 62 of file openglosd.h.

◆ eVertexBufferType

Enumerator
vbRect 
vbEllipse 
vbSlope 
vbTexture 
vbTextureSwapBR 
vbText 
vbCount 

Definition at line 282 of file openglosd.h.

Variable Documentation

◆ code

int code

Definition at line 33 of file openglosd.h.

Referenced by cOglFont::Glyph(), and cSoftHdMenu::HandleHotKey().

◆ [struct]

const struct { ... } FT_Errors[]
Initial value:
=
Output Device Implementation.

Referenced by cOglFont::Glyph().

◆ message

const char* message

Definition at line 34 of file openglosd.h.

Referenced by cOglFont::Glyph().