![]() |
DynRPG
v0.20
RM2k3 Plugin SDK
|
Used for the screen, including window properties and FPS. More...
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 | |
AuroraDrawMain * | auroraDrawMain |
Not implemented yet. | |
bool | fullScreen |
Is fullscreen active? | |
bool | largeWindow |
Is the large window (640x480) active? | |
Canvas * | canvas |
RPG::Canvas which should be used for drawing on the screen. | |
double | millisecondsPerFrame |
Milliseconds a frame should take. | |
int | maxFPS |
Maximum FPS. |
Used for the screen, including window properties and FPS.
HWND RPG::Screen::getCanvasHWND | ( | ) |
Returns the HWND of the window control on which the screen is drawn.
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 60
.
fps | New framerate |
void RPG::Screen::update | ( | RPG::Scene | scene | ) |
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.
scene | Scene to draw |
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.