Commit Graph
10 Commits
Author SHA1 Message Date
Johannes Schickel 2b3340474e OPENGL: Introduce convenience wrappers for get*Location in Shader. 2016-03-16 20:29:31 +01:00
Johannes Schickel 39100b6132 OPENGL: Do not hardcode any uniform/attribute handling in Shader. 2016-03-16 20:29:31 +01:00
Johannes Schickel baca885cfc OPENGL: Let Shader store the uniform state. 2016-03-16 20:29:31 +01:00
Johannes Schickel 5498982a37 OPENGL: Introduce ShaderManager to handle builtin shaders. 2016-03-16 20:29:26 +01:00
Johannes Schickel 2319fcd228 OPENGL: Handle GLES2 and GL shaders uniformly.
GLES2 requires precision qualifiers to be set and allows use of precision
qualifiers. For GLES2 we define a default precision now. Since precision
qualifiers are not supported in the GLSL version we use for GL, we
introduce compatibility #defines.
2016-03-16 20:29:26 +01:00
Johannes Schickel e66e9e44d3 OPENGL: Accelerate palette lookups with shaders.
This currently is limited to GL contexts.
2016-03-16 20:29:26 +01:00
Johannes Schickel 8a3eecb73a OPENGL: Unify shader implementation for GL and GLES2. 2016-03-16 20:29:25 +01:00
Johannes Schickel d029f16799 OPENGL: Handle destruction gracefully when no context is setup. 2016-03-16 20:29:25 +01:00
Johannes Schickel fee1aa5502 OPENGL: Add support for shaders with GL contexts. 2016-03-16 20:29:25 +01:00
Johannes Schickel fe88375ff3 OPENGL: Support GLES2 contexts. 2016-03-16 20:29:25 +01:00