Compare commits

..

2 Commits

Author SHA1 Message Date
Ulysse Cura 60dbab0fd5 Made drivers warning not show if DRIVERS is NULL. 2026-08-03 19:00:25 +02:00
Ulysse Cura 98fac079c6 Renaming inputs sources. 2026-08-03 18:59:55 +02:00
6 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
CORE_SOURCES := \
linked_list.c \
vector2d.c \
events.c \
inputs.c \
asset_manager.c \
ecs.c \
display.c \

View File

@ -33,7 +33,7 @@ inline int display_init(void)
for(int i = 0; i < NB_DRIVERS; i++)
debug_printf("%d : %s", i, SDL_GetRenderDriver(i));
warning_printf("This build of 2D_Engine_C only support the following drivers : %s", DRIVERS);
if(DRIVERS) warning_printf("This build of 2D_Engine_C only support the following drivers : %s", DRIVERS);
renderer = SDL_CreateRenderer(window, DRIVERS);
if(!renderer)

View File

@ -10,9 +10,9 @@
#define DISPLAY_HEIGHT 224
#define RENDER_SCALE 2
//#define DRIVERS NULL
#define DRIVERS "vulkan,gpu,software"
extern SDL_Window *window;
extern SDL_Renderer *renderer;

View File

@ -4,7 +4,7 @@
#include <stdbool.h>
#include "asset_manager.h"
#include "ecs.h"
#include "events.h"
#include "inputs.h"
/**
* @brief Game data.

View File

@ -1,4 +1,4 @@
#include "events.h"
#include "inputs.h"
#include <SDL3/SDL_events.h>