GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SDLmm(3) FreeBSD Library Functions Manual SDLmm(3)

SDLmm - The namespace for the SDLmm library.


class SDLmm::Audio
class SDLmm::BaseSurface
An abstract base class for graphical surfaces. class SDLmm::CD
class SDLmm::ColorRGB
A small usefull class representing an RGB color. class SDLmm::ColorRGBA
A small usefull class representing an RGBA color. class SDLmm::Display
The video frame buffer surface. class SDLmm::Event
The general Event class. class SDLmm::EventHandler
The base class used for custom Event handlers. class SDLmm::Joystick
class SDLmm::PixelFormat
class SDLmm::SPoint
A small usefull class representing a point in 2 dimensional space. class SDLmm::SRect
This enhanced version of SDL_Rect includes a number of handy short-hand constructors. Since the class is derived from the SDL_Rect struct, it can be used in any context where an SDL_Rect is valid. class SDLmm::Surface
A graphical surface structure which is used to store graphical data. class SDLmm::Timer
class SDLmm::VideoInfo
Video target information.


typedef Uint32 Color


bool Init (Uint32 flags)
Initializes SDL. void Quit ()
Shut down SDL. Uint32 WasInit (Uint32 flags)
Check which subsystems are initialized. const char* GetError ()
Get the latest error message. const char* version ()
Return the SDLmm library version.

The namespace for the SDLmm library.

Get the latest error message.

Returns:
The error message for the last SDL function that failed.

Initializes SDL.

This method should be called before utilizing any other SDL or SDLmm functionality. The flags parameter specifies what part(s) of SDL to initialize (see the SDL documentation for details).

Parameters:

flags
the subsystems to initalize

Returns:
true on success, false on error

Note:
In SDLmm the preferred way of initiating subsystem is to use the Init() function in the subsystem classes. I.e to initialize audio and video, run Display::Init() and Audio::Init(). Also note that instantiating an object might be enough (for example creating a VideoInfo instance will initialize the video subsystem).

Shut down SDL.

Quit() shuts down all SDL subsystems and frees the resources allocated to them. This should always be called before you exit. For the sake of simplicity you can set Quit() as your atexit call, like this:

    SDLmm::Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
    atexit(SDLmm::Quit);

Check which subsystems are initialized.

This allows you to see which SDL subsytems have been initialized.

Parameters:

flags
bitwise OR'd combination of the subsystems you wish to check

Returns:
A bitwised OR'd combination of the initialized subsystems.

Return the SDLmm library version.

Generated automatically by Doxygen for SDLmm from the source code.
16 Jul 2001 SDLmm

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.