Skip to content

u/classhero

In this archive from Apr 2011 to Dec 2018

0
posts
58
comments
0
media
239
score

Top comments

That's not true at all. SDL is a 2D library that allows you to initialize the context as either software 2D, hardware 2D, or OpenGL for 2D/3D. In OpenGL mode, it creates and manages the window for you, and you do all of the drawing yourself (basically, SDL is equivalent to GLUT in this case).

14 points

How on earth do you take that to give an emphasis on 3D? It's right in the name. Simple. Support for textures? That's not even built in to SDL, you need SDL_Image to support any decent number of formats. It's a great cross-platform lib, but once you try it out you will see that it is basically GLUT with most of its functions revolving around 2D. Even this very well-known SDL tutorial, which walks through almost all of the core library, only makes a slight reference to 3D since it requires standard GL calls to draw after the surface is initialized as GL.

edit: And by the 'dolphins' demo, I can only assume you are referring to Atlantis (which is indeed used by SDL as an example) - why don't you actually take a look at the source code? It is almost entirely GL, just showing how SDL is used to perform the utility functions to make it crossplatform. SDL is a library for porting. It is not a "full-blown game engine" by ANY standards.

13 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.