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

Go to the source code of this file.

Macros

#define LOC   QString("OpenGL: ")
 
#define VERTEX_INDEX   0
 
#define COLOR_INDEX   1
 
#define TEXTURE_INDEX   2
 
#define VERTEX_SIZE   2
 
#define TEXTURE_SIZE   2
 
#define MAX_VERTEX_CACHE   500
 
#define GLYesNo(arg)   ((arg) ? "Yes" : "No")
 

Functions

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

Variables

static const GLuint kVertexOffset = 0
 
static const GLuint kTextureOffset = 8 * sizeof(GLfloat)
 
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.

◆ VERTEX_INDEX

#define VERTEX_INDEX   0

Definition at line 31 of file mythrenderopengl.cpp.

◆ COLOR_INDEX

#define COLOR_INDEX   1

Definition at line 32 of file mythrenderopengl.cpp.

◆ TEXTURE_INDEX

#define TEXTURE_INDEX   2

Definition at line 33 of file mythrenderopengl.cpp.

◆ VERTEX_SIZE

#define VERTEX_SIZE   2

Definition at line 34 of file mythrenderopengl.cpp.

◆ TEXTURE_SIZE

#define TEXTURE_SIZE   2

Definition at line 35 of file mythrenderopengl.cpp.

◆ MAX_VERTEX_CACHE

#define MAX_VERTEX_CACHE   500

Definition at line 41 of file mythrenderopengl.cpp.

◆ GLYesNo

#define GLYesNo (   arg)    ((arg) ? "Yes" : "No")

Definition at line 396 of file mythrenderopengl.cpp.

Function Documentation

◆ ShaderError()

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

Variable Documentation

◆ kVertexOffset

const GLuint kVertexOffset = 0
static

◆ kTextureOffset

const GLuint kTextureOffset = 8 * sizeof(GLfloat)
static

◆ kLimitedRangeOffset

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

◆ kLimitedRangeScale

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