-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 0 replies
- 3 views
-
- 0 replies
- 3 views
-
- 0 replies
- 2 views
-
Adobe's Figma acquisition held up by CMA, has five days to offer proposals
By zikalify,
- uk
- united kingdom
- (and 8 more)
- 15 replies
- 2 views
-
Samsung 970 EVO Plus, 990 PRO 2TB SSDs further drop in prices, reach all-time low on Amazon
By Fiza Ali,
- samsung
- 970 evo plus
- (and 19 more)
- 5 replies
- 2 views
-
Question
simplezz
Hi,
I was reading an issue of Linux Format today, and saw a parallax starfield in SDL. I hadn't tried SDL before, so I gave it a shot, and added some extra functionality like bliting images of planets, etc. I was surprised how easy it was.
Anyone else played around with SDL before? How do you rate it vs other graphic libraries?
I've included the code I threw together as an attachment if anyone wants to play with it. Just chmod +x build, then ./build to compile it, and ./cosmos to run it. It's hardcoded for my resolution (1080p), but it's easy enough to change the defines at the top of main.c.
cosmos.zip
Link to comment
Share on other sites
10 answers to this question
Recommended Posts