DynRPG  v0.14a
RM2k3 Plugin SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes
RPG::Screen Class Reference

Used for the screen, including window properties and FPS. More...

List of all members.

Public Member Functions

HWND getCanvasHWND ()
 Returns the HWND of the window control on which the screen is drawn.
void setFPS (int fps)
 Changes the framerate (and thus the overall speed of the game)
void update (RPG::Scene scene)
 Redraws the screen for a certain scene.

Public Attributes

AuroraDrawMainauroraDrawMain
 Not implemented yet.
bool fullScreen
 Is fullscreen active?
bool largeWindow
 Is the large window (640x480) active?
Canvascanvas
 RPG::Canvas which should be used for drawing on the screen.
double millisecondsPerFrame
 Milliseconds a frame should take.
int maxFPS
 Maximum FPS.

Detailed Description

Used for the screen, including window properties and FPS.

See also:
RPG::screen

Member Function Documentation

Returns the HWND of the window control on which the screen is drawn.

Note:
In windowed mode, this is not the window itself, but a child of it.
void RPG::Screen::setFPS ( int  fps)

Changes the framerate (and thus the overall speed of the game)

This function changes the speed of the whole game by changing the number of frames rendered per second. The default is 80.

Parameters:
fpsNew framerate

Redraws the screen for a certain scene.

This function completely redraws the screen and uses the drawing method of the specified scene. Normally, you would use the current scene for that. This function will also wait for the next frame without using 100% CPU, so that you can use this function to do something which takes longer than one frame.

Parameters:
sceneScene to draw

Member Data Documentation

Not implemented yet.

RPG::Canvas which should be used for drawing on the screen.

Is fullscreen active?

Is the large window (640x480) active?

Maximum FPS.

Milliseconds a frame should take.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator