Added API functions for modulating the colour and alpha of a texture
This commit is contained in:
1 parent
b95cff5f0c
commit
24a86ba6e3
4 files changed
+41
No files matched your search
@@ -7,6 +7,7 @@
|
||||
#include "SDL_surface.h"
|
||||
#include "SDL_video.h"
|
||||
#include "aliases.h"
|
||||
#include <aliases.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -43,6 +44,8 @@ Renderer *create_renderer(SDL_Window *window);
|
||||
void get_render_output_size(Renderer *renderer, i32 *w, i32 *h);
|
||||
|
||||
void set_render_draw_color(const Renderer *renderer, SDL_Color color);
|
||||
void set_texture_color_modulation(SDL_Texture *texture, SDL_Color color);
|
||||
void set_texture_alpha_modulation(SDL_Texture *texture, u8 alpha);
|
||||
void render_clear(const Renderer *renderer, SDL_Color color);
|
||||
void draw_rect(const Renderer *renderer, SDL_Color color, f32 x, f32 y, f32 w,
|
||||
f32 h);
|
||||
|
||||
Reference in new issue
Block a user