Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
sdl_surface
- Page 1
Re: Playing Videos
Programming
Software Development
12 Years Ago
by mike_2000_17
I don't know much about that. But gstreamer is the classic tool for video loading / decoding / displaying. Look at the list of [URL="http://gstreamer.freedesktop.org/documentation/plugins.html"]plugins[/URL], they have several "videosink" (which is the lingo for "displaying the video"), I believe it can be easily be …
Another [Linker error] undefined reference to `WinMain@16'
Programming
Software Development
16 Years Ago
by MedianHansen
…the SDL logo bitmap to a temporary surface
SDL_Surface
* temp=SDL_LoadBMP("data\\structures\\sdl_logo.bmp…the display format of the temporary surface.
SDL_Surface
* bg= SDL_DisplayFormat(temp); //Free the memory… allocated to the temporary
SDL_Surface
. SDL_FreeSurface(temp); SDL_Event event; bool quit=false…
[Linker error] undefined reference to `SDL_Init'
Programming
Software Development
16 Years Ago
by MedianHansen
…the SDL logo bitmap to a temporary surface
SDL_Surface
* temp=SDL_LoadBMP("data\\structures\\sdl_logo.bmp…the display format of the temporary surface.
SDL_Surface
* bg= SDL_DisplayFormat(temp); //Free the memory… allocated to the temporary
SDL_Surface
. SDL_FreeSurface(temp); SDL_Event event; bool quit=false…
Re: [Linker error] undefined reference to `SDL_Init'
Programming
Software Development
16 Years Ago
by MedianHansen
…the SDL logo bitmap to a temporary surface
SDL_Surface
* temp=SDL_LoadBMP("data\\structures\\sdl_logo.bmp…the display format of the temporary surface.
SDL_Surface
* bg= SDL_DisplayFormat(temp); //Free the memory… allocated to the temporary
SDL_Surface
. SDL_FreeSurface(temp); SDL_Event event; bool quit=false…
Maps
Programming
Game Development
13 Years Ago
by new2programming
…;global.h" //---------------- global variables ---------------- //"engine" Uint8 *keystates;
SDL_Surface
*screen; //the screen (main sdl surface which is visible on…
weapons
Programming
Software Development
13 Years Ago
by new2programming
…;global.h" //---------------- global variables ---------------- //"engine" Uint8 *keystates;
SDL_Surface
*screen; //the screen (main sdl surface which is visible on…
Code incoperation.
Programming
Software Development
13 Years Ago
by new2programming
…;SDL.h" //---------------- global variables ---------------- //"engine" Uint8 *keystates;
SDL_Surface
*screen; //the screen (main sdl surface which is visible on…
countdown timer:
Programming
Software Development
13 Years Ago
by new2programming
…;) using namespace std; //---------------- global variables ---------------- //"engine" Uint8 *keystates;
SDL_Surface
*screen; //the screen (main sdl surface which is visible on…
Re: Glut bitmap fonts
Programming
Software Development
13 Years Ago
by N1GHTS
… is our font */ FreeType_Font our_font; /* This is our SDL surface */
SDL_Surface
*surface; GLfloat cnt1; GLfloat cnt2; /* function to release/destroy our…
Re: 2 errors
Programming
Software Development
16 Years Ago
by MedianHansen
…the SDL logo bitmap to a temporary surface
SDL_Surface
* temp=SDL_LoadBMP("data\\structures\\sdl_logo.bmp…the display format of the temporary surface.
SDL_Surface
* bg= SDL_DisplayFormat(temp); //Free the memory… allocated to the temporary
SDL_Surface
. SDL_FreeSurface(temp); SDL_Event event; bool quit=false…
Re: Surface Computing from Microsoft
Hardware and Software
Microsoft Windows
16 Years Ago
by binoj_daniel
Surface Home Page Link: [URL]http://www.surface.com/[/URL] You can watch some interest clips of Surface in action here. [URL]http://www.youtube.com/watch?v=6VfpVYYQzHs[/URL] [URL]http://www.youtube.com/watch?v=FlZxuqjJDgk&mode=related&search=[/URL] [URL]http://www.youtube.com/watch?v=9DasPNFrP24&mode=related&search=[/URL]
Re: SDL pointers - (General Question)
Programming
Software Development
12 Years Ago
by mike_2000_17
…since inheritance in not possible in C. And, yes,
SDL_surface
is a structure, here is [URL="http://sdl.beuc…[/URL]. Very often (but not always), you should treat
SDL_surface
pointers and any other pointers from SDL as "opaque…low-level information via the fields of the structures like
SDL_surface
, but for the most part you shouldn't really…
Re: C GPL's
Programming
Game Development
11 Years Ago
by gusano79
SDL and Allegro aim to provide a more or less complete game programming library, but you might also consider combining several separate libraries that focus on smaller areas--especially if the general-purpose libraries don't quite do what you want. A loose assortment of links to get you thinking: [Chipmunk](http://chipmunk-physics.net/), [GLFW](…
Re: Chess Program
Programming
Software Development
16 Years Ago
by krnekhelesh
SDL seems to be good. I saw their website.
Re: Is there a way to run two or more functions in C++? (For a game in console mode)
Programming
Software Development
16 Years Ago
by Salem
SDL = [url]http://www.libsdl.org/[/url] But before you get bogged down in specific APIs, I would suggest you get familiar with the core language.
Re: How to create an MP3 player.
Programming
Software Development
15 Years Ago
by marco93
SDL is totally useless, as MP3 is native in Win32. See MSDN samples to play MP3. (3 lines of code with mci...)
Re: C pointer
Programming
Software Development
14 Years Ago
by manutm
SDL is mainly for game development (and sometimes for other multimedia stuff as well) and is quite popular I think. Now, it depends on what kind of job you are looking for... If you are interested in making applications with GUI under Linux, I think GTK is very good. For 3D stuff, OpenGL is probably a "must-known", etc...
SDL with OpenGL - Drawing problem
Programming
Software Development
13 Years Ago
by OpenSDL
… a function to Draw a rect(with opengl) on a
SDL_Surface
. That's the code to draw a rect: [CODE] void… this possible? How can I draw the quad to a
SDL_Surface
or a GLuint(texture), so I can combine them later…
Re: SDL with OpenGL - Drawing problem
Programming
Software Development
13 Years Ago
by mike_2000_17
>>How can I draw the quad to a
SDL_Surface
or a GLuint(texture), so I can combine them later? … slow (almost as bad as your idea of copying the
SDL_surface
onto a texture, but in those days there wasn't…
Re: error C2679 SDL TTF using SDL * surface....
Programming
Software Development
14 Years Ago
by thriek
… operations when working with graphics */ class SDLCanvas { protected:
SDL_Surface
* pSurface; /** our
SDL_Surface
for drawing */
SDL_Surface
* pFontSurface; // surface for fonts TTF_Font* pFont; //our true…
error C2679 SDL TTF using SDL * surface....
Programming
Software Development
14 Years Ago
by thriek
… that need these libraries worked and still do, but my
SDL_Surface
* pFontSurface; variable my print text method creates a compile error…
Help needed in SDL Programming
Programming
Game Development
12 Years Ago
by meetjatin88
… lets say into 4 parts and then store them in
SDL_Surface
array. I intend to animate later using these subdivided images…
Re: Help needed in SDL Programming
Programming
Game Development
12 Years Ago
by rosiebell
[url]http://osdl.sourceforge.net/main/documentation/rendering/SDL-optimizing.html[/url] check this site for all the information regarding SDL programming. hope you get your answer here
sdl linker error
Programming
Software Development
11 Years Ago
by Marcusflint
…int y, Uint32 pixel); int main(int argc, char *argv[]) {
SDL_Surface
*screen; int quit = 0; SDL_Event event; int x, y; Uint32…, x, y, 1, 1); } SDL_Quit(); return 0; } void putpixel(
SDL_Surface
*surface, int x, int y, Uint32 pixel) { int bpp = surface…
SDL Freeing a surface
Programming
Software Development
12 Years Ago
by TotalZombie
So, I'm playing around with SDL and I've come across a bit of a bump. I have one image and I am trying to "free" that image to put on another one. Here is what my code looks like.. [CODE] // I did get a good section of this code from LazyFoo productions. I have modified it // I don't take credit for the parts that LazyFoo …
SDL - SigSegV fault
Programming
Software Development
13 Years Ago
by Labdabeta
…(Temp); } }[/CODE] Sprite class
SDL_Surface
typecast operator: [CODE]Sprite::operator
SDL_Surface
*()const {
SDL_Surface
*ret=NULL; ret=SDL_CreateRGBSurface(SDL_SWSURFACE, w…i=(w*h); break; } surface[i]=pixels[i]; }
SDL_Surface
*dup=ret; ret->refcount++; return dup; }[/CODE]…
Re: SDL Freeing a surface
Programming
Software Development
12 Years Ago
by \007
What's the problem? Is this all of your code? I don't see you initialize SDL anywhere.
Re: SDL - SigSegV fault
Programming
Software Development
13 Years Ago
by Labdabeta
Yes, it usually happens at the end of the conversion from Sprite to
SDL_Surface
*, although occasionally it happens at the Draw function. I think that somehow the Sprite is getting delete[]d after it's pixel surface is blitted, I just can't see why.
SDL program just exits (sdl_draw)
Programming
Software Development
11 Years Ago
by ysmtek
… that, if I draw the circle directly to the screen
SDL_Surface
, the program just works fine. However, this isn't what…
SDL key event question
Programming
Software Development
12 Years Ago
by nuclear
I was watching a tutorial that says that we first need to check if any direction key was pressed, and only then we check which key was pressed, like this: [CODE]while( running == true ) { while( SDL_PollEvent(&event) ) { if ( event.type == SDL_KEYDOWN ) //checking if any key was pressed { switch( event.key.keysym.sym ) …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
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