Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields

sdl4gcj::SDLSystem Class Reference

A collection of Utilities for SDL System. More...

Inheritance diagram for sdl4gcj::SDLSystem:

Inheritance graph
[legend]
Collaboration diagram for sdl4gcj::SDLSystem:

Collaboration graph
[legend]

Static Public Member Functions

static native final int init (int flags)
 Initialize SDL system.
static native final int initSubSystem (int flags)
 Initialize subsystem.
static native final int wasInit (int flags)
 Check which subsystems are initialized.
static native final void quitSubSystem (int flags)
 Finalize subsystem.
static native final void quit ()
 Finalize SDL system.
static native Version compiledVersion ()
 Get version of compiled library.
static native Version linkedVersion ()
 Get the version of linked library.
static native final void delay (long ms)
 Wait a specified number of miliseconds.
static native final long getTicks ()
 Get a number of miliseconds since the SDL system initialization.
static native final int byteOrder ()
 Get a native byte order.

Private Member Functions

 SDLSystem ()

Detailed Description

A collection of Utilities for SDL System.

SDLSystem class has wrapper for following functions and constants.

Author:
Masahiko SAWAI


Constructor & Destructor Documentation

sdl4gcj::SDLSystem::SDLSystem  )  [inline, private]
 


Member Function Documentation

static native final int sdl4gcj::SDLSystem::byteOrder  )  [static]
 

Get a native byte order.

SDL_BYTEORDER

Returns:
byte order SDL_LIL_ENDIAN or SDL_BIG_ENDIAN
See also:
SDL_LIL_ENDIAN

SDL_BIG_ENDIAN

static native Version sdl4gcj::SDLSystem::compiledVersion  )  [static]
 

Get version of compiled library.

Returns:
version of compile library

static native final void sdl4gcj::SDLSystem::delay long  ms  )  [static]
 

Wait a specified number of miliseconds.

SDL_Delay()

Parameters:
ms delay time (milisecond)

static native final long sdl4gcj::SDLSystem::getTicks  )  [static]
 

Get a number of miliseconds since the SDL system initialization.

SDL_GetTicks()

static native final int sdl4gcj::SDLSystem::init int  flags  )  [static]
 

Initialize SDL system.

This should be called before all other SDL functions. The flags parameter specifies what part(s) of SDL to initialize. This method is a wrapper for SDL_Init() function.

  • SDL_INIT_TIMER
  • SDL_INIT_AUDIO
  • SDL_INIT_VIDEO
  • SDL_INIT_CDROM
  • SDL_INIT_JOYSTICK
  • SDL_INIT_NOPARACHUTE
  • SDL_INIT_EVENTTHREAD
  • SDL_INIT_EVERYTHING

static native final int sdl4gcj::SDLSystem::initSubSystem int  flags  )  [static]
 

Initialize subsystem.

This method is a wrapper for SDL_InitSubSystem() function.

static native Version sdl4gcj::SDLSystem::linkedVersion  )  [static]
 

Get the version of linked library.

( SDL_Linked_Version() )

Returns:
version of linked library

static native final void sdl4gcj::SDLSystem::quit  )  [static]
 

Finalize SDL system.

This method is a wrapper for SDL_Quit() function.

static native final void sdl4gcj::SDLSystem::quitSubSystem int  flags  )  [static]
 

Finalize subsystem.

This method is a wrapper for SDL_QuitSubSystem() function.

static native final int sdl4gcj::SDLSystem::wasInit int  flags  )  [static]
 

Check which subsystems are initialized.

This method is a wrapper for SDL_WasInit() function.


The documentation for this class was generated from the following file:
Generated on Sun Oct 16 15:28:52 2005 for sdl4gcj by  doxygen 1.4.3