libobs: Add obs_get_opaque_effect function

This returns a common effect useful for rendering an image with the
alpha channel overridden to 1.0.
This commit is contained in:
jp9000
2015-03-14 00:24:32 -07:00
parent e4305d147b
commit 9b238ef71e
4 changed files with 53 additions and 0 deletions

View File

@@ -494,6 +494,9 @@ EXPORT gs_effect_t *obs_get_default_effect(void);
/** Returns the default effect for generic RGB/YUV drawing using texture_rect */
EXPORT gs_effect_t *obs_get_default_rect_effect(void);
/** Returns the default effect for generic RGB/YUV drawing (alpha set to 1) */
EXPORT gs_effect_t *obs_get_opaque_effect(void);
/** Returns the solid effect for drawing solid colors */
EXPORT gs_effect_t *obs_get_solid_effect(void);