Sponsored Content
Top Forums Programming Playing Video with MinGW and SDL Post 302605468 by Corona688 on Wednesday 7th of March 2012 01:29:06 PM
Old 03-07-2012
I'm confused why you'd try, since you certainly don't need MinGW to build SDL programs in Windows. SDL-using programs build on almost anything if the code is written portably.

I'd try using Bloodshed Dev C++ as an IDE, and build SMPEG + your program inside it, linking to SDL from libsdl.org
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What is SDL?

I get a: Requirements: SDL when I'm browsing (www.happypenguin.org) for games. According to wikipedia SDL can be: where some are more likely than others. However, which one is it? I got an error because of SDL last time I tried and want to make it right before I try... (0 Replies)
Discussion started by: riwa
0 Replies

2. Programming

SDL doubt

Hi, I am working on SDL open-source API's on Debian Linux for my game development project. I am not sure whether posting SDL related queries here is correct. I would like to know what is the difference between: SDL_SetVideoMode() and SDL_VideoModeOK() functions (0 Replies)
Discussion started by: royalibrahim
0 Replies

3. UNIX for Dummies Questions & Answers

SDL error with the version

hi, i've just downloaded a test game to try compiling it with the gcc compiler in Solaris, the problem was that ./configure command return this error *** Could not run SDL test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker... (0 Replies)
Discussion started by: freeware
0 Replies

4. Programming

PLaying a sound file with SDL - C++

How do I play a sound file with SDL? I've downloaded the library files but SDL/SDL_mixer.h (that most of the tutorials include) doesn't exist. So, how do I install it? As I said mixer.h doesn't exist but, If it is helpful, the default code is this: #include "stdlib.h" #include "SDL/SDL.h"... (2 Replies)
Discussion started by: hakermania
2 Replies

5. Programming

SDL Image Filtering

Solved thanks for info!! (8 Replies)
Discussion started by: aLHaNz
8 Replies

6. Programming

MinGW - Trouble Compiling Guile

This question is not about programming but compiling with GNU GCC/Make. I am not on a UNIX machine but am using the UNIX-like environment MSYS with MinGW for compiling. The problem that I am having is that I cannot get guile to compile. For some reason it cannot find libltdl which is part of... (3 Replies)
Discussion started by: Deluge
3 Replies
pods::SDL::Surface(3pm) 				User Contributed Perl Documentation				   pods::SDL::Surface(3pm)

NAME
SDL::Surface - Graphic surface structure CATEGORY
Core, Video, Structure SYNOPSIS
use SDL; use SDL::Video; use SDL::Surface; # Create the main surface (display) SDL::init(SDL_INIT_VIDEO); my $display = SDL::Video::set_video_mode(640, 480, 16, SDL_SWSURFACE); # Create other surfaces attached to the $display. my $surface = SDL::Surface->new(SDL_ASYNCBLIT | SDL_HWSURFACE, 640, 480, 16, 0, 0, 0, 0); my $surface2 = SDL::Surface->new_from($surface, 100, 100, 8, 0, 0, 0, 0); DESCRIPTION
An "SDL_Surface" defines a surfaceangular area of pixels. CONSTANTS
The constants for SDL::Surface belong to SDL::Video, under the export tag of ':surface'. SDL_ASYNCBLIT Use asynchronous blit if possible SDL_SWSURFACE Store in system memory SDL_HWSURFACE Store in video memory METHODS
new my $surface = SDL::Surface->new( $flags, $width, $height, $depth, $Rmask, $Gmask, $Bmask, $Amask ); The constructor creates a new surface with the specified parameter values. The four mask values are the bits that the channel will ignore. For example, an Rmask of 0xFF will ignore that channel completely, making everything on the surface more green/blue. new_from my $surface = SDL::Surface->new_from( $surface, $width, $height, $depth, $Rmask, $Gmask, $Bmask, $Amask ); The constructor creates a new surface with the specified parameter values. The flags are taken from the specified $surface. w my $w = $surface->w; Returns the width of the surface. SDL::Surface width is defined at construction so this is read-only. h my $h = $surface->h; Returns the height of the surface. SDL::Surface height is defined at construction so this is read-only. format my $format = $surface->format; The format of the pixels stored in the surface. See SDL::PixelFormat pitch my $pitch = $surface->pitch; The scanline length in bytes. Direct Write to Surface Pixel Disclaimer: The following methods can be very slow, making them suitable for creating surfaces, but not for animations get_pixel my $pixel = $surface->get_pixel( $offset ) Returns the numeric pixel value for the given $offset. The pixel value depends on current pixel format. Note: For surfaces with a palette (1 byte per pixel) the palette index is returned instead of color values. set_pixels $surface->set_pixels( $offset, $value ); Sets the pixel $value to the given $offset. The pixel value must fit the pixel format of the surface. Note: For surfaces with a palette (1 byte per pixel) the palette index must be passed instead of color values. Example: sub putpixel { my ($x, $y, $color) = @_; $display->set_pixels( $x + $y * $display->w, $color); } See also examples/pixel_operations/sols/ch02.pl! get_pixels_ptr my $ptr = $surface->get_pixels_ptr; Returns a reference to the surface's pixels. SEE ALSO
SDL, SDL::PixelFormat, SDL::Video, SDL::Rect AUTHORS
See "AUTHORS" in SDL. perl v5.14.2 2012-05-28 pods::SDL::Surface(3pm)
All times are GMT -4. The time now is 01:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy