Function TCOD_renderer_init_sdl3

Function Documentation

TCOD_Context *TCOD_renderer_init_sdl3(SDL_PropertiesID window_props, SDL_PropertiesID renderer_props, struct TCOD_Tileset *tileset)

Return a libtcod rendering context using SDL3.

Parameters:
  • window_props – The SDL3 window properties. See SDL_CreateWindowWithProperties.

  • renderer_props – The SDL3 rendering properties. See SDL_CreateRendererWithProperties.

  • tileset – The tileset to use for this renderer.

Returns:

The new context, will need to deleted with TCOD_context_delete when you are done with it.