Alexander Szpakowski
|
b6088115c9
Changed some variable names to be more descriptive
|
12 years ago |
Alexander Szpakowski
|
609ef2c4e4
Format luaL_error strings properly in ShaderEffect lua wrapper code
|
12 years ago |
Alexander Szpakowski
|
88af7239c3
Removed unnecessary tabs from empty lines
|
12 years ago |
Alexander Szpakowski
|
0968fa6f11
More cleanup and some overdone comments
|
12 years ago |
Alexander Szpakowski
|
37191a5953
Minor cleanup
|
12 years ago |
Alexander Szpakowski
|
dcf9825226
Uniform value defines now exist in both the vertex and fragment shaders
|
12 years ago |
Alexander Szpakowski
|
c13b1fb03b
Changed vertex shader callback function name from 'transform' to 'position', added more vertex shader defines (some to make it easier to eventually have a GLES2 backend), hopefully updated Visual Studio project with changed filenames
|
12 years ago |
Alexander Szpakowski
|
6560019829
opengl graphics module files now always include OpenGL.h rather than GLee.h
|
12 years ago |
Alexander Szpakowski
|
9143442448
Add internal support for tesselation control and evaluation shaders (not that they'll ever be used), now that GLee has definitions for them
|
12 years ago |
Alexander Szpakowski
|
a18b353e62
Update GLee to latest available version (supports extensions and versions up to when OpenGL 4.2 was released, old GLee only had GL3.0 support)
|
12 years ago |
Alexander Szpakowski
|
da661e8e2f
Bind texture id 0 (no texture) instead of disabling/re-enabling texturing entirely, when drawing graphics primitives. This both allows shaders to potentially use their own textures when drawing textureless primitives, and reduces overhead caused by constant GL state changes when drawing many graphics primitives.
|
12 years ago |
Alexander Szpakowski
|
8bae828924
Don't override texture binding check when calling bindTexture with a texture id of 0
|
12 years ago |
Alexander Szpakowski
|
15a1fd3552
Re-added "pixeleffect" graphics isSupported string for compatibility
|
12 years ago |
Alexander Szpakowski
|
d62878fbb8
Use GLSL #line preprocessor directive instead of manually trying to convert error message lines; flag shader objects for lazy-deletion after linking with program object instead of detaching them immediately (debuggers can now view source code of shader programs)
|
12 years ago |
Alexander Szpakowski
|
f54c270042
minor cleanup and fixes
|
12 years ago |
Alexander Szpakowski
|
3047321e71
Use initializer list copy constructor instead of per-element copying for shader source list in ShaderEffect constructor
|
12 years ago |
Alexander Szpakowski
|
83204c5dc5
ShaderEffects now take a dynamically sized list of source codes instead of one vertex and one fragment shader string
|
12 years ago |
Alexander Szpakowski
|
b55de47fb9
misc cleanup
|
12 years ago |
Alexander Szpakowski
|
0c525ebb92
shaders now use a static vector of counters for each texture unit to help keep track of completely free texture units
|
12 years ago |
Alexander Szpakowski
|
79fa42d207
made ShaderEffects individully handle texture units for sent images/canvases, added GL helper function for quickly binding a texture to a specific texture unit, hopefully made ShaderEffects load and unload volatile better
|
12 years ago |
Alexander Szpakowski
|
16f925affa
improved GL texture binding api to take texture units into consideration
|
12 years ago |
Alexander Szpakowski
|
5626b74b79
reduced unnecessary usage of glUseProgram, shadereffect is now properly detached in unloadVolatile and reattached if necessary in loadVolatile, made current and max texture units static to prevent different shaders from overwriting the value of different texture units
|
12 years ago |
Alexander Szpakowski
|
5252ed28cd
changed shadereffect texture image unit counter and map to be non-static, get max texture units from max combined TIUs instead of max fragment shader TIUs, added the current MVP matrix as an argument to the vertex shader transform function, reduced code duplication in ShaderEffect::sendImage and sendCanvas
|
12 years ago |
Alexander Szpakowski
|
0611234067
changed PixelEffect name to ShaderEffect, added lua-side support for vert/frag shader combinations with love.graphics.newShaderEffect, added tentative support for single-file vertex+fragment shaders
|
12 years ago |
Alexander Szpakowski
|
28e3b105e9
added C++side support for combinations of vertex and fragment shaders in pixeleffects
|
12 years ago |
Alexander Szpakowski
|
a8dc813258
Text drawing performance improvements (issue #532)
|
12 years ago |
Bart van Strien
|
68a895e7c6
Catch errors in love.font.newRasterizer, add luax_pconvobj which pcalls, allowing love.graphics.newFont to clean up before re-erroring
|
12 years ago |
Bart van Strien
|
82ea98aa65
Disable Data:getPointer (issue #520)
|
12 years ago |
Bart van Strien
|
b10ff8da42
Apply patch that fixes File:read from reading too much (on EOF) (bug #530)
|
12 years ago |
vrld
|
62e2c752e5
More verbose VertexIndex::getType() (using numeric_limits)
|
12 years ago |