Package sdljavax.gfx

Provides the interface to SDL_gfx routines defined in SDL_gfxPrimitives.h and SDL_rotozoom.h.

See:
          Description

Class Summary
FPSmanager Full java version of the framerate manager from SDL_gfx library.
SDLGfx Binding to the SDL_gfx library
 

Package sdljavax.gfx Description

Provides the interface to SDL_gfx routines defined in SDL_gfxPrimitives.h and SDL_rotozoom.h.

NOTE: Support for the SDL_imageFilter.h routines is not yet implemented but planned.

NOTE: Support for the framerate routines is not implemented, I'm not sure if it makes sense to provide there here

Package Specification

Note: all ___Color routines expect the color to be in format 0xRRGGBBAA

Notes on Rotozoomer

The rotozoom without interpolation code should be fast enough even for some realtime effects if the CPU is fast or bitmaps small. With interpolation the routines are typically used for pre-rendering stuff in higher quality (i.e. smoothing) - that's also a reason why the API differs from SDL_BlitRect() and creates a new target surface each time rotozoom is called. The final rendering speed is dependent on the target surface size as it is beeing xy-scanned when rendering the new surface.

Note also that the smoothing toggle is dependent on the input surface bit depth. 8bit surfaces will never be smoothed - only 32bit surfaces will.

Note that surfaces of other bit depth then 8 and 32 will be converted on the fly to a 32bit surface using a blit into a temporary surface. This impacts performance somewhat.