#include #include"LEXSDL.h" int main(void){ // this window and renderer would arleady be integreted in your code in any way. SDL_Window *yourWindow = SDL_CreateWindow("LEXSDL C Example - Integrating", SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED, 800,600, 0); SDL_Renderer *yourRenderer = SDL_CreateRenderer(yourWindow, -1, 0); // set the window and renderer LEXSDL_SetWindow(yourWindow); LEXSDL_SetRenderer(yourRenderer); //now functions of LEXSDL that depend on the renderer and window can be used. //set the background to a pink color LEXSDL_SetBackgroundColor(0xee,0x70,0xb5,0xFF); // and render LEXSDL_NewFrame(); LEXSDL_ShowFrame(); // sleep for 3 seconds sleep(3); }