# LEXSDL
---
A SDL2 wrapper <span style=color:#EE0000>(under development)</span> for <span style=color:#0000CC>C</span> and <span style=color:#e33b26>Rust</span>.
Once SDL3 is stable it will be used.
The documentation can be found <a href=https://gitlab.com/Alexevier/lexsdl/-/tree/main/documentation>here</a>.
It can be used in existing projects without beeing disruptive.
On <span style=color:#e33b26>Rust</span> a safe wrapper has not been made, use of <b>unsafe</b> is necessary.
```
// the easiest is to set the window and the renderer
SDL_Window *yourSdlWindow = SDL_CreateWindow(..);
SDL_Renderer *yourSdlRenderer = SDL_CreateRenderer(..);
LEXSDL_SetWindow(yourSdlWindow);
LEXSDL_SetRenderer(youtSdlRenderer);
// now it can be used with the rest of the lib
LEXSDL_NewFrame();
/* draw textures and stuff */
LEXSDL_ShowFrame();
```
NOTE: is nesceceary to have SDL2 installed and in the path of the C compiler.