In file gfx/libos/Os.hxx:

class Os::WindowSystem

The overall singleton wrapper class for the current window system.

Documentation

The overall singleton wrapper class for the current window system. OpenGL is supported on different windowing systems and those systems all have different ways of creating the drawables and handling events. This class is the basis of abstracting those features that gzz needs.

Inheritance:

WindowSystem


Public Methods

[more]static WindowSystem* getInstance ()
Get the instance of WindowSystem appropriate for the current environment
[more]virtual RenderingSurface* openStableOffScreen (int w, int h)
Open a reliable off-screen rendering surface
[more]virtual void eventLoop (bool wait)
Handle events.
[more]virtual void interrupt ()
Interrupt event loop waiting.

ostatic WindowSystem* getInstance()
Get the instance of WindowSystem appropriate for the current environment

ovirtual RenderingSurface* openStableOffScreen(int w, int h) = 0
Open a reliable off-screen rendering surface

ovirtual void eventLoop(bool wait) = 0
Handle events.
Parameters:
wait - If true, this function will wait for the next event and handle it before returning; if false, will return immediately.

ovirtual void interrupt() = 0
Interrupt event loop waiting. Because there are things happening in multiple threads in Java, it is useful to be able to stop the event loop from waiting to perform idle tasks again.

This is the ONLY function here that may be called from another thread.


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.