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.
Pale Moon 34.3.1 by Razvan Serea
Pale Moon is an Open Source, Goanna-based web browser available for Microsoft Windows, Linux and Android, focusing on efficiency and ease of use. Make sure to get the most out of your browser!
Pale Moon offers you a browsing experience in a browser completely built from its own, independently developed source that has been forked off from Firefox/Mozilla code, with carefully selected features and optimizations to improve the browsers speed, resource use, stability and user experience, while offering full customization and a growing collection of extensions and themes to make the browser truly your own.
Features:
Optimized for modern processors
Based on proprietary optimized layout engine (Goanna)
Safe: forked from mature Mozilla code and regularly updated
Secure: Additional security features and security-aware development
Supported by our user community, and fully non-profit
Familiar, efficient, fully customizable interface
Support for full themes: total freedom over any elements design
Support for easily-created lightweight themes (skins)
Smooth and speedy page drawing and script processing
Increased stability: experience fewer browser crashes
Support for many Firefox extensions
Support for a growing number of Pale Moon exclusive extensions
Extensive and growing support for HTML5 and CSS3
Many customization and configuration options
Pale Moon 34.3.1 changelog:
Pale Moon will now exclude local resources from CSP checks, aligning it with the rest of CSP handling.
Fixed an issue where the devtools JSON viewer would, in some cases, make erroneous requests to remote servers.
Updated libpng to 1.6.58+apng.
Updated NSS to 3.90.12 (UXP), addressing multiple security issues.
Fixed several intermittent and rare crashes.
Security issues addressed: CVE-2026-12318 (CWE-125), CVE-2026-12322, CVE-2026-12292 (DiD), and multiple other issues that did not have a CVE designation at the time of patching.
Download: Pale Moon (64-bit) | Portable 64-bit | ~40.0 MB (Freeware)
Download: Pale Moon (32-bit) | Portable 32-bit
Links: Pale Moon Homepage | Add-ons | Themes | Extensions | Screenshot
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
There is a long thread (128pgs and counting) that I've been following over at ElevenForums that has a method for updating Secure Boot even if there is no BIOS upgrade.
I've used this method and had zero issues.
NOTE: I do not take any responsibility if this or any other Secure Boot method bricks your system -- YMMV! Read carefully before using!
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
https://www.neowin.net/forum/topic/1108349-parallax-starfield-sdl/Share on other sites
10 answers to this question
Recommended Posts