Greetings all, ERROR: Program received signal \'SIGSEGV\', Segmentation fault. I am having some issues with the following code creating the above fault in Code::Blocks. It is for a chatbox I am usi
I have this: void showNumbers(){ nrBtn1 = TTF_RenderText_Blended( fontnrs, \"1\", sdlcolors[0] ); nrBtn2 = TTF_RenderText_Blended( fontnrs, \"2\", sdlcolors[1] );
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
I want to learn Ocaml or Haskell and I want to do it by writing a simple game. Appare开发者_C百科ntly, there\'s one small problem: nobody cares about Windows and I want to do it on Windows, natively.
I\'m using this in my main loop: if (SDL_WaitEvent(&event)) { switch (event.type) { 开发者_开发技巧case SDL_MOUSEBUTTONDOWN:
I have a simple rectangle i have drawn on screen in opengl. My target is to draw this rectangle in 3D so the left side of it is deeper (z-axis) than the right side.
Below is some code to use SDL with Haskell to draw a diagonal line. I get a CYAN line when the RGB clearly should be white. This is on Ubuntu. Am I doing something wrong?
Is it ok to do the following? SDL_Surface* screen; screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE | SDL_RESIZABLE | SDL_FULLSCREEN );
Is there any way to Blit a zoomed (in) version of a certain image/s开发者_Go百科prite using SDL? (Besides manually saving a zoomed version of the image..)
I want to render an anti-aliased string on an SDL_Surface with a given alpha channel. I figured out it is possible to render: