Add DEBUG_ENGINE as compile definition instead of using build_config

This commit is contained in:
abdelrahman committed 2023-11-04 22:11:54 +00:00
1 parent 5c0f2702ae
commit b74f7c6e3a
10 files changed
+233 -104

No files matched your search

+10
View File
@@ -4,10 +4,12 @@
#include "SDL.h"
#include "SDL_pixels.h"
#include "SDL_render.h"
#include "SDL_rwops.h"
#include "SDL_surface.h"
#include "SDL_ttf.h"
#include "SDL_video.h"
#include "aliases.h"
#include "pak.h"
#include <stdbool.h>
#ifdef __cplusplus
@@ -71,6 +73,14 @@ void swap_buffers(const Renderer *renderer);
*/
SDL_Texture *load_texture(const Renderer *renderer, const char *path);
/**
* Attempts to load an SDL_Texture from an SDL_RWops context.
*
* Returns a pointer to the object if it succeeds or NULL when it fails.
*/
SDL_Texture *load_texture_from_rwops(const Renderer *renderer, SDL_RWops *ctx,
i32 freesrc);
/**
* Frees the memory allocated to the Renderer object and performs the
* necessary cleanup.