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.
-1
votes
2answers
175 views
My 2D collision code does not work as expected. How do I fix it?
I have a simple 2D game with a tile-based map. I am new to game development, I followed the LazyFoo tutorials on SDL.
The tiles are in a bmp file, but each tile inside it corresponds to an internal ...
0
votes
1answer
248 views
Recasting and Drawing in SDL
I have some code that essentially draws a column on the screen of a wall in a raycasting-type 3d engine. I am trying to optimize it, as it takes about 10 milliseconds do draw a million pixels using ...
2
votes
0answers
67 views
sdl: unlock mouse in fullscreen mode and make it useable on another monitor
Is it possible to unlock the mouse in fullscreen mode so that you can use it on a another monitor?
I read trough the SDL documentation, but I couldn't find anything related to my problem.
1
vote
0answers
54 views
SDK mouse relative motion, weird results
I have a simple SDL application that tracks the relative change in mouse position
But for some reason, the motion.xrel and motion.yrel give back massive numbers!
my code:
...
1
vote
0answers
252 views
How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
I am making a simple game engine for a simple RTS game and would like to be able to pick a cube and move it around with the mouse coordinates. The problem is that my camera is rotated 60 degrees just ...
0
votes
0answers
89 views
SDL - Sprite “Ghosting”
I'm using SDL to create a 2D side-scrolling platformer, but I'm getting ghosting from the sprite. I'm not used to programming with graphics or SDL so excuse any stupid remarks I make.
Here's the ...
0
votes
0answers
32 views
How do I initialize audio to use DUMB with SDL?
Am I able to just call SDL_Init(SDL_INIT_AUDIO); to initialize the audio and DUMB is good to go, or do I have to set the SDL_AudioSpec parameters and call SDL_OpenAudio(parameter1,parameter2);?
...
0
votes
0answers
186 views
SDL audio streaming callback function never triggered
I'm attempting to stream audio for my C++ game which uses SDL through the mingw32 environment. From my understanding it's a fairly simple affair:
extern "C" void audioStep(void* unused, Uint8* ...
0
votes
0answers
161 views
SDL 1.3 and extension libraries for VC++ 2010 express
Ive been able to compile SDL1.3 libraries with VC++ 2010 express. But im having a bit of trouble trying to compile the updated HG Mercurial repositories with VC2010++.
The problem comes from the fact ...