Members - Reputation: 109
Posted 04 June 2012 - 06:57 AM
Had a small question about the removal of primitives drawn using the SDL_GFX library. I know how to draw the primitive ( circleColor (destination, x, y, radian, color); for example ). However, I haven't really figured out a way to access the primitive after its creation been made. At the moment, the destination of the primitive is the screen. I've tried adding it to different surfaces, however..that didn't really seem to work out ( the program exploded ). Does anyone have any suggestions?
Crossbones+ - Reputation: 4230
Posted 04 June 2012 - 08:52 AM
I've tried to use SDL_GFX in the past, and, I can get it to work. But, the main issue I had with SDL_GFX is it does everything in software, which turned out to be incredibly slow, especially for things like rotation and scaling.
So, I moved to SFML, which provided all the GFX primitives, as well as GFX tranforms (scaling and rotating) done in HW, but all with the same SFML API-set. I would suggest checking out SFML (get version 2.0) before getting too deep with SDL:
---(Old Blog, still has good info): 2dGameMaking
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)