obs-studio/libobs
jp9000 cdf36cf8ba Add helper functions for drawing sources
If you look at the previous commits, you'll see I had added
obs_source_draw before.  For custom drawn sources in particular, each
time obs_source_draw was called, it would restart the effect and its
passes for each draw call, which was not optimal.  It should really use
the effect functions for that.  I'll have to add a function to simplify
effect usage.

I also realized that including the color matrix parameters in
obs_source_draw made the function kind of messy to use; instead,
separating the color matrix stuff out to
obs_source_draw_set_color_matrix feels a lot more clean.

On top of that, having the ability to set the position would be nice to
have as well, rather than having to mess with the matrix stuff each
time, so I also added that for the sake of convenience.

obs_source_draw will draw a texture sprite, optionally of a specific
size and/or at a specific position, as well as optionally inverted.  The
texture used will be set to the 'image' parameter of whatever effect is
currently active.

obs_source_draw_set_color_matrix will set the color matrix value if the
drawing requires color matrices.  It will set the 'color_matrix',
'color_range_min', and 'color_range_max' parameters of whatever effect
is currently active.

Overall, these feel much more clean to use than the previous iteration.
2014-11-19 19:08:39 -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 libobs: Add function to get cur. effect technique 2014-11-19 18:04:38 -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