Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Programming

SDL Drawing

jaderamiso
Friday, November 12, 2010 - 06:29

quick question, how do you draw primitive shapes on SDL?

  • Log in or register to post comments
Clint Bellanger
joined 15 years 10 months ago
Friday, November 12, 2010 - 08:10
Clint Bellanger's picture

SDL doesn't come with functions to draw primitives out of the box... not even drawing a single pixel!

But people have built primitives-drawing addons for SDL.  Example, SDL_Draw http://sdl-draw.sourceforge.net/

  • Log in or register to post comments
Pompei2
joined 15 years 8 months ago
Friday, November 12, 2010 - 08:57
Pompei2's picture

There is also SDL_gfx, which seems to still be actively developed.

  • Log in or register to post comments
jaderamiso
joined 14 years 9 months ago
Friday, November 12, 2010 - 17:09

oh. ive tried SDL_draw, its very easy to use.

Ill take a look on SDL_gfx.

  • Log in or register to post comments