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) |
Set the currently active mouse cursor. | |
Cursor | getCursor () |
Get the currently active mouse cursor. | |
void | setCursorVisible (boolean toggle) |
Toggle whether or not the cursor is shown on the screen. | |
boolean | isCursorVisible () |
Returns true if the cursor is visible. | |
native void | iconifyWindow () |
Iconify/Minimise the window. | |
native int | toggleFullScreen () |
Toggle fullscreen mode. | |
native boolean | grabInput (boolean grabMode) |
Grab mouse and keyboard input. | |
native void | setGrabInputMode (boolean grabMode) |
Grab mouse and keyboard input. | |
native boolean | getGrabInputMode () |
Get grab mode for mouse and keyboard input. | |
void | freeSurface () |
Free surface. | |
void | displayFormat () |
Convert a surface to the display format. | |
void | displayForamtAlpha () |
Convert a surface to the display format. | |
void | convertSurface (PixelFormat format, int flags) |
Converts a surface to the same format as another surface. | |
Static Public Member Functions | |
static native int | videoModeOK (int width, int height, int bpp, int flags) |
Check to see if a particular video mode is supported. | |
static native Screen | setVideoMode (int width, int height, int bpp, int flags) |
Set up a video mode with the specified width, height and bits-per-pixel. | |
static native Screen | getVideoSurface () |
Get the current display surface. | |
static native VideoInfo | getVideoInfo () |
Get the information about the video hardware. | |
static native void | setGamma (float redgamma, float greengamma, float bluegamma) |
Sets the color gamma function for the display. | |
static native void | setGammaRamp (int[] redtable, int[] greentable, int[] bluetable) |
Sets the color gamma lookup tables for the display. | |
static void | setRedGammaRamp (int[] redTable) |
Sets the red gamma lookup tables for the display. | |
static void | setGreenGammaRamp (int[] greenTable) |
Sets the green gamma lookup tables for the display. | |
static void | setBlueGammaRamp (int[] blueTable) |
Sets the blue gamma lookup tables for the display. | |
static native int[] | getRedGammaRamp () |
Gets the red gamma lookup tables for the display. | |
static native int[] | getGreenGammaRamp () |
Gets the green gamma lookup tables for the display. | |
static native int[] | getBlueGammaRamp () |
Gets the blue gamma lookup tables for the display. | |
static native void | setCaption (String windowCaption, String iconCaption) |
Set window title and icon name. | |
static void | setWindowCaption (String windowCaption) |
Set the window caption. | |
static void | setIconCaption (String iconCaption) |
Set the icon caption. | |
static native String | getWindowCaption () |
Gets the window caption. | |
static native String | getIconCaption () |
Gets the icon caption. | |
static native void | setIcon (Surface icon, byte[] mask) |
Set the icon for the display window. | |
static void | setIcon (Surface icon) |
Set the icon for the display window. | |
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). | |
Protected Member Functions | |
void | initRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
void | initRGBSurfaceFrom (byte[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
void | initRGBSurfaceFrom (short[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
void | initRGBSurfaceFrom (int[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
Private Member Functions | |
Screen () | |
Static Private Attributes | |
static Screen | singleton = null |
|
|
|
Converts a surface to the same format as another surface. SDL_ConvertSurface() wrapper. Reimplemented from sdl4gcj::video::Surface. |
|
Convert a surface to the display format. SDL_DisplayFormatAlpha() wrapper. Reimplemented from sdl4gcj::video::Surface. |
|
Convert a surface to the display format. SDL_DisplayFormat() wrapper. Reimplemented from sdl4gcj::video::Surface. |
|
SDL_Flip(SDL_Surface* screen).
|
|
Free surface. SDL_FreeSurface() wrapper. Reimplemented from sdl4gcj::video::Surface. |
|
Gets the blue gamma lookup tables for the display. SDL_GetGammaRamp(NULL, NULL, bluetable) |
|
Get the currently active mouse cursor. SDL_Cursor* SDL_GetCursor() wrapper. |
|
Get grab mode for mouse and keyboard input. SDL_WM_GrabInput() wrapper.
|
|
Gets the green gamma lookup tables for the display. SDL_GetGammaRamp(NULL, greentable, NULL) |
|
Gets the icon caption. SDL_WM_GetCaption(char** title, char* icon) wrapper. |
|
Gets the red gamma lookup tables for the display. SDL_GetGammaRamp(redtable, NULL, NULL) |
|
Get the information about the video hardware. SDL_GetVideoInfo() |
|
Get the current display surface. SDL_GetVideoSurface() |
|
Gets the window caption. SDL_WM_GetCaption(char** title, char* icon) wrapper. |
|
SDL_GL_GetAttribute(SDL_GLattr attr).
|
|
SDL_GL_SetAttribute(SDL_GLattr attr, int value).
|
|
SDL_GL_SwapBuffers().
|
|
Grab mouse and keyboard input. SDL_WM_GrabInput() wrapper.
|
|
Iconify/Minimise the window. SDL_WM_IconifyWindow() |
|
Reimplemented from sdl4gcj::video::Surface. |
|
Reimplemented from sdl4gcj::video::Surface. |
|
Reimplemented from sdl4gcj::video::Surface. |
|
Reimplemented from sdl4gcj::video::Surface. |
|
Returns SDL_ShowCursor(int toggle) wrapper. |
|
Sets the blue gamma lookup tables for the display. SDL_SetGammaRamp(blueTable, null, null) |
|
Set window title and icon name. SDL_WM_SetCaption(char* title, char* icon) wrapper. |
|
Set the currently active mouse cursor. SDL_SetCursor(SDL_Cursor* cursor) wrapper. |
|
Toggle whether or not the cursor is shown on the screen. SDL_ShowCursor(int toggle) wrapper. |
|
Sets the color gamma function for the display. SDL_SetGamma(float redgamma, float greengamma, float, bluegamma) |
|
Sets the color gamma lookup tables for the display. SDL_SetGammaRamp(Uint16* redtable, Uint16* greentable, Uint16* bluetable) |
|
Grab mouse and keyboard input. SDL_WM_GrabInput() wrapper. |
|
Sets the green gamma lookup tables for the display. SDL_SetGammaRamp(greenTable, null, null) |
|
Set the icon for the display window. Win32 icons must be 32x32. This method must be called before the first call to Screen.setVideoMode(). The entire icon surface will be used as the icon. SDL_WM_SetIcon(SDL_Surface* icon, Uint8* mask) wrapper. |
|
Set the icon for the display window. Win32 icons must be 32x32. This method must be called before the first call to Screen.setVideoMode(). It takes an icon surface, and a mask in MSB format. SDL_WM_SetIcon(SDL_Surface* icon, Uint8* mask) wrapper. |
|
Set the icon caption. SDL_WM_SetCaption(NULL, iconCaption) wrapper. |
|
Sets the red gamma lookup tables for the display. SDL_SetGammaRamp(redTable, null, null) |
|
Set up a video mode with the specified width, height and bits-per-pixel. SDL_SetVideoMode(int w, int h, int bpp, int flags) wrapper.
|
|
Set the window caption. SDL_WM_SetCaption(windowCaption, NULL) wrapper. |
|
Toggle fullscreen mode. Toggles the application between windowed and fullscreen mode, if supported. SDL_WM_ToggleFullScreen() wrapper.
|
|
Make sure the whole of screen is updated.
|
|
Make sure the given area is updated.
|
|
Make sure the given area is updated. This is equivalent to SDL_UpdateRect() function. |
|
Make sure the given areas are updated. This is equivalent to SDL_UpdateRects() function. |
|
Check to see if a particular video mode is supported. SDL_VideoModeOK(int w, int h, int bpp, int flags) wrapper.
|
|
|