Added support for rendering on Android devices
This commit is contained in:
1 parent
e110b1f2fd
commit
2eb8d83dc0
8 files changed
+122
-14
No files matched your search
+7
-7
@@ -29,13 +29,6 @@ Renderer *create_renderer(SDL_Window *window);
|
||||
*/
|
||||
void get_render_output_size(Renderer *renderer, int32_t *w, int32_t *h);
|
||||
|
||||
/**
|
||||
* Attempts to load an SDL_Texture from a file path.
|
||||
*
|
||||
* Returns a pointer to the object if it succeeds or NULL when it fails.
|
||||
*/
|
||||
SDL_Texture *load_texture(const Renderer *renderer, const char *path);
|
||||
|
||||
void render_clear(const Renderer *renderer, SDL_Color color);
|
||||
void fill_rect(const Renderer *renderer, SDL_Color color, float x, float y,
|
||||
float w, float h);
|
||||
@@ -45,6 +38,13 @@ void render_texture(const Renderer *renderer, SDL_Texture *texture, float x,
|
||||
float y, float w, float h);
|
||||
void swap_buffers(const Renderer *renderer);
|
||||
|
||||
/**
|
||||
* Attempts to load an SDL_Texture from a file path.
|
||||
*
|
||||
* Returns a pointer to the object if it succeeds or NULL when it fails.
|
||||
*/
|
||||
SDL_Texture *load_texture(const Renderer *renderer, const char *path);
|
||||
|
||||
/**
|
||||
* Frees the memory allocated to the Renderer object and performs the
|
||||
* necessary cleanup.
|
||||
|
||||
Reference in new issue
Block a user