SystemService Struct Reference
[System Services]

Inherits Service.

Inherited by SystemImpl.

List of all members.

Public Methods

virtual void setWindowTitle (const Char *title)=0
virtual int getDisplayWidth () const=0
virtual int getDisplayHeight () const=0
virtual Float getDisplayAspect () const=0
virtual void swapBuffers ()=0
virtual Double getTimer ()=0
virtual int getKeyCode (const Char *name) const=0


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