summaryrefslogtreecommitdiff
path: root/2d/shader.scm
Commit message (Collapse)AuthorAgeFilesLines
* Replace vector2 module with a more generic vector module.David Thompson2014-06-071-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * 2d/vector2.scm: Delete it. * 2d/vector.scm: New file. * Makefile.am (SOURCES): s/vector2/vector. * 2d/font.scm: * 2d/keyboard.scm: * 2d/mouse.scm: * 2d/rect.scm: * 2d/shader.scm: * 2d/sprite.scm: * 2d/texture.scm: * 2d/transform.scm: * 2d/window.scm: * examples/2048/2048: * examples/animation.scm: * examples/coroutine.scm: * examples/font.scm: * examples/particles.scm: * examples/simple.scm: * examples/tilemap.scm: Use vectors instead of defunct vector2.
* Rename, unexport, and memoize shader-program-attribute-location.David Thompson2014-05-221-5/+7
| | | | | * 2d/shader.scm (shader-program-attribute-location): Rename. (attribute-location): Memoize.
* Memoize uniform-location.David Thompson2014-05-221-6/+7
| | | | | | | * 2d/helpers.scm (memoize): New procedure. * 2d/shader.scm (uniform-location): memoize. (uniform-set!): Pass symbol instead of string.
* Add load-shader-program procedure.David Thompson2014-05-221-0/+5
| | | | | | | * 2d/shader.scm (load-shader-procedure): New procedure. * 2d/font.scm: * 2d/sprite.scm: Use it.
* Add explicit vertex/fragment shader parameters to make-shader-program.David Thompson2014-05-221-3/+18
| | | | | * 2d/shader.scm (make-shader-program): Change parameter list. (vertex-shader?, fragment-shader?): New procedures.
* Add shader-program-attribute-location procedure.David Thompson2014-04-211-0/+6
| | | | * 2d/shader.scm (shader-program-attribute-location): New procedure.
* Export shader-program-id procedure.David Thompson2014-04-211-0/+1
| | | | * 2d/shader.scm: Export shader-program-id.
* Replace figl with the new guile-opengl official release.David Thompson2014-03-231-2/+2
|
* Change license to GPLv3+.David Thompson2014-03-081-0/+17
|
* Throw error if shader file does not exist.David Thompson2014-02-161-1/+3
| | | | * 2d/shader.scm (load-shader): Add exception handling.
* Use vec2 instead of vec4 for vector2 uniforms.David Thompson2014-02-161-4/+1
| | | | | * 2d/shader.scm: Use vec2 instead of vec4 when setting a vector2 uniform value.
* Add 4x4 transformation matrix module.David Thompson2014-02-151-0/+9
| | | | | | * 2d/transform.scm: New module. * 2d/shader.scm: Add uniform setter for transforms. * Makefile.am (SOURCES): Add '2d/transform.scm'.
* Add shader module.David Thompson2014-02-091-0/+268
* 2d/shader.scm: New module. * Makefile.am: Add 2d/shader.scm to SOURCES. * examples/shader.scm: New example. * examples/shaders/fragment-shader.glsl: New shader. * examples/shaders/vertex-shader.glsl: New shader.