0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
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
..
callback (API Change) Use const params where applicable 2014-09-26 17:23:07 -07:00
data Add obs_get_default_rect_effect 2014-10-03 20:18:01 +02:00
graphics graphics: Add gs_effect_loop helper function 2014-11-19 19:46:27 -08:00
media-io media-io: Fix repeating video timestamps 2014-10-22 20:32:49 -07:00
util Allow hex numbers to be used in config data 2014-11-17 06:47:48 -08:00
CMakeLists.txt Add media remuxer to media-io 2014-10-12 06:27:33 +02:00
LibObsConfig.cmake.in cmake: Export plugin data destination 2014-09-27 09:41:32 -07:00
LibObsConfigVersion.cmake.in Export libobs cmake target, so external plugins can be built without ugly hacks 2014-05-08 14:43:16 +02:00
obs-avc.c obs-output module: Fill out more functions 2014-04-02 00:42:12 -07:00
obs-avc.h obs-output module: Fill out more functions 2014-04-02 00:42:12 -07:00
obs-cocoa.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs-config.h Update to 0.6.4 2014-11-03 14:18:30 -08:00
obs-data.c Sort obs_data_items by name 2014-10-01 15:32:49 +02:00
obs-data.h (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
obs-defs.h Change macro to MODULE_MISSING_EXPORTS for clarity 2014-07-27 17:28:35 -07:00
obs-display.c (API Change) Use const params where applicable 2014-09-26 17:23:07 -07:00
obs-encoder.c (API Change) Pass data to get_properties when possible 2014-10-01 15:39:57 +02:00
obs-encoder.h Some documentation improvements to obs-encoder.h 2014-10-19 15:00:07 +02:00
obs-ffmpeg-compat.h Use propper ffmpeg compatiblity instead of relying on deprecated functions 2014-06-28 20:54:14 +02:00
obs-interaction.h Add interaction support to libobs 2014-09-15 17:19:37 -05:00
obs-internal.h Add optional source flags 2014-10-23 11:38:51 -07:00
obs-module.c (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
obs-module.h Some documentation improvements in obs-module.h 2014-10-19 15:00:07 +02:00
obs-nix.c Fix calculation of physical memory on linux systems 2014-10-05 13:01:19 -07:00
obs-output.c Fix asset crash interleaving with active encoders 2014-11-03 14:13:14 -08:00
obs-output.h (API Change) Pass data to get_properties when possible 2014-10-01 15:39:57 +02:00
obs-properties.c (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
obs-properties.h Some documentation improvements in obs-properties.h 2014-10-19 15:00:07 +02:00
obs-scene.c (API Change) Use const params where applicable 2014-09-26 17:23:07 -07:00
obs-scene.h Scenes: Implement more item positioning features 2014-06-15 20:33:13 -07:00
obs-service.c (API Change) Pass data to get_properties when possible 2014-10-01 15:39:57 +02:00
obs-service.h Some documentation improvements to obs-service.h 2014-10-19 15:00:07 +02:00
obs-source.c Add helper functions for drawing sources 2014-11-19 19:08:39 -08:00
obs-source.h Some documentation improvements in obs-source.h 2014-10-19 15:00:07 +02:00
obs-ui.h Revamp API and start using doxygen 2014-02-12 08:04:50 -07:00
obs-video.c Add timestamp circlebuf for video input/output 2014-10-22 20:32:48 -07:00
obs-view.c (API Change) Remove pointers from all typedefs 2014-09-25 21:48:11 -07:00
obs-windows.c (API Change) Refactor module handling 2014-07-27 17:29:10 -07:00
obs.c Fix typo in signal handler creation check 2014-10-29 16:05:23 +01:00
obs.h Add helper functions for drawing sources 2014-11-19 19:08:39 -08:00
obs.hpp Fix OBSRef move assignment not releasing the previous reference 2014-10-29 16:17:07 +01:00
obsconfig.h.in Export plugin destination and relative prefix to obsconfig.h 2014-07-26 14:27:39 +02:00