Questions tagged [sdl-1.2]

SDL v1.2 is a cross-platform multimedia library, available under the GNU LGPL license. It has now been deprecated in favor of SDL 2.0.

SDL v1.2 is a cross-platform multimedia library, available under the GNU LGPL license. It has now been deprecated in favor of SDL 2.0.

General features include 2D graphics, audio output, and input device handling for keyboards, mice, and joypads. 3D graphics are supported via OpenGL, and extra functionality (such as network support) is available via "add-on" libraries such as SDL-net.

Some platforms supported by SDL 1.2 (such as Mac OS 9) are no longer supported by the v2.0 releases, and the CD audio API present in the v1.2 series has been removed. More information can be found on the SDL wiki.

46 questions
5
votes
0 answers

Compile SDL with cabal in MinGW

I’m trying to install SDL within cabal for Haskell, in MinGW, but I got some problems. cabal can’t find the C library, and I don’t know why. Here some info: I have downloaded both the dev and runtime library of the SDL1.2 ; For the dev version, I…
phaazon
  • 1,972
  • 15
  • 21
4
votes
1 answer

SDL: in non-fullscreen mode finding maximum window size

I have an application that does not run in full-screen mode. After SDL_init I execute SDL_SetVideoMode(0, 0, SDL_OPENGL | SDL_HWSURFACE | SDL_ASYNCBLIT). From what I read, this should allocate a window of maximum size. The unfortunate thing now is…
Folkert van Heusden
  • 433
  • 4
  • 17
  • 38
3
votes
1 answer

Fullscreen in SDL1.2 makes positions false

My screen's resolution is 1920x1080. In order to have a fullscreen window, I call SDL_SetVideoMode(1920, 1080, 32, SDL_HWSURFACE | SDL_FULLSCREEN);. However, when I try to add an image on this screen with positions x = 0 and y = 0, it is positionned…
nounoursnoir
  • 671
  • 2
  • 10
  • 25
2
votes
3 answers

How to "include" libvlc and sdl1.2 on Raspbian C++ project?

I have installed "libsdl1.2-dev" and "libvlc" (with sudo apt-get install blah) in Raspbian on my Raspberry Pi, I'm using gcc to compile the example project from https://wiki.videolan.org/LibVLC_SampleCode_SDL/ This is my compile command: gcc…
Domarius
  • 413
  • 1
  • 3
  • 13
2
votes
1 answer

SDL drawing program is Freezing

I'm not sure why my program is freezing after drawing the sixth square. It's frustrating. I mean it's just the same code over and over again, why is it executable the first 6 times and not the 7th? :/ Here is my…
spiderangel
  • 43
  • 1
  • 9
2
votes
2 answers

SDL with Qtcrator

I have used qtcreator for console application. Now I want to use it with SDL1 because I have a tutorial on SDL1 and I want to learn SDL on qtcreator but it seems that qtcreator have 2 option first consol application second the interface and window…
Phenixo
  • 31
  • 4
2
votes
3 answers

C++ SDL Segmentation fault (core dumped)

I'm currently learning to code on SDL while using C++ as my base programming language. So basically, what happens is, I have a piece of code with a loop in it, which will display an image till the loop starts again. The loop is 5 seconds long and…
ChemiCalChems
  • 612
  • 12
  • 31
2
votes
2 answers

SDL_SetVideoMode vs SDL_CreateRGBSurface

Should be a simple question for SDL experts. I am confused about the following two seemingly equivalent functions and wondering when to use which SDL_Surface * SDL_SetVideoMode (int width, int height, int bpp, Uint32 flags); SDL_Surface *…
S B
  • 8,134
  • 10
  • 54
  • 108
1
vote
1 answer

complete SDL 1.2 documentation?

I've been trying to find complete documentation for SDL 1.2. I can't use SDL 2 for several reasons which I don't want to go over right now, but basically, I can't find any wiki backups for SDL 1.2 other than a rather incomplete snapshot on…
1
vote
1 answer

undefined reference to `WinMain@16' error while linking SDL1.2 in cmake for MinGW

I recently managed to find solution to this problem related to SDL2, but somehow those solutions does not apply to SDL1.2. I tried using the flags -lmingw32 -lSDL -lSDLmain and also to add add_definitions(-DSDL_MAIN_HANDLED) to the end of the…
Daniel
  • 391
  • 4
  • 17
1
vote
1 answer

SDL 2.0 version of SDL_DisplayFormatAlpha()?

I am beginning programming in SDL 2.0. I would like to be able to load .PNG files into my program, as .bmp files don't have all the neat features .png files do. I have the following code from http://www.sdltutorials.com/sdl-image: SDL_Surface*…
Shades
  • 667
  • 1
  • 7
  • 22
1
vote
0 answers

how do i access a veriable inside a typedef struct inside a vector

how do i access a variable inside a data structure inside a vector. I am using SDL 1.2 I am making a vector list which contains a data structure inside it called SDL_Rect SDL_Rect has 4 veriables inside it as shown below: typedef struct{ Sint16 x,…
1
vote
2 answers

Move SDL window in SDL 1.2

I am using SDL 1.2 with FFmpeg on MAC. I am trying to build a video player using both FFmpeg and SDL. I am viewing my video on SDL_Surface. My player is working fine. Now my problem is, i want to move SDL window without dragging it from title bar.…
Dev Sam
  • 51
  • 1
  • 4
1
vote
0 answers

Dr.Memory crashes when used on SDL program

I am working on a SDL 1.2 project (Windows, C, Code::Blocks, also using sdl_tff library). I am trying to check memory leaks with Dr.Memory, but the problem I am having is that it crashes on start (log provided below), The exe itself crashes on its…
user1333057
  • 607
  • 1
  • 8
  • 19
1
vote
2 answers

SDL_MapRGB, how to get screen->format using pointer to pointer

I'm generating a level using a function, and so I'm sending a pointer to pointer of my screen to update him. But when I try to use SDL_MapRGB i'm getting an error on the *screen->format part. Is there a way to do this ? Here's the code i'm using…
DoT
  • 369
  • 2
  • 12
1
2 3 4