|
SystemService Struct Reference
[System Services]
Inherits Service.
Inherited by SystemImpl.
List of all members.
Detailed Description
The "system" service provides an abstracted interface to the underlying hardware/OS platform. It allows the application to interact with the game window, receive user input, read the system timer, and similar tasks.
Member Function Documentation
| virtual Float SystemService::getDisplayAspect |
( |
|
) |
const [pure virtual] |
|
|
|
Get the aspect ratio of the display, calculated as width/height. |
| virtual int SystemService::getDisplayHeight |
( |
|
) |
const [pure virtual] |
|
|
|
Get the height of the display, in pixels. |
| virtual int SystemService::getDisplayWidth |
( |
|
) |
const [pure virtual] |
|
|
|
Get the width of the display, in pixels. |
| virtual int SystemService::getKeyCode |
( |
const Char * |
name |
) |
const [pure virtual] |
|
|
|
Given a key name, returns the associated key code. Returns zero if the name is not recognized. |
| virtual Double SystemService::getTimer |
( |
|
) |
[pure virtual] |
|
|
|
Read the system timer. Returns the number of seconds since the system was started. |
| virtual void SystemService::setWindowTitle |
( |
const Char * |
title |
) |
[pure virtual] |
|
|
|
Set the title shown on the display window. |
| virtual void SystemService::swapBuffers |
( |
|
) |
[pure virtual] |
|
|
|
Swap the rendering buffers. Ideally this method would be in the render service, but the OpenGL swap function is system specific. |
The documentation for this struct was generated from the following file:
Flat Four Engine
Copyright (C) 2001 by 379, Inc.
|
This page generated by Doxygen
|
|