Package glitter :: Package convenience
[hide private]
[frames] | no frames]

Package convenience

source code

Convenience wrappers without direct OpenGL interaction.


Author: Stephan Wenger

Date: 2012-03-06

Submodules [hide private]

Variables [hide private]
  __package__ = 'glitter.convenience'
  fragment_code = '\n#version 400 core\n\nin vec4 ex_color;\nlay...
  fragment_code_2d = '\n#version 400 core\n\nin vec2 ex_texcoord...
  fragment_code_rectangle = '\n#version 400 core\n#extension GL_...
  quad_indices = ((0, 1, 2), (0, 2, 3))
  quad_vertices = ((-1.0, -1.0), (-1.0, 1.0), (1.0, 1.0), (1.0, ...
  vertex_code = '\n#version 400 core\n\nlayout(location=0) in ve...
Variables Details [hide private]

fragment_code

Value:
'''
#version 400 core

in vec4 ex_color;
layout(location=0) out vec4 out_color;

void main() {
    out_color = ex_color;
...

fragment_code_2d

Value:
'''
#version 400 core

in vec2 ex_texcoord;
uniform sampler2D image;
layout(location=0) out vec4 out_color;

void main() {
...

fragment_code_rectangle

Value:
'''
#version 400 core
#extension GL_ARB_texture_rectangle : enable

uniform sampler2DRect image;
layout(location=0) out vec4 out_color;

void main() {
...

quad_vertices

Value:
((-1.0, -1.0), (-1.0, 1.0), (1.0, 1.0), (1.0, -1.0))

vertex_code

Value:
'''
#version 400 core

layout(location=0) in vec4 in_position;
out vec2 ex_texcoord;

void main() {
    gl_Position = in_position;
...