Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
2
votes
2answers
700 views
Collision Resolution
Hey all, I'm making a simple side-scrolling game, and I would appreciate some input!
My collision detection system is a simple bounding box detection, so it's really easy to implement. However my ...
1
vote
5answers
901 views
OpenGL Performance Questions
This subject, as with any optimisation problem, gets hit on a lot, but I just couldn't find what I (think) I want.
A lot of tutorials, and even SO questions have similar tips; generally covering:
...
8
votes
2answers
605 views
How to deal with OpenGL and Fullscreen on OS X
I do most of my development on OS X and for my current game project this is my target environment. However when I play games I play on Windows. As a windows gamer I am used to Alt+Tab switching from ...
5
votes
4answers
2k views
2D Platformer Collision Handling
I am trying to create a 2D platformer (Mario-type) game and I am some having some issues with handling collisions properly. I am writing this game in C++, using SDL for input, image loading, font ...
1
vote
1answer
877 views
My first animation - Using SDL.NET C#
I'm trying to animate a player object in my 2D grid when the user clicks somewhere in the screen.
I got the following 4 variables:
oX (Current player position X)
oY (Current player position Y)
dX ...
7
votes
3answers
631 views
What is the contents of the buffer *after* a call to glSwapBuffers()?
(SDL_GL_SwapBuffers() in particular)
When you have drawn a scene, and you call swap-buffers, it is routine to then glClear() the scene before drawing anything; if you don't clear, what is the ...
5
votes
1answer
4k views
Time based movement Vs Frame rate based movement?
I'm new to Game programmming and SDL, and I have been following Lazyfoo's SDL tutorials. My question is related to time based motion and frame rate based motion, basically which is better or ...
2
votes
1answer
382 views
Colour Problems When Using SDL_Resize()
In a 3D SDL application I inherited (I have little 3D or SDL experience), I have a 'screenshot' routine that either saves a full-size image or a scaled image, depending on the context (differing ...
3
votes
1answer
455 views
How to create a simple “spot light” effect with Sdl or Sdl.Net?
i'm wondering: how to create a simple "car headlight" (for i.e) or a torch spotlight in Sdl or Sdl.NET ?
Does anyone know how ?
Thanks