public void ClearScreen(SDLWindow window) { byte r, g, b, a; SDL_GetRenderDrawColor(this, out r, out g, out b, out a); SDL_SetRenderDrawColor(this, 0, 0, 0, 255); SDL_RenderClear(this); SDL_SetRenderDrawColor(this, r, g, b, a); }
public void DrawScreen(SDLWindow window) { SDL_RenderPresent(renderer); }
public SDLRenderer(SDLWindow window) { renderer = SDL_CreateRenderer(window, 0, SDL_RendererFlags.SDL_RENDERER_ACCELERATED); }