Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Created July 9, 2014 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phrohdoh/73e7e92f79ef615945d9 to your computer and use it in GitHub Desktop.
Save phrohdoh/73e7e92f79ef615945d9 to your computer and use it in GitHub Desktop.
public void DrawSomeRect()
{
SDL.SDL_SetRenderDrawColor(renderer, 0, 175, 175, 0);
SDL.SDL_RenderClear(renderer);
var rectangle = new SDL.SDL_Rect();
rectangle.x = rectangle.y = 50;
rectangle.w = rectangle.h = 50;
SDL.SDL_RenderDrawRect(renderer, ref rectangle);
SDL.SDL_RenderPresent(renderer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment