Public メソッド | |
Surface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) | |
native int | getFlags () |
gets video flags. | |
native int | getW () |
gets width. | |
native int | getH () |
gets height. | |
native int | getPitch () |
gets byte per line. | |
native void | saveBMP (String filePath) |
Save an SDL_Surface as a Windows BMP file. | |
void | saveBMP (File file) |
Save an SDL_Surface as a Windows BMP file. | |
native int | blitSurface (Surface surface, int sx, int sy, int sw, int sh, int dx, int dy) |
This performs a fast blit from the surface to the reciever surface. | |
native int | blitSurface (Surface surface, int dx, int dy) |
This performs a fast blit from the surface to the reciever surface. | |
native int | blitSurface (Surface surface) |
This performs a fast blit from the source surface to the destination surface. | |
int | repeatSurface (Surface surface) |
Repeat surface blitting. | |
native void | fillRect (int sx, int sy, int sw, int sh, int color) |
This function performs a fast fill of the given rectangle with some color. | |
void | fillRect (Rect rect, int color) |
This function performs a fast fill of the given rectangle with some color. | |
native void | fillRect (int color) |
This function performs a fast fill of the entire suface with some color. | |
native void | setColorKey (int flags, int colorkey) |
Sets the color key (transparent pixel) in a blittable surface and RLE acceleration. | |
native void | setColorKey (int flags) |
Sets the color key (transparent pixel) in a blittable surface and RLE acceleration. | |
void | setColorKey () |
Sets the color key (transparent pixel) in a blittable surface and RLE acceleration. | |
native boolean | setClipRect (int x, int y, int w, int h) |
Sets the clipping rectangle for a surface. | |
native boolean | setClipRect () |
Sets the clipping rectangle to the full size of the surface. | |
native int[] | getClipRect () |
Gets the clipping rectangle for a surface. | |
native int | setAlpha (int flags, int alpha) |
Adjust the alpha properties of a surface. | |
native void | displayFormat () |
Convert a surface to the display format. | |
native void | displayForamtAlpha () |
Convert a surface to the display format. | |
native void | convertSurface (PixelFormat format, int flags) |
Converts a surface to the same format as another surface. | |
native Surface | cloneSurface () |
Clone surface. | |
native PixelFormat | getPixelFormat () |
Get pixel format. | |
native void | setPalette (Color[] palette) |
Sets the colors in the palette of an 8-bit surface. | |
native void | setPalette (Palette palette) |
Sets the colors in the palette of an 8-bit surface. | |
Palette | getPalette () |
Gets palette. | |
int | mapRGB (Color color) |
Map a RGB color value to a pixel format. | |
int | mapRGB (int red, int green, int blue) |
Map a RGB color value to a pixel format. | |
int | mapRGBA (Color color) |
Map a RGBA color value to a pixel format. | |
int | mapRGBA (int red, int green, int blue, int alpha) |
Map a RGBA color value to a pixel format. | |
int[] | getRGB (int pixel) |
Get RGB values from a pixel in the specified pixel format. | |
int[] | getRGBA (int pixel) |
Get RGBA values from a pixel in the specified pixel format. | |
native byte[] | getPixels () |
Gets pixels. | |
native void | setPixels (byte[] pixels) |
Sets pixels. | |
native void | freeSurface () |
Free surface. | |
Static Public メソッド | |
static native String | getVideoDriverName () |
Obtain the name of the video driver. | |
static native Surface | loadBMP (String filePath) |
Load a Windows BMP file into an SDL_Surface. | |
static Surface | loadBMP (File file) |
Load a Windows BMP file into an SDL_Surface. | |
static native Surface | loadBMP (byte[] bytes, int offset, int length) |
Load a Windows BMP from byte array into an SDL_Surface. | |
static Surface | loadBMP (byte[] bytes) |
Load a Windows BMP from byte array into an SDL_Surface. | |
static Surface | loadBMP (InputStream inputStream) |
Load a Windows BMP from inputStream array into an SDL_Surface. | |
static Surface | createRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
Create an empty SDL_Surface. | |
Protected メソッド | |
Surface () | |
void | finalize () throws Throwable |
Protected 変数 | |
gnu.gcj.RawData | implementation = null |
PixelFormat | format = null |
byte[] | pixelArray = null |
Private メソッド | |
native void | initWithRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
|
|
|
|
|
This performs a fast blit from the source surface to the destination surface. The entire surface is copied. SDL_BlitSurface() wrapper.
|
|
This performs a fast blit from the surface to the reciever surface. The entire surface is copied. SDL_BlitSurface() wrapper.
|
|
This performs a fast blit from the surface to the reciever surface. SDL_BlitSurface() wrapper.
|
|
Clone surface. SDL_ConvertSurface() wrapper. |
|
Converts a surface to the same format as another surface. SDL_ConvertSurface() wrapper. sdl4gcj::video::Screenで再定義されています。 |
|
Create an empty SDL_Surface. SDL_CreateRGBSurface() wrapper. |
|
Convert a surface to the display format. SDL_DisplayFormatAlpha() wrapper. |
|
Convert a surface to the display format. SDL_DisplayFormat() wrapper. |
|
This function performs a fast fill of the entire suface with some color. SDL_FillRect() wrapper. |
|
This function performs a fast fill of the given rectangle with some color. SDL_FillRect() wrapper. |
|
This function performs a fast fill of the given rectangle with some color. SDL_FillRect() wrapper. |
|
|
|
Free surface. SDL_FreeSurface() wrapper. sdl4gcj::video::Screenで再定義されています。 |
|
Gets the clipping rectangle for a surface. SDL_GetClipRect() wrapper. |
|
gets video flags.
|
|
gets height.
|
|
Gets palette.
|
|
gets byte per line.
|
|
Get pixel format.
|
|
Gets pixels.
|
|
Get RGB values from a pixel in the specified pixel format. SDL_GetRGB() wrapper. |
|
Get RGBA values from a pixel in the specified pixel format. SDL_GetRGBA() wrapper. |
|
Obtain the name of the video driver. SDL_VideoDriverName() wrapper. |
|
gets width.
|
|
|
|
Load a Windows BMP from inputStream array into an SDL_Surface. SDL_LoadBMP_RW() wrapper. |
|
Load a Windows BMP from byte array into an SDL_Surface. This is same as loadBMP(bytes, 0, bytes.length); SDL_LoadBMP_RW() wrapper. |
|
Load a Windows BMP from byte array into an SDL_Surface. SDL_LoadBMP_RW() wrapper. |
|
Load a Windows BMP file into an SDL_Surface. SDL_LoadBMP(const char* filePath) wrapper. |
|
Load a Windows BMP file into an SDL_Surface. SDL_LoadBMP(const char* filePath) wrapper. |
|
Map a RGB color value to a pixel format. SDL_MapRGB() |
|
Map a RGB color value to a pixel format. SDL_MapRGB() |
|
Map a RGBA color value to a pixel format. SDL_MapRGBA() wrapper. |
|
Map a RGBA color value to a pixel format. SDL_MapRGBA() wrapper. |
|
Repeat surface blitting. SDL_BlitSurface() wrapper. |
|
Save an SDL_Surface as a Windows BMP file. SDL_SaveBMP() wrapper. |
|
Save an SDL_Surface as a Windows BMP file. SDL_SaveBMP() wrapper. |
|
Adjust the alpha properties of a surface. SDL_SetAlpha() wrapper. |
|
Sets the clipping rectangle to the full size of the surface. SDL_SetClipRect() wrapper. |
|
Sets the clipping rectangle for a surface. SDL_SetClipRect() wrapper. |
|
Sets the color key (transparent pixel) in a blittable surface and RLE acceleration. SDL_SetColorKey() wrapper. |
|
Sets the color key (transparent pixel) in a blittable surface and RLE acceleration. SDL_SetColorKey() wrapper. |
|
Sets the color key (transparent pixel) in a blittable surface and RLE acceleration. SDL_SetColorKey() wrapper. |
|
Sets the colors in the palette of an 8-bit surface. SDL_SetPalette() wrapper. |
|
Sets the colors in the palette of an 8-bit surface. SDL_SetPalette() wrapper. |
|
Sets pixels.
|
|
|
|
|
|
|