46 Topics

Member Avatar for
Member Avatar for looorin

When I was surfing on an internet I have found four c++ multimedia libraries, which can create games and GUI aplications (SDL, ClanLib, SFML, Allegro). I would like to learn one of them, but i don't have any experience with it. Can you recommend me one of them? I have …

0
93
Member Avatar for Labdabeta

I am making a screensaver and it won't build! The error I get is "undefined reference to '_SDL_main'. Here is my code: [CODE]#include <windows.h> #include <scrnsave.h> BOOL WINAPI ScreenSaverConfigureDialog(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { system("TMXDB.exe"); return true; } BOOL WINAPI RegisterDialogClasses(HANDLE hmodule) { return true; } int …

Member Avatar for Labdabeta
0
258
Member Avatar for Labdabeta

Hello, I have decided to make a timer program on my computer to limit the amount of time that I game. Anyways, I have it working fine with a small borderless window in the top left of the screen that ticks down and when it gets to 0 it sounds …

Member Avatar for Labdabeta
0
7K
Member Avatar for Labdabeta

I have made a header file for SDL GUI applications. I was testing the SDLGame::Draw() function when I got a SigSegV fault. The fault occurs in different locations each time I run the program. Also sometimes instead of a SigSegV fault I get a SigTrap fault. Here is the code …

Member Avatar for Labdabeta
0
876
Member Avatar for EMT

What is the difference between SDL and EGL ? Can we use OpenGL ES with both ? If my device has support for SDL or EGL then I hope I need to know any one of them. Kindly Help. :confused:

0
66
Member Avatar for Gh0st93

So I'm pretty far into development of my new game and I am trying to figure out how to do a bullet that will look like it fires from a plane sprite I thought of a way it didn't work so I went back to my old code. I would …

Member Avatar for eskimo456
0
173
Member Avatar for OpenSDL

Hi! I have a problem with SDL and OpenGL. I wrote a code to convert SDL Surfaces to OpenGL textures. Now I have a function to Draw a rect(with opengl) on a SDL_Surface. That's the code to draw a rect: [CODE] void DrawRect(SDL_Rect *rect, GLuint texture) { float x = …

Member Avatar for mike_2000_17
0
271
Member Avatar for DaSpirit

I am using Visual C++ Express Edition on Windows, and I am look at the windows task manager and I noticed that every second, in the process tab the memory of my C++ program increases about 8 K when I am not even doing anything. Also, I've noticed that if …

Member Avatar for mike_2000_17
0
560
Member Avatar for batchprogram

I recently made a switch to SDL as a cross platform alternative to directly accessing DirectX or OpenGL. In an attempt to port a section of my game framework, I encounter logic errors that (to me) make absolutely no sense. In this snippet, a sprite is simply a wrapper class …

Member Avatar for venomxxl
0
204
Member Avatar for epicbeast9022

Hi everyone, I'm trying to program a game in C++ using SDL and i want to get peoples names. its not working though, and I'm really confused as to [B]why[/B]. :?: i'm using code like the following: [B]StringInput.h[/B] [CODE] class StringInput { private: std::string str; SDL_Surface *text; int x,y,r,g,b; SDL_Color …

Member Avatar for Stefano Mtangoo
0
568
Member Avatar for epicasian

Hello all, My question is, when using Visual Studio, and compiling this piece of code: [code] int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_EVERYTHING); SDL_SetVideoMode(640, 480, 32, SDL_OPENGL); SDL_WM_SetCaption("OpenGL Awesomeness", NULL); //run time error here SDL_Event event; while(event.type != SDL_QUIT) { SDL_PollEvent(&event); RenderScene(); SetupRC(); SDL_GL_SwapBuffers(); SDL_Delay(60); } SDL_Quit(); return 0; } …

Member Avatar for Sodabread
0
190
Member Avatar for thriek

Hey, im in need of a little help... im trying to have my .exe show an image with sdl, wait 2500 milliseconds, close the image and then return to the black console screen with my cout statments and whatnot appearing. But instead when i exit sdl, the whole program exits. …

Member Avatar for thriek
0
394
Member Avatar for thriek

Hey everyone, needing a little hand... i'm using the SDL on windows and all the right libraries are installed correctly, I know this because all my other functions that need these libraries worked and still do, but my SDL_Surface* pFontSurface; variable my print text method creates a compile error. ~The …

Member Avatar for thriek
0
250
Member Avatar for rhubarb65

Hi I am trying to cross compile a simple program for Windows CE using CodeBlocks. I am using mingw32ce (part of CEGCC) which is a set of tools and libraries for building WCE programs on XP. And some WCE SDL libraries I found here: [url]http://users.uoa.gr/~knakos/scummvm/libraries/release-0-10-0/wince-gcc-libs.tar.bz2[/url] I have succeded in building …

Member Avatar for rhubarb65
0
334
Member Avatar for SimonLarsen

I'm working on my first game in C++ and SDL. The game compiles and runs perfectly on both my boxes (Arch Linux and Windows XP). When two of my friends were to test the game, one of them (running Windows Vista) said his machine BSoD'd every time he ran the …

Member Avatar for SimonLarsen
0
231
Member Avatar for theGraffo

Hey! I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with [CODE]ruby mycode.rb[/CODE] The execution stops returning: [CODE]/usr/lib/ruby/site_ruby/1.8/i386-cygwin/sdl.so: [BUG] Segmentation fault[/CODE] Of course, /usr makes no sense in windows. On the other hand, if I simply double-click mycode.rb from …

0
103

The End.