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

sdl4gcj::video::Screen Class Reference

Inheritance diagram for sdl4gcj::video::Screen:

Inheritance graph
[legend]
Collaboration diagram for sdl4gcj::video::Screen:

Collaboration graph
[legend]

Public Member Functions

native void updateRect (int x, int y, int w, int h)
 Make sure the given area is updated.
void updateRect (Rect rect)
 Make sure the given area is updated.
void updateRect ()
 Make sure the whole of screen is updated.
native void updateRects (Rect[] rects)
 Make sure the given areas are updated.
native void flip ()
 SDL_Flip(SDL_Surface* screen).
native void glSwapBuffers ()
 SDL_GL_SwapBuffers().
void setCursor (Cursor cursor)
 SDL_SetCursor(SDL_Cursor* cursor).
Cursor getCursor ()
 SDL_Cursor* SDL_GetCursor().
void showCursor (boolean toggle)
 SDL_ShowCursor(int toggle).
void convertSurface (PixelFormat format, int flags)
void freeSurface ()

Static Public Member Functions

static native Screen setVideoMode (int width, int height, int bpp, int flags)
 SDL_SetVideoMode().
static native Screen getVideoSurface ()
 SDL_GetVideoSurface().
static native VideoInfo getVideoInfo ()
 SDL_GetVideoInfo().
static native void setGamma (float redgamma, float greengamma, float bluegamma)
 SDL_SetGamma(float redgamma, float greengamma, float, bluegamma).
static native void setGammaRamp (int[] redtable, int[] greentable, int[] bluetable)
 SDL_SetGammaRamp(Uint16* redtable, Uint16* greentable, Uint16* bluetable).
static void setRedGammaRamp (int[] redTable)
 SDL_SetGammaRamp(redTable, null, null).
static void setGreenGammaRamp (int[] greenTable)
 SDL_SetGammaRamp(greenTable, null, null).
static void setBlueGammaRamp (int[] blueTable)
 SDL_SetGammaRamp(blueTable, null, null).
static native int[] getRedGammaRamp ()
 SDL_GetGammaRamp(redtable, NULL, NULL).
static native int[] getGreenGammaRamp ()
 SDL_GetGammaRamp(NULL, greentable, NULL).
static native int[] getBlueGammaRamp ()
 SDL_GetGammaRamp(NULL, NULL, bluetable).
static native void glSetAttribute (int attr, int value)
 SDL_GL_SetAttribute(SDL_GLattr attr, int value).
static native int glGetAttribute (int attr)
 SDL_GL_GetAttribute(SDL_GLattr attr).

Private Member Functions

 Screen ()

Static Private Attributes

static Screen singleton = null

Constructor & Destructor Documentation

sdl4gcj::video::Screen::Screen  )  [inline, private]
 


Member Function Documentation

void sdl4gcj::video::Screen::convertSurface PixelFormat  format,
int  flags
[inline]
 

Reimplemented from sdl4gcj::video::Surface.

native void sdl4gcj::video::Screen::flip  ) 
 

SDL_Flip(SDL_Surface* screen).

void sdl4gcj::video::Screen::freeSurface  )  [inline]
 

Reimplemented from sdl4gcj::video::Surface.

static native int [] sdl4gcj::video::Screen::getBlueGammaRamp  )  [static]
 

SDL_GetGammaRamp(NULL, NULL, bluetable).

Cursor sdl4gcj::video::Screen::getCursor  )  [inline]
 

SDL_Cursor* SDL_GetCursor().

static native int [] sdl4gcj::video::Screen::getGreenGammaRamp  )  [static]
 

SDL_GetGammaRamp(NULL, greentable, NULL).

static native int [] sdl4gcj::video::Screen::getRedGammaRamp  )  [static]
 

SDL_GetGammaRamp(redtable, NULL, NULL).

static native VideoInfo sdl4gcj::video::Screen::getVideoInfo  )  [static]
 

SDL_GetVideoInfo().

static native Screen sdl4gcj::video::Screen::getVideoSurface  )  [static]
 

SDL_GetVideoSurface().

static native int sdl4gcj::video::Screen::glGetAttribute int  attr  )  [static]
 

SDL_GL_GetAttribute(SDL_GLattr attr).

static native void sdl4gcj::video::Screen::glSetAttribute int  attr,
int  value
[static]
 

SDL_GL_SetAttribute(SDL_GLattr attr, int value).

native void sdl4gcj::video::Screen::glSwapBuffers  ) 
 

SDL_GL_SwapBuffers().

static void sdl4gcj::video::Screen::setBlueGammaRamp int[]  blueTable  )  [inline, static]
 

SDL_SetGammaRamp(blueTable, null, null).

void sdl4gcj::video::Screen::setCursor Cursor  cursor  )  [inline]
 

SDL_SetCursor(SDL_Cursor* cursor).

static native void sdl4gcj::video::Screen::setGamma float  redgamma,
float  greengamma,
float  bluegamma
[static]
 

SDL_SetGamma(float redgamma, float greengamma, float, bluegamma).

static native void sdl4gcj::video::Screen::setGammaRamp int[]  redtable,
int[]  greentable,
int[]  bluetable
[static]
 

SDL_SetGammaRamp(Uint16* redtable, Uint16* greentable, Uint16* bluetable).

static void sdl4gcj::video::Screen::setGreenGammaRamp int[]  greenTable  )  [inline, static]
 

SDL_SetGammaRamp(greenTable, null, null).

static void sdl4gcj::video::Screen::setRedGammaRamp int[]  redTable  )  [inline, static]
 

SDL_SetGammaRamp(redTable, null, null).

static native Screen sdl4gcj::video::Screen::setVideoMode int  width,
int  height,
int  bpp,
int  flags
[static]
 

SDL_SetVideoMode().

void sdl4gcj::video::Screen::showCursor boolean  toggle  )  [inline]
 

SDL_ShowCursor(int toggle).

void sdl4gcj::video::Screen::updateRect  )  [inline]
 

Make sure the whole of screen is updated.

void sdl4gcj::video::Screen::updateRect Rect  rect  )  [inline]
 

Make sure the given area is updated.

native void sdl4gcj::video::Screen::updateRect int  x,
int  y,
int  w,
int  h
 

Make sure the given area is updated.

This is equivalent to SDL_UpdateRect() function.

native void sdl4gcj::video::Screen::updateRects Rect[]  rects  ) 
 

Make sure the given areas are updated.

This is equivalent to SDL_UpdateRects() function.


Field Documentation

Screen sdl4gcj::video::Screen::singleton = null [static, private]
 


The documentation for this class was generated from the following file:
Generated on Wed Aug 10 17:48:21 2005 for sdl4gcj by  doxygen 1.4.3