cat_engine 0.6.5

A 2D graphics engine with audio output support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 120

attribute vec2 position;
attribute vec2 tex_coords;

varying vec2 v_tex_coords;

uniform vec2 window_center;

void main() {
    v_tex_coords = tex_coords;

    vec2 p = vec2(position.x / window_center.x - 1.0,
            1.0 - position.y / window_center.y);

    gl_Position = vec4(p, 0.0, 1.0);
}