crow 0.7.2

A pixel perfect 2D rendering engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 330

// select (x1, y1, x2, y2)
layout (location = 0) in vec4 position;

// (x1, y1, x2, y2)
uniform vec4 start_end;

void main() {
    gl_Position = vec4(
        start_end.x * position.x + start_end.z * position.z,
        start_end.y * position.y + start_end.w * position.w,
        0.0, 1.0
    );
}