new: added fx_program(int pass)

main
Dominik Madarász 2024-04-18 11:18:12 +02:00
parent c9877e7b60
commit f7015da22e
6 changed files with 25 additions and 0 deletions

View File

@ -1487,6 +1487,7 @@ typedef struct lightmap_t {
char * fx_name(int pass);
int fx_find(const char *name);
void fx_order(int pass, unsigned priority);
unsigned fx_program(int pass);
int ui_fx(int pass);
int ui_fxs();
void* screenshot(int components);

View File

@ -17777,6 +17777,7 @@ API void fx_enable_all(int enabled);
API char * fx_name(int pass);
API int fx_find(const char *name);
API void fx_order(int pass, unsigned priority);
API unsigned fx_program(int pass);
API int ui_fx(int pass);
API int ui_fxs();
@ -385223,6 +385224,10 @@ void postfx_clear(postfx *fx) {
}
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) {
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) {
postfx_order(&fx, pass, priority);
}
unsigned fx_program(int pass) {
return postfx_program(&fx, pass);
}
int ui_fx(int pass) {
return ui_postfx(&fx, pass);
}

View File

@ -2583,6 +2583,10 @@ void postfx_clear(postfx *fx) {
}
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) {
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) {
postfx_order(&fx, pass, priority);
}
unsigned fx_program(int pass) {
return postfx_program(&fx, pass);
}
int ui_fx(int pass) {
return ui_postfx(&fx, pass);
}

View File

@ -755,6 +755,7 @@ API void fx_enable_all(int enabled);
API char * fx_name(int pass);
API int fx_find(const char *name);
API void fx_order(int pass, unsigned priority);
API unsigned fx_program(int pass);
API int ui_fx(int pass);
API int ui_fxs();

View File

@ -19756,6 +19756,10 @@ void postfx_clear(postfx *fx) {
}
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) {
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) {
postfx_order(&fx, pass, priority);
}
unsigned fx_program(int pass) {
return postfx_program(&fx, pass);
}
int ui_fx(int pass) {
return ui_postfx(&fx, pass);
}

View File

@ -3844,6 +3844,7 @@ API void fx_enable_all(int enabled);
API char * fx_name(int pass);
API int fx_find(const char *name);
API void fx_order(int pass, unsigned priority);
API unsigned fx_program(int pass);
API int ui_fx(int pass);
API int ui_fxs();