SDL by itself isn't capable of drawing primitives, but SDL_gfx is a library extension that includes arcs and bezier curves.
http://www.ferzkopp.net/joomla/content/view/19/14/
Search found 384 matches
- Fri May 28, 2010 7:14 pm
- Forum: Programming Discussion
- Topic: curved line in SDL
- Replies: 3
- Views: 485
- Thu May 27, 2010 3:32 pm
- Forum: Programming Discussion
- Topic: SAT Question
- Replies: 9
- Views: 733
Re: SAT Question
At first glance:
This looks like a line to me.
Code: Select all
polygon.addPoint(Vector2(imageX, imageY));
polygon.addPoint(Vector2(imageX, imageY));
polygon.addPoint(Vector2(imageX+width, imageY+height));
- Tue May 25, 2010 4:46 pm
- Forum: General/Off-Topic
- Topic: Off to college tips....
- Replies: 19
- Views: 1769
Re: Off to college tips....
I was just pulling fun at the "everyone". I gotcha. I was dodging the accusation. :P Ya know...at times I feel that I missed out on portions of college by living at home. Suddenly, I feel much better. I only lived in the dorms my freshmen year. There's pros and cons to each, but I think I...
- Tue May 25, 2010 1:57 pm
- Forum: General/Off-Topic
- Topic: Off to college tips....
- Replies: 19
- Views: 1769
Re: Off to college tips....
That white glob on the shower floor isn't shampoo...avansc wrote:experience?Bakkon wrote:Buy a shitty pair of flip-flops for the shower. Everyone masturbates in there.
- Tue May 25, 2010 1:14 pm
- Forum: General/Off-Topic
- Topic: Off to college tips....
- Replies: 19
- Views: 1769
Re: Off to college tips....
Buy a shitty pair of flip-flops for the shower. Everyone masturbates in there.
- Mon May 24, 2010 3:55 pm
- Forum: General/Off-Topic
- Topic: LOST Series Finale
- Replies: 6
- Views: 721
Re: LOST Series Finale
I first started the show a couple months ago and marathoned the whole thing within a couple weeks just in time for the finale. Totally worth it. The ending was beautifully done.
- Sun May 23, 2010 12:01 am
- Forum: Programming Discussion
- Topic: SDL VS SFML
- Replies: 25
- Views: 2202
Re: SDL VS SFML
I'd say that SDL is better for beginners because of its simplicity and the fact that Lazyfoo exists. SFML is much simpler than SDL and the tutorials on their website is formatted better than LazyFoo. It's also a lot more powerful right off the bat without needing a bunch of extension libraries. So ...
- Sat May 22, 2010 5:46 pm
- Forum: Art, Music, and Design
- Topic: Zeid's Epic Art Thread
- Replies: 155
- Views: 55110
Re: Zeid's Epic iPhone Game Post: Update Pending
I was wondering why I had never seen this thread before, but then realized it was once your artwork dump. You have some amazing sprite skills.
Are you using the iPhone SDK or something like Unity?
Are you using the iPhone SDK or something like Unity?
- Fri May 21, 2010 6:37 pm
- Forum: Programming Discussion
- Topic: How do YOU comment a source file?
- Replies: 25
- Views: 1749
Re: How do YOU comment a source file?
How about an example of comments that I hate? /* this function computes something */ int computeStuff(int n) { ... } People using block comments for a single line pisses me off. Then when you want to comment out a huge chunk of code with /* */ it closes at the end of the function comment instead of ...
- Fri May 21, 2010 6:30 pm
- Forum: General/Off-Topic
- Topic: University CS Course Selection
- Replies: 6
- Views: 773
Re: University CS Course Selection
At least take a foreign language or even minor in one. That always looks good on a resume. Also, take some sort of writing class should you plan for grad school, so you can write your thesis. A social science could be useful, because if you better know how people process information, that could lead...
- Fri May 21, 2010 6:19 pm
- Forum: Game Development
- Topic: Oh God so many tiles!
- Replies: 22
- Views: 2407
Re: Oh God so many tiles!
That's the point. The 'delete' operator checks for non-null.XianForce wrote:But what Ginto posted is still good practice. Because what if it ISN'T NULL? I use that practice all the time =p
- Thu May 20, 2010 7:54 am
- Forum: Programming Discussion
- Topic: Help, velocity and direction
- Replies: 20
- Views: 1425
Re: Help, velocity and direction
Thanks, i'll try that. and what do you mean 'costly' will it slow the game? If you look up the definitions of sine and cosine, you see they are summations of a bunch of factorials and high exponentials. Extremely slower than basic addition and subtract, but on modern computers, you would notice any...
- Wed May 19, 2010 9:28 pm
- Forum: Programming Discussion
- Topic: how to stop from looping
- Replies: 11
- Views: 835
Re: how to stop from looping
We need to see more code. What scope is 'flip' in?
- Wed May 19, 2010 8:14 pm
- Forum: Programming Discussion
- Topic: SDL Compile Error WTF
- Replies: 5
- Views: 500
Re: SDL Compile Error WTF
#include <string> is in your header, so you don't need to include it again in the cpp. Also, I'd go with #ifndef over #pragma.
- Tue May 18, 2010 12:09 pm
- Forum: General/Off-Topic
- Topic: Camtasia tips
- Replies: 6
- Views: 762
Re: Camtasia tips
Play around with a few lossless video codecs to find one that works for you. Just be prepared to have 5 minute videos that are over a gigabyte.