# LEXSDL

A SDL2 wrapper (under development) for C and Rust.

Once SDL3 is stable it will be used.

The documentation can be found here.

It can be used in existing projects without beeing disruptive.

On Rust a safe wrapper has not been made, use of unsafe is necessary.

``` // the easiest is to set the window and the renderer

SDLWindow *yourSdlWindow = SDLCreateWindow(..); SDLRenderer *yourSdlRenderer = SDLCreateRenderer(..);

LEXSDLSetWindow(yourSdlWindow); LEXSDLSetRenderer(youtSdlRenderer);

// now it can be used with the rest of the lib LEXSDLNewFrame(); /* draw textures and stuff */ LEXSDLShowFrame(); ```

NOTE: is nesceceary to have SDL2 installed and in the path of the C compiler.