Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
sdl
- Page 1
SDL-*
Programming
Software Development
14 Years Ago
by DawnOfIkaros
…place to post this but... I just started with
SDL
, and get the error: expected constructor, destructor, … token With this code: [CODE]#pragma comment(lib, "
SDL
.lib") #pragma comment(lib, "SDLmain.lib"…quot;C:\Documents and Settings\Mikael\Mina dokument\
SDL
\
SDL
-1.2.14\include\
SDL
\
SDL
.h" #include <cstdlib> …
Re: SDL-*
Programming
Software Development
14 Years Ago
by Evan M
Try changing SDL_SURFACE to SDL_Surface. Also, for ease of use, you might try dumping the
SDL
headers into your IDE's header folder - a wee easier than typing that long string per source file.
Re: SDL Help!!
Programming
Software Development
13 Years Ago
by Kanoisa
Hi, Im no expert on
SDL
,... but just reading that line of code im fairly sure … centered for whatever reason. But like i say im no
SDL
expert but that to me is what it is doing .
SDL Help!!
Programming
Software Development
13 Years Ago
by Shofahi
Hello! I am learning
SDL
on lazy foo site! I have a problem with this code what does it mean? what is the "/2" stand for? apply_surface( ( SCREEN_WIDTH - message->w ) / 2, ( SCREEN_HEIGHT - message->h ) / 2, message, screen ); Please help!
SDL and time based movement problem
Programming
Software Development
11 Years Ago
by A Haunted Army
….h #ifndef TIMER_H #define TIMER_H #include "
SDL
/
SDL
.h" //for Uint32 class Timer { public:…InputEvent.h #ifndef INPUT_HANDLER #define INPUT_HANDLER #include "
SDL
/
SDL
.h" class KeyBoardInput{ public: KeyBoardInput(); ~KeyBoardInput();…
SDL keypresses and image optimization
Programming
Software Development
10 Years Ago
by skiboy209
…{ //Create window gWindow = SDL_CreateWindow("
SDL
Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, …SDL_DestroyWindow(gWindow); gWindow = NULL; //Quit
SDL
subsystems SDL_Quit(); } SDL_Surface* loadSurface(std…
SDL undefined reference?
Programming
Software Development
9 Years Ago
by lewashby
…minimum that I need to display a window with
SDL
. I think it would be easier to learn … learn the extra and more complicated aspects of using
SDL
. #include <
SDL
/
SDL
.h> #include <stdio.h> … to SDL_SetVideoMode'| The following program compiles fine. #include <
SDL
/
SDL
.h> #include <stdio.h> #include …
Re: SDL undefined reference?
Programming
Software Development
9 Years Ago
by mike_2000_17
…project: project(SimpleSDLTest) # Ask cmake to locate the
SDL
library: find_package(
SDL
REQUIRED) # Add
SDL
's header file directory to the includes: include_directories…640, 480, 0, SDL_ANYFORMAT); return 0; } (notice the `
SDL
.h` instead of `
SDL
/
SDL
.h` because you have specified, through cmake, the include…
SDL Error
Programming
Software Development
16 Years Ago
by rraj.be
…"SDL_mixer/SDL_mixer.h" #include "
SDL
/SDL_mixer.h" //Function prototyping action! void…of the audio buffers in memory //Initialize BOTH
SDL
video and
SDL
audio if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) != …0) { printf("Unable to initialize
SDL
: %s\n", SDL_GetError()); return 1; } //…
Re: SDL undefined reference?
Programming
Software Development
9 Years Ago
by mike_2000_17
… in question is caused by forgetting to link with the
SDL
library. It is not sufficient to include the header file… link to the library. Just look at the [FAQ for
SDL
](https://wiki.libsdl.org/FAQWindows#I_get_undefined_references_to_various_SDL_functions...). If you are confused…
Re: SDL Error
Programming
Software Development
16 Years Ago
by stephen84s
Which Distro of Linux are u using, Accordingly you will need to install the
SDL
development package for that platform, You seem to be working with the sound library of
SDL
, on Ubuntu the package that you need to install would be libsdl-sound1.2-dev
Re: SDL Error
Programming
Software Development
16 Years Ago
by rraj.be
… are u using, Accordingly you will need to install the
SDL
development package for that platform, You seem to be working… with the sound library of
SDL
, on Ubuntu the package that you need to install would…
Re: SDL undefined reference?
Programming
Software Development
9 Years Ago
by lewashby
Thanks mide_2000_17 I'm reading your artical now. I guess my question now is, do you now where in my system the
sdl
library I need would be at, on a Linux Mint system? I also have a few questions about some of the thing I read in your tutorial but all get with you later on those.
Re: SDL Error
Programming
Software Development
16 Years Ago
by stephen84s
…] This will give you a list of packages associated with
SDL
and their description, However from your code I feel the…
SDL Playing Music
Programming
Software Development
15 Years Ago
by dmanw100
I'm learning how to use the
SDL
libraries but I'm having a small problem playing the …'s my code so far: [CODE]#include "
SDL
/
SDL
.h" #include "
SDL
/SDL_mixer.h" Mix_Music *play_sound = NULL; void cleanUp…
SDL access violation
Programming
Software Development
15 Years Ago
by Basicgear
… is the full code. [code=c] //The headers #include "
SDL
.h" #include <string> //The attributes of the…, &offset); } int main(int argc, char* args[]) { //Initialize all
SDL
subsystems if(SDL_Init(SDL_INIT_EVERYTHING) == -1) { return 1; } //Set up the…
SDL how to switch back to console
Programming
Software Development
14 Years Ago
by thriek
…event; SDL_Rect pictureLocation; const SDL_VideoInfo* videoinfo; atexit(SDL_Quit); /* Initialize the
SDL
library */ if( SDL_Init(SDL_INIT_VIDEO) < 0 ) { fprintf(stderr…,"Couldn't initialize
SDL
: %s\n", SDL_GetError()); exit(1); } screen = SDL_SetVideoMode(…
Re: SDL how to switch back to console
Programming
Software Development
14 Years Ago
by thriek
[QUOTE=mitrmkar;1191569]I don't know much about
SDL
programs' behaviour and possibilities, but I noticed that …exit/"]exit()[/URL]. Perhaps you should find a
SDL
forum for
SDL
-specific questions.[/QUOTE] Oh yeah! In my mind… i was thinking SDL_quit(); which exits
sdl
. swapping my exit with the sdl_quit statment fixes the …
SDL and segfault
Programming
Software Development
13 Years Ago
by jamort
…(main part of engine) *******/ #ifndef EDU_H #define EDU_H #include "
SDL
/
SDL
.h" #include "Background.h" class Edu { public… default settings void Init(int, int, int, std::string); //initializes
sdl
with custom settings SDL_Event MainEvent; protected: private: SDL_Surface *MainScreen; //screem…
SDL showing black image
Programming
Game Development
12 Years Ago
by steve555
…gt; #include <stdlib.h> #include <
SDL
.h> #include <string.h> //A … ) < 0 ) { fprintf(stderr, "Unable to init
SDL
: %s\n", SDL_GetError()); exit(1); } //ensure SDL_Quit is called… exit(1); } //convert PPM format (R, G, B) to
SDL
format (B, G, R) ppm2sdl ( ibuf, width, height );…
Re: SDL Error
Programming
Software Development
12 Years Ago
by maski4real
inti@administrator-desktop:~/Desktop$ gcc -o m m.c `
sdl
-config --cflags --libs` -lsdl_mixer m.c:3:23: error: SDL_mixer.…
Re: SDL how to switch back to console
Programming
Software Development
14 Years Ago
by mitrmkar
I don't know much about
SDL
programs' behaviour and possibilities, but I noticed that you do …/cstdlib/exit/"]exit()[/URL]. Perhaps you should find a
SDL
forum for
SDL
-specific questions.
Re: SDL - Hide Console
Programming
Software Development
13 Years Ago
by Labdabeta
…; #include <sstream> #include "
SDL
\
SDL
.h" #include "
SDL
\SDL_image.h" #include "
SDL
\SDL_ttf.h" #include "…;
SDL
\SDL_mixer.h" #include "Random.h…
sdl color key, don't understand
Programming
Game Development
17 Years Ago
by avgprogramerjoe
…out how to get the
sdl
colorkey to work, I'… ) { printf( "Unable to init
SDL
: %s\n", SDL_GetError() ); return 1; } //… make sure
SDL
cleans up before exit atexit(SDL_Quit); …
Re: SDL how to switch back to console
Programming
Software Development
14 Years Ago
by thriek
[QUOTE=Ancient Dragon;1191024]Very few, if any, members here know what those
SDL
functions are. Is that a library of some kind? If it is, post the link to it.[/QUOTE] Do you mean is
SDL
a library of some kind? Yes it is, and the link is: [URL="http://www.libsdl.org"]www.libsdl.org[/URL]
SDL with OpenGL - Drawing problem
Programming
Software Development
13 Years Ago
by OpenSDL
Hi! I have a problem with
SDL
and OpenGL. I wrote a code to convert
SDL
Surfaces to OpenGL textures. Now I have… the drawed Quads?! I know how to get them to
sdl
: [CODE]SDL_GL_SwapBuffers();[/CODE] The problem is, I want to put…
sdl linker error
Programming
Software Development
12 Years Ago
by Marcusflint
… Error] [sdlreal.exe] Error 1 example: #include "
SDL
.h" #include <stdio.h> void putpixel(…; if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) { printf("Could not initialize
SDL
: %s.\n", SDL_GetError()); return -1; } screen = SDL_SetVideoMode…
Re: SDL Keystate gives no response
Programming
Game Development
12 Years Ago
by sfuo
…t post it before #ifndef PLAYERTANK_H #define PLAYERTANK_H #include <
SDL
.h> class PlayerTank { SDL_Rect position_copy; int pos_x; int …> #define MAX_SPEED 5 using namespace std; #include <
SDL
.h> PlayerTank::PlayerTank(int x, int y, int w…
SDL program just exits (sdl_draw)
Programming
Software Development
12 Years Ago
by ysmtek
… to BUSINESS! As you can see I'm still using **
SDL
** for a thing and another. I managed to compile a… is in the file Draw_Circle.c Does anyone with some
SDL
experience knows why this is? I've checked the manual… at all). I'm developing with Eclipse and MinGW using
SDL
and SDL_draw libraries. Thank you in advance and it's…
SDL Tutorials
Programming
Software Development
10 Years Ago
by Tycellent
… to... Lazy Foo's Tutorial http://lazyfoo.net/tutorials/
SDL
/index.php "
SDL
Game Development" - Shaun Mitchell book are there… any other recommended resources (does not have to be
SDL
) people could suggest? I've already created a console-based…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC