Go to the source code of this file.
Classes | |
| class | GLMatrix |
| class | MythGLShaderObject |
Variables | |
| static const GLuint | kVertexOffset = 0 |
| static const GLuint | kTextureOffset = 8 * sizeof(GLfloat) |
| static const GLuint | kVertexSize = 16 * sizeof(GLfloat) |
| static const QString | kDefaultVertexShader |
| static const QString | kDefaultFragmentShader |
| static const QString | kSimpleVertexShader |
| static const QString | kSimpleFragmentShader |
| static const QString | kDrawVertexShader |
| static const QString | kCircleFragmentShader |
| static const QString | kCircleEdgeFragmentShader |
| static const QString | kVertLineFragmentShader |
| static const QString | kHorizLineFragmentShader |
const GLuint kVertexOffset = 0 [static] |
Definition at line 73 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::DrawBitmapPriv(), and MythRenderOpenGL2::DrawRoundRectPriv().
const GLuint kTextureOffset = 8 * sizeof(GLfloat) [static] |
Definition at line 74 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::DrawBitmapPriv().
const GLuint kVertexSize = 16 * sizeof(GLfloat) [static] |
Definition at line 75 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::DrawBitmapPriv().
const QString kDefaultVertexShader [static] |
"GLSL_DEFINES" "attribute vec2 a_position;\n" "attribute vec4 a_color;\n" "attribute vec2 a_texcoord0;\n" "varying vec4 v_color;\n" "varying vec2 v_texcoord0;\n" "uniform mat4 u_projection;\n" "uniform mat4 u_transform;\n" "void main() {\n" " gl_Position = u_projection * u_transform * vec4(a_position, 0.0, 1.0);\n" " v_texcoord0 = a_texcoord0;\n" " v_color = a_color;\n" "}\n"
Definition at line 77 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders(), and MythRenderOpenGL2::CreateShaderObject().
const QString kDefaultFragmentShader [static] |
"GLSL_DEFINES" "uniform GLSL_SAMPLER s_texture0;\n" "varying vec4 v_color;\n" "varying vec2 v_texcoord0;\n" "void main(void)\n" "{\n" " gl_FragColor = GLSL_TEXTURE(s_texture0, v_texcoord0) * v_color;\n" "}\n"
Definition at line 92 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders(), and MythRenderOpenGL2::CreateShaderObject().
const QString kSimpleVertexShader [static] |
"GLSL_DEFINES" "attribute vec2 a_position;\n" "attribute vec4 a_color;\n" "varying vec4 v_color;\n" "uniform mat4 u_projection;\n" "uniform mat4 u_transform;\n" "void main() {\n" " gl_Position = u_projection * u_transform * vec4(a_position, 0.0, 1.0);\n" " v_color = a_color;\n" "}\n"
Definition at line 102 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
const QString kSimpleFragmentShader [static] |
"GLSL_DEFINES" "varying vec4 v_color;\n" "void main(void)\n" "{\n" " gl_FragColor = v_color;\n" "}\n"
Definition at line 114 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
const QString kDrawVertexShader [static] |
"GLSL_DEFINES" "attribute vec2 a_position;\n" "attribute vec4 a_color;\n" "varying vec4 v_color;\n" "varying vec2 v_position;\n" "uniform mat4 u_projection;\n" "uniform mat4 u_transform;\n" "void main() {\n" " gl_Position = u_projection * u_transform * vec4(a_position, 0.0, 1.0);\n" " v_color = a_color;\n" " v_position = a_position;\n" "}\n"
Definition at line 122 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
const QString kCircleFragmentShader [static] |
"GLSL_DEFINES" "varying vec4 v_color;\n" "varying vec2 v_position;\n" "uniform mat4 u_parameters;\n" "void main(void)\n" "{\n" " float dis = distance(v_position.xy, u_parameters[0].xy);\n" " float mult = smoothstep(u_parameters[0].z, u_parameters[0].w, dis);\n" " gl_FragColor = v_color * vec4(1.0, 1.0, 1.0, mult);\n" "}\n"
Definition at line 136 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
const QString kCircleEdgeFragmentShader [static] |
"GLSL_DEFINES" "varying vec4 v_color;\n" "varying vec2 v_position;\n" "uniform mat4 u_parameters;\n" "void main(void)\n" "{\n" " float dis = distance(v_position.xy, u_parameters[0].xy);\n" " float rad = u_parameters[0].z;\n" " float wid = u_parameters[0].w;\n" " float mult = smoothstep(rad + wid, rad + (wid - 1.0), dis) * smoothstep(rad - (wid + 1.0), rad - wid, dis);\n" " gl_FragColor = v_color * vec4(1.0, 1.0, 1.0, mult);\n" "}\n"
Definition at line 148 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
const QString kVertLineFragmentShader [static] |
"GLSL_DEFINES" "varying vec4 v_color;\n" "varying vec2 v_position;\n" "uniform mat4 u_parameters;\n" "void main(void)\n" "{\n" " float dis = abs(u_parameters[0].x - v_position.x);\n" " float y = u_parameters[0].y * 2.0;\n" " float mult = smoothstep(y, y - 0.1, dis) * smoothstep(-0.1, 0.0, dis);\n" " gl_FragColor = v_color * vec4(1.0, 1.0, 1.0, mult);\n" "}\n"
Definition at line 162 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
const QString kHorizLineFragmentShader [static] |
"GLSL_DEFINES" "varying vec4 v_color;\n" "varying vec2 v_position;\n" "uniform mat4 u_parameters;\n" "void main(void)\n" "{\n" " float dis = abs(u_parameters[0].x - v_position.y);\n" " float x = u_parameters[0].y * 2.0;\n" " float mult = smoothstep(x, x - 0.1, dis) * smoothstep(-0.1, 0.0, dis);\n" " gl_FragColor = v_color * vec4(1.0, 1.0, 1.0, mult);\n" "}\n"
Definition at line 175 of file mythrender_opengl2.cpp.
Referenced by MythRenderOpenGL2::CreateDefaultShaders().
1.6.3