Skip to content

Instantly share code, notes, and snippets.

View l-t-m-f's full-sized avatar

L_T_M_F l-t-m-f

View GitHub Profile
@l-t-m-f
l-t-m-f / CMakeLists.txt
Created April 14, 2026 21:25
SDL vendored dependency
#ajouter avant `add_executable`
add_subdirectory(${CMAKE_SOURCE_DIR}/vendored/SDL_ttf ${CMAKE_BINARY_DIR}/SDL_ttf)
#add_executable
#ajouter apres `add_executable`
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/vendored/SDL_ttf/include)
target_link_libraries(${PROJECT_NAME} PRIVATE SDL3_ttf::SDL3_ttf)
@l-t-m-f
l-t-m-f / example.c
Created February 13, 2026 20:07
Example - Gestion des images
#include <SDL3/SDL.h>
#include <SDL3_image/SDL_image.h>
SDL_Window *win = nullptr;
SDL_Renderer *rend = nullptr;
SDL_Texture *sprites = nullptr;
int main(int argc, char *argv[])
{
/* Initialisation. */