Files
obs-studio/libobs
jp9000 e994d6d498 graphics: Add gs_effect_loop helper function
This function greatly simplifies the use of effects by making it so you
can call this function in a simple loop.  This reduces boilerplate and
makes drawing with effects much easier.  The gs_effect_loop function
will now automatically handle all the functions required to do drawing.

---------------------
Before:

gs_technique_t *technique = gs_effect_get_technique("technique");

size_t passes = gs_technique_begin(technique);
for (size_t pass = 0; pass < passes; pass++) {
	gs_technique_begin_pass(technique, pass);

	[draw]

	gs_technique_end_pass(technique);
}
gs_technique_end(technique);

---------------------
After:

while (gs_effect_loop(effect, "technique")) {
	[draw]
}
2014-11-19 19:46:27 -08:00
..
2014-10-03 20:18:01 +02:00
2014-10-12 06:27:33 +02:00
2014-11-03 14:18:30 -08:00
2014-10-01 15:32:49 +02:00
2014-10-23 11:38:51 -07:00
2014-02-12 08:04:50 -07:00
2014-11-19 19:08:39 -08:00