17 Commits

Author SHA1 Message Date
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 211e17250c5a786861373cd8d4d9e7ba1780ee8b.
2013-04-06 04:37:17 +02:00
twinaphex
8396f71004 Revert "Don't dump frame_count_mod unless needed."
This reverts commit eeddfea4255959567459080a05496c885e4fde41.
2013-04-06 04:37:05 +02:00
twinaphex
e889f5c548 Revert "Remove redundant line."
This reverts commit 2a09f52cc88b44e9205636e93d96aa7ae3e7b63a.
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