Commit Graph

22 Commits

Author SHA1 Message Date
TroggleMonkey c15d188ecf Refactored duplicate Cg/GLSL LUT texture loading code into shader_common.c.
Fixed a bug where "Apply Shader Changes" in RGUI saved/set the wrong
texture filter for LUT textures.
Unofficially extended Cg shader spec with an LUT mipmap option:
To mipmap LUT "foo," add 'foo_mipmap = "true"' to your .cgp/.glslp file.
Mipmapping is currently implemented for the OpenGL driver only.
2014-05-08 13:41:04 -04:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister 551fd27204 Add support for wrapping modes.
Not terribly useful atm due to POT, but at least it's there.
Has some use mostly with LUTs ... NPOT + REPEAT requires extension on
GLES2 at least.
2013-08-16 00:30:54 +02:00
Themaister 9aab315045 Save lut paths correctly in shader_parse. 2013-04-16 22:22:26 +02:00
Themaister 2c8ddeb109 Add gfx_shader_resolve_relative.
Translates relative paths (from CGP) into absolute paths,
suitable for loading files, and saving cgp some place else.
2013-04-15 23:48:25 +02:00
Themaister 1e9e703375 Add support for CGP/GLSL.
Serves to unify shader support across the board
on platforms which cannot use Cg (EGL, GLES).
Spec is exactly the same as CGP except that extension is
.glslp. Expected extension on individual shaders are .glsl.
2013-04-10 22:38:45 +02:00
Themaister b09237e190 Remove unused variables. 2013-04-08 09:21:14 +02:00
twinaphex db0ff2a212 (RARCH_CONSOLE) Build fixes 2013-04-07 18:03:25 +02:00
Themaister f3ca37cb2b Always use NULL shader is shader_enable is false.
RARCH_CONSOLE sets true as default. Update the config
if shader_enable is false.
2013-04-07 13:11:27 +02:00
Themaister 50c184042e Rewrite XML shader loading.
Use gfx_shader abstraction.
2013-04-07 12:41:05 +02:00
Themaister fea6d5b55d Don't split twice. 2013-04-07 10:27:58 +02:00
twinaphex d4e8a3c682 (Android) Build fix 2013-04-07 04:17:44 +02:00
Themaister 4a8b3599bc Refactor out cg_shader_path, xml_shader_path.
Make shader paths uniform in shader_path.
2013-04-07 01:46:06 +02:00
twinaphex 9a4ddfd2e0 Forgot a conditional check in shader_cg.c before doing freeing of
menu_cg_program - some other cleanups to do with setting stock
shaders in Cg
2013-04-06 16:29:00 +02:00
Themaister e649db253c Reintroduce CGP refactor.
Fix several issues that caused crashes.
2013-04-06 12:00:10 +02:00
twinaphex 0340f2043c Revert "Major refactor to CGP parsing."
This reverts commit 211e17250c.
2013-04-06 04:37:17 +02:00
twinaphex 8396f71004 Revert "Don't dump frame_count_mod unless needed."
This reverts commit eeddfea425.
2013-04-06 04:37:05 +02:00
twinaphex e889f5c548 Revert "Remove redundant line."
This reverts commit 2a09f52cc8.
2013-04-06 03:53:07 +02:00
Themaister 2a09f52cc8 Remove redundant line. 2013-04-06 00:26:14 +02:00
Themaister eeddfea425 Don't dump frame_count_mod unless needed. 2013-04-01 15:40:11 +02:00
Themaister 211e17250c Major refactor to CGP parsing.
Adds saving functionality for CGPs.
2013-04-01 15:34:02 +02:00