new: added fx_program(int pass)
parent
c9877e7b60
commit
f7015da22e
|
@ -1487,6 +1487,7 @@ typedef struct lightmap_t {
|
||||||
char * fx_name(int pass);
|
char * fx_name(int pass);
|
||||||
int fx_find(const char *name);
|
int fx_find(const char *name);
|
||||||
void fx_order(int pass, unsigned priority);
|
void fx_order(int pass, unsigned priority);
|
||||||
|
unsigned fx_program(int pass);
|
||||||
int ui_fx(int pass);
|
int ui_fx(int pass);
|
||||||
int ui_fxs();
|
int ui_fxs();
|
||||||
void* screenshot(int components);
|
void* screenshot(int components);
|
||||||
|
|
|
@ -17777,6 +17777,7 @@ API void fx_enable_all(int enabled);
|
||||||
API char * fx_name(int pass);
|
API char * fx_name(int pass);
|
||||||
API int fx_find(const char *name);
|
API int fx_find(const char *name);
|
||||||
API void fx_order(int pass, unsigned priority);
|
API void fx_order(int pass, unsigned priority);
|
||||||
|
API unsigned fx_program(int pass);
|
||||||
|
|
||||||
API int ui_fx(int pass);
|
API int ui_fx(int pass);
|
||||||
API int ui_fxs();
|
API int ui_fxs();
|
||||||
|
@ -385223,6 +385224,10 @@ void postfx_clear(postfx *fx) {
|
||||||
}
|
}
|
||||||
fx->enabled = 0;
|
fx->enabled = 0;
|
||||||
}
|
}
|
||||||
|
unsigned postfx_program(postfx *fx, int pass) {
|
||||||
|
if( pass < 0 || pass >= array_count(fx->pass) ) return 0;
|
||||||
|
return fx->pass[pass].program;
|
||||||
|
}
|
||||||
|
|
||||||
int ui_postfx(postfx *fx, int pass) {
|
int ui_postfx(postfx *fx, int pass) {
|
||||||
if (pass < 0 || pass >= array_count(fx->pass)) return 0;
|
if (pass < 0 || pass >= array_count(fx->pass)) return 0;
|
||||||
|
@ -385427,6 +385432,9 @@ int fx_find(const char *name) {
|
||||||
void fx_order(int pass, unsigned priority) {
|
void fx_order(int pass, unsigned priority) {
|
||||||
postfx_order(&fx, pass, priority);
|
postfx_order(&fx, pass, priority);
|
||||||
}
|
}
|
||||||
|
unsigned fx_program(int pass) {
|
||||||
|
return postfx_program(&fx, pass);
|
||||||
|
}
|
||||||
int ui_fx(int pass) {
|
int ui_fx(int pass) {
|
||||||
return ui_postfx(&fx, pass);
|
return ui_postfx(&fx, pass);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2583,6 +2583,10 @@ void postfx_clear(postfx *fx) {
|
||||||
}
|
}
|
||||||
fx->enabled = 0;
|
fx->enabled = 0;
|
||||||
}
|
}
|
||||||
|
unsigned postfx_program(postfx *fx, int pass) {
|
||||||
|
if( pass < 0 || pass >= array_count(fx->pass) ) return 0;
|
||||||
|
return fx->pass[pass].program;
|
||||||
|
}
|
||||||
|
|
||||||
int ui_postfx(postfx *fx, int pass) {
|
int ui_postfx(postfx *fx, int pass) {
|
||||||
if (pass < 0 || pass >= array_count(fx->pass)) return 0;
|
if (pass < 0 || pass >= array_count(fx->pass)) return 0;
|
||||||
|
@ -2787,6 +2791,9 @@ int fx_find(const char *name) {
|
||||||
void fx_order(int pass, unsigned priority) {
|
void fx_order(int pass, unsigned priority) {
|
||||||
postfx_order(&fx, pass, priority);
|
postfx_order(&fx, pass, priority);
|
||||||
}
|
}
|
||||||
|
unsigned fx_program(int pass) {
|
||||||
|
return postfx_program(&fx, pass);
|
||||||
|
}
|
||||||
int ui_fx(int pass) {
|
int ui_fx(int pass) {
|
||||||
return ui_postfx(&fx, pass);
|
return ui_postfx(&fx, pass);
|
||||||
}
|
}
|
||||||
|
|
|
@ -755,6 +755,7 @@ API void fx_enable_all(int enabled);
|
||||||
API char * fx_name(int pass);
|
API char * fx_name(int pass);
|
||||||
API int fx_find(const char *name);
|
API int fx_find(const char *name);
|
||||||
API void fx_order(int pass, unsigned priority);
|
API void fx_order(int pass, unsigned priority);
|
||||||
|
API unsigned fx_program(int pass);
|
||||||
|
|
||||||
API int ui_fx(int pass);
|
API int ui_fx(int pass);
|
||||||
API int ui_fxs();
|
API int ui_fxs();
|
||||||
|
|
|
@ -19756,6 +19756,10 @@ void postfx_clear(postfx *fx) {
|
||||||
}
|
}
|
||||||
fx->enabled = 0;
|
fx->enabled = 0;
|
||||||
}
|
}
|
||||||
|
unsigned postfx_program(postfx *fx, int pass) {
|
||||||
|
if( pass < 0 || pass >= array_count(fx->pass) ) return 0;
|
||||||
|
return fx->pass[pass].program;
|
||||||
|
}
|
||||||
|
|
||||||
int ui_postfx(postfx *fx, int pass) {
|
int ui_postfx(postfx *fx, int pass) {
|
||||||
if (pass < 0 || pass >= array_count(fx->pass)) return 0;
|
if (pass < 0 || pass >= array_count(fx->pass)) return 0;
|
||||||
|
@ -19960,6 +19964,9 @@ int fx_find(const char *name) {
|
||||||
void fx_order(int pass, unsigned priority) {
|
void fx_order(int pass, unsigned priority) {
|
||||||
postfx_order(&fx, pass, priority);
|
postfx_order(&fx, pass, priority);
|
||||||
}
|
}
|
||||||
|
unsigned fx_program(int pass) {
|
||||||
|
return postfx_program(&fx, pass);
|
||||||
|
}
|
||||||
int ui_fx(int pass) {
|
int ui_fx(int pass) {
|
||||||
return ui_postfx(&fx, pass);
|
return ui_postfx(&fx, pass);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3844,6 +3844,7 @@ API void fx_enable_all(int enabled);
|
||||||
API char * fx_name(int pass);
|
API char * fx_name(int pass);
|
||||||
API int fx_find(const char *name);
|
API int fx_find(const char *name);
|
||||||
API void fx_order(int pass, unsigned priority);
|
API void fx_order(int pass, unsigned priority);
|
||||||
|
API unsigned fx_program(int pass);
|
||||||
|
|
||||||
API int ui_fx(int pass);
|
API int ui_fx(int pass);
|
||||||
API int ui_fxs();
|
API int ui_fxs();
|
||||||
|
|
Loading…
Reference in New Issue