AsyncGraphics::DisplayProxy Class Reference
#include <displayproxy.h>
Inheritance diagram for AsyncGraphics::DisplayProxy:
Detailed Description
The DisplayProxy object is used to access DisplayDevice functionality from a different thread. Usually only the main thread creates a display proxy object.(C) 2007 Radon Labs GmbH
Public Member Functions | |
DisplayProxy () | |
constructor | |
virtual | ~DisplayProxy () |
destructor | |
void | SetAdapter (CoreGraphics::Adapter::Code a) |
set display adapter to use | |
CoreGraphics::Adapter::Code | GetAdapter () const |
get displat adapter | |
void | SetDisplayMode (const CoreGraphics::DisplayMode &m) |
set display mode (make sure the display mode is supported!) | |
const CoreGraphics::DisplayMode & | GetDisplayMode () const |
get display mode | |
void | SetAntiAliasQuality (CoreGraphics::AntiAliasQuality::Code aa) |
set antialias quality | |
CoreGraphics::AntiAliasQuality::Code | GetAntiAliasQuality () const |
get antialias quality | |
void | SetFullscreen (bool b) |
set windowed/fullscreen mode | |
bool | IsFullscreen () const |
get windowed/fullscreen mode | |
void | SetDisplayModeSwitchEnabled (bool b) |
enable display mode switch when running fullscreen (default is true); | |
bool | IsDisplayModeSwitchEnabled () const |
is display mode switch enabled for fullscreen? | |
void | SetTripleBufferingEnabled (bool b) |
enable triple buffer for fullscreen (default is double buffering) | |
bool | IsTripleBufferingEnabled () const |
is triple buffer enabled for fullscreen? | |
void | SetAlwaysOnTop (bool b) |
set always-on-top behaviour | |
bool | IsAlwaysOnTop () const |
get always-on-top behaviour | |
void | SetVerticalSyncEnabled (bool b) |
turn vertical sync on/off | |
bool | IsVerticalSyncEnabled () const |
get vertical sync flag | |
void | SetIconName (const Util::String &s) |
set optional window icon resource name | |
const Util::String & | GetIconName () const |
get optional window icon resource name | |
void | Open () |
open the display (waits for completion) | |
void | Close () |
close the display (waits for completion) | |
bool | IsOpen () const |
return true if display is currently open | |
bool | AdapterExists (CoreGraphics::Adapter::Code adapter) |
return true if adapter exists (waits for completion) | |
Util::Array < CoreGraphics::DisplayMode > | GetAvailableDisplayModes (CoreGraphics::Adapter::Code adapter, CoreGraphics::PixelFormat::Code pixelFormat) |
get available display modes on given adapter (waits for completion) | |
bool | SupportsDisplayMode (CoreGraphics::Adapter::Code adapter, const CoreGraphics::DisplayMode &requestedMode) |
return true if a given display mode is supported (waits for completion) | |
CoreGraphics::DisplayMode | GetCurrentAdapterDisplayMode (CoreGraphics::Adapter::Code adapter) |
get current adapter display mode (i.e. the desktop display mode) (waits for completion) | |
CoreGraphics::AdapterInfo | GetAdapterInfo (CoreGraphics::Adapter::Code adapter) |
get general info about display adapter (waits for completion) | |
void | AttachDisplayEventHandler (const Ptr< CoreGraphics::ThreadSafeDisplayEventHandler > &displayEventHandler) |
attach a display event handler | |
void | RemoveDisplayEventHandler (const Ptr< CoreGraphics::ThreadSafeDisplayEventHandler > &displayEventHandler) |
remove a display event handler | |
void | AttachRenderEventHandler (const Ptr< CoreGraphics::ThreadSafeRenderEventHandler > &renderEventHandler) |
attach a render event handler | |
void | RemoveRenderEventHandler (const Ptr< CoreGraphics::ThreadSafeRenderEventHandler > &renderEventHandler) |
remove a render event handler | |
int | GetRefCount () const |
get the current refcount | |
void | AddRef () |
increment refcount by one | |
void | Release () |
decrement refcount and destroy object if refcount is zero | |
bool | IsInstanceOf (const Rtti &rtti) const |
return true if this object is instance of given class | |
bool | IsInstanceOf (const Util::String &className) const |
return true if this object is instance of given class by string | |
bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
return true if this object is instance of given class by fourcc | |
bool | IsA (const Rtti &rtti) const |
return true if this object is instance of given class, or a derived class | |
bool | IsA (const Util::String &rttiName) const |
return true if this object is instance of given class, or a derived class, by string | |
bool | IsA (const Util::FourCC &rttiFourCC) const |
return true if this object is instance of given class, or a derived class, by fourcc | |
const Util::String & | GetClassName () const |
get the class name | |
Util::FourCC | GetClassFourCC () const |
get the class FourCC code | |
Static Public Member Functions | |
static void | DumpRefCountingLeaks () |
dump refcounting leaks, call at end of application (NEBULA3_DEBUG builds only!) |
Member Function Documentation
int Core::RefCounted::GetRefCount | ( | ) | const [inline, inherited] |
get the current refcount
Return the current refcount of the object.
void Core::RefCounted::AddRef | ( | ) | [inline, inherited] |
increment refcount by one
Increment the refcount of the object.
void Core::RefCounted::Release | ( | ) | [inline, inherited] |
decrement refcount and destroy object if refcount is zero
Decrement the refcount and destroy object if refcount is zero.
const Util::String & Core::RefCounted::GetClassName | ( | ) | const [inline, inherited] |
get the class name
Get the class name of the object.
Util::FourCC Core::RefCounted::GetClassFourCC | ( | ) | const [inline, inherited] |
get the class FourCC code
Get the class FourCC of the object.
void Core::RefCounted::DumpRefCountingLeaks | ( | ) | [static, inherited] |
dump refcounting leaks, call at end of application (NEBULA3_DEBUG builds only!)
This method should be called as the very last before an application exits.