MythTV  master
Macros | Functions | Variables
mythrenderopengl.cpp File Reference
#include <algorithm>
#include <cmath>
#include <QLibrary>
#include <QPainter>
#include <QWindow>
#include <QWidget>
#include <QGuiApplication>
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythlogging.h"
#include "mythmainwindow.h"
#include "mythrenderopengl.h"
#include "mythrenderopenglshaders.h"
#include "mythuitype.h"
#include "platforms/mythxdisplay.h"
Include dependency graph for mythrenderopengl.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("OpenGL: ")
 

Functions

static constexpr QLatin1String GLYesNo (bool v)
 
QOpenGLShaderProgram * ShaderError (QOpenGLShaderProgram *Shader, const QString &Source)
 

Variables

static constexpr GLuint VERTEX_INDEX { 0 }
 
static constexpr GLuint COLOR_INDEX { 1 }
 
static constexpr GLuint TEXTURE_INDEX { 2 }
 
static constexpr GLint VERTEX_SIZE { 2 }
 
static constexpr GLint TEXTURE_SIZE { 2 }
 
static constexpr GLuint kVertexOffset { 0 }
 
static constexpr GLuint kTextureOffset { 8 * sizeof(GLfloat) }
 
static constexpr int MAX_VERTEX_CACHE { 500 }
 
static const float kLimitedRangeOffset = (16.0F / 255.0F)
 
static const float kLimitedRangeScale = (219.0F / 255.0F)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("OpenGL: ")

Definition at line 24 of file mythrenderopengl.cpp.

Function Documentation

◆ GLYesNo()

static constexpr QLatin1String GLYesNo ( bool  v)
staticconstexpr

Definition at line 394 of file mythrenderopengl.cpp.

Referenced by MythRenderOpenGL::DebugFeatures().

◆ ShaderError()

QOpenGLShaderProgram* ShaderError ( QOpenGLShaderProgram *  Shader,
const QString &  Source 
)
inline

Variable Documentation

◆ VERTEX_INDEX

constexpr GLuint VERTEX_INDEX { 0 }
staticconstexpr

◆ COLOR_INDEX

constexpr GLuint COLOR_INDEX { 1 }
staticconstexpr

◆ TEXTURE_INDEX

constexpr GLuint TEXTURE_INDEX { 2 }
staticconstexpr

◆ VERTEX_SIZE

constexpr GLint VERTEX_SIZE { 2 }
staticconstexpr

◆ TEXTURE_SIZE

constexpr GLint TEXTURE_SIZE { 2 }
staticconstexpr

Definition at line 35 of file mythrenderopengl.cpp.

Referenced by MythRenderOpenGL::DrawBitmap().

◆ kVertexOffset

constexpr GLuint kVertexOffset { 0 }
staticconstexpr

◆ kTextureOffset

constexpr GLuint kTextureOffset { 8 * sizeof(GLfloat) }
staticconstexpr

◆ MAX_VERTEX_CACHE

constexpr int MAX_VERTEX_CACHE { 500 }
staticconstexpr

◆ kLimitedRangeOffset

const float kLimitedRangeOffset = (16.0F / 255.0F)
static

◆ kLimitedRangeScale

const float kLimitedRangeScale = (219.0F / 255.0F)
static