When invoked calculates and returns the time that has elapsed since the last
invokation in milliseconds (actual resolutin may vary from implementation to
implementation).
Constructs a counter that uses the currently set font bitmap for numbers,
has the given initial value, is located at the given screen
coordinates and uses the given number of digits.
Defines an interface to a bitmap image that can blit (draw) or strecth (scale) itself
in the graphics engine's backbuffer or into drawable bitmap, but also can be blitted
into.
Exits cleanly from application that has used GameFrame by first
finalizing the whole library (that ensures all native resources are
freed) and then calling carbage collector and waiting for a while
and THEN exiting the application just like System.exit() method.
This class offers the methods for a game developer to define what kind
of features he wants to be enabled (fullscreen or non-fullscreen graphics
modes, proprietary engines or plain Java engines etc.) the resolution of
the created graphics engine.
Default values are:
Fullscreen modes allowed.
Microsoft Java allowed.
Java Media Framework 1.1 allowed.
Native libraries allowed.
Required resolution "640x480".
16 bits per pixel.
No preferred refresh rate.
Returns all keyboard type of devices found on the system as polled
devices (whenever the program that wants to know about
the state of the device it must ask it from the device).
Returns all pointer type of devices found on the system as polled
devices (whenever the program that wants to know about
the state of the device it must ask it from the device).
Returns the number of times the button has been stroken since last reading
(after last call made to wasButtonDown or getButtonDownCount methods with the
same button id number).
Returns the default keyboard type of device in the system as polled
device (whenever the program that wants to know about the state of
the device it must ask it from the device).
Returns the default pointer type of device in the system as
an polled device (whenever the program that wants to know about
the state of the device it must ask it from the device).
Returns the number of times the key has been stroken since last reading
(after last call made to isKeyDown or getKeyDownCount methods with the
same key code).
Returns any typed alphanumeric keys (including space and dot) as int values that
correspond to that keys char value or -1 if no such keys were pressed
after last invokation of this method.
Returns true if the key is down or if the key was briefly kept down
after last reading of the keys state (after last call made to isKeyDown or
getKeyDownCount methods with the same key code).
Loads the given file containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
Loads the given file containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
Loads the file at the given URL containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
Loads the file at the given URL containing a Windows BMP formatted bitmap and
returns an object containing the raw pixel data and the dimensions
of the loaded bitmap.
First tries to load a music file as streamed Microsoft RIFF WAV file,
if no such file is found from the current data directory, tries to load
a music file in MIDI format.
Interface for a generic timer class that times the (average or exact, depending
on implementation) time between the calls made to the calculateTime() method.
Returns true if the button was briefly kept down after last reading
of the buttons state (after last call made to wasButtonDown or
getButtonDownCount methods with the same button id number).
Returns true if the key was briefly kept down after last reading of the keys
state (after last call made to isKeyDown or getKeyDownCount methods with the
same key code).