Exemple #1
0
        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);
        }
Exemple #2
0
 public void DrawScreen(SDLWindow window)
 {
     SDL_RenderPresent(renderer);
 }
Exemple #3
0
 public SDLRenderer(SDLWindow window)
 {
     renderer = SDL_CreateRenderer(window, 0, SDL_RendererFlags.SDL_RENDERER_ACCELERATED);
 }