Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

Back to HoboBen's Blog ( Created 24 November 2010 | Last Edited 24 November 2010)
Rants 'n' Raves : Problems with SDL
Warning: rant
Here's my non-consructive criticism of SDL


  • SDL redefines C's main() to something else. WTF! This is also undocumented and completely counter-intuitive. Also your program won't work on windows unless you undo it.

  • If you're interested in how something is implemented by SDL, e.g. for performance considerations or because something isn't working, you might look at SDL's source code. You'll wish you hadn't. It's cramped and the preprocessor is abused like [insert distasteful simile]. It's not the worst code in the world, but it's not clean or clear and it's not clear how the preprocessor definitions in one file affect the code in another.

  • Installing SDL libraries such as SDL_image and having them actually work is impossible. Don't even think about repeating the process again for a different platforms. Alternative: nothings.org/stb_image.c

  • Documentation is a wiki, and most of the articles are replaced with spam. And there's two wikis, so god knows which one you're meant to use (if not both at the same time). One of them has a terrible interface for viewing old revisions, which you'll need to do if it's spammed - just try and pick the correct confusingly-named 12x12 pixel gif

  • There's no easy-to-use "Pixel" function. And there doesn't seem to be a reason for the omission. Additionally, pixel access seems broken. None of the examples work; the program crashes. Instead you'll have to use SDL_Rect to draw 1x1 rectangles.



I will say though, it's fast and it's cross platform. So's GLFW, though.

There are no comments for this entry. -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 670|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Favourite Amstrad CPC Games
steve_ancell Sat 21:02
Shoutbox Topic - 319
steve_ancell Sat 20:52
Inside Donald Trump
rockford Sat 12:09
Any Feature Requests?
Jayenkai Sat 09:36
More Monkey Madness - With Ducks
rockford Sat 05:13
Arms on Switch
rockford Sat 05:02
Time for a new Android Test Doohickey
Jayenkai Fri 09:26
CSS-Me-Do - SoCoder2
Jayenkai Fri 06:28
Pillowcases for kids!
rockford Thu 16:15
Manchester Arena Explosion
Jayenkai Thu 02:04
More

Latest Items
Showcase : Hives
zzoom Fri 16:10
Dev-Diary : My Journey into NES Development
rychan Thu 12:31
Showcase : Flappadiddle
Jayenkai Sun 14:39
Snippet : QFind
Jayenkai Sun 13:02
Showcase : Tiny Blocks
Jayenkai Sun 04:08
Showcase : Read Error A
rychan Fri 05:13
Blog : All my makes!
Jayenkai Tue 05:48
Showcase : Infinitron
rychan Mon 18:03
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
More

Who's Online
steve_ancell
Sat, at 21:32
9572AD
Sat, at 18:50
therevillsgames
Sat, at 18:00
rockford
Sat, at 16:19
shroom_monk
Sat, at 16:02
Jayenkai
Sat, at 15:42
spinal
Sat, at 12:08
rychan
Sat, at 08:56
rskgames
Sat, at 07:21
Pakz
Sat, at 04:16
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.