The graphics server is the main singleton for the Graphics subsystem.
Updating the GraphicsServer will progress the rendering process by one frame.
- Copyright
- (C) 2017-2020 Individual contributors, see AUTHORS file
|
| GraphicsServer () |
| constructor
|
|
virtual | ~GraphicsServer () |
| destructor
|
|
void | Open () |
| opens the graphics server
|
|
void | Close () |
| closes the graphics server
|
|
GraphicsEntityId | CreateGraphicsEntity () |
| create graphics entity
|
|
void | DiscardGraphicsEntity (const GraphicsEntityId id) |
| discard graphics entity
|
|
bool | IsValidGraphicsEntity (const GraphicsEntityId id) |
| check if graphics entity is valid
|
|
Ptr< View > | CreateView (const Util::StringAtom &name, void(*)(const Math::rectangle< int > &, IndexT, IndexT), const Math::rectangle< int > &viewport) |
| create a new view with a new framescript
|
|
Ptr< View > | CreateView (const Util::StringAtom &name) |
| create a new view without a framescript
|
|
const Ptr< View > & | GetView (const Util::StringAtom &name) |
| Get view by name.
|
|
void | DiscardView (const Ptr< View > &view) |
| discard view
|
|
const Ptr< View > & | GetCurrentView () const |
| get current view
|
|
void | SetCurrentView (const Ptr< View > &view) |
| set current view (do not use unless you know what you are doing since this is normally handled by the graphicssserver)
|
|
void | AddPreViewCall (PreViewCallback callback) |
| Add callback for rendering before the views are processed.
|
|
void | AddPostViewCall (PostViewCallback callback) |
| Add callback for rendering after the views are processed.
|
|
void | SetResizeCall (void(*)(const SizeT, const SizeT)) |
| Set a function to be run when resize.
|
|
void | SetSwapInfo (const SwapInfo &info) |
| Setup the swap info.
|
|
Ptr< Stage > | CreateStage (const Util::StringAtom &name, bool main) |
| create a new stage
|
|
void | DiscardStage (const Ptr< Stage > &stage) |
| discard stage
|
|
void | SetupPreLogicCalls (const Util::Array< ViewIndependentCall > &calls) |
| Setup pre game logic graphics calls.
|
|
void | SetupPostLogicCalls (const Util::Array< ViewIndependentCall > &calls) |
| Setup post game logic graphics calls.
|
|
void | SetupPreLogicViewCalls (const Util::Array< ViewDependentCall > &calls) |
| Setup per-view calls.
|
|
void | SetupPostLogicViewCalls (const Util::Array< ViewDependentCall > &calls) |
| Setup per-view calls.
|
|
void | RunPreLogic () |
| Run pre-logic calls.
|
|
void | RunPostLogic () |
| Run post-logic calls.
|
|
void | Render () |
| Render views.
|
|
void | EndFrame () |
| End the frame and submit.
|
|
void | NewFrame () |
| Progress to next frame.
|
|
const Timing::Time | GetTime () const |
| get total time in seconds
|
|
const Timing::Time | GetFrameTime () const |
| get frame time in seconds
|
|
const IndexT | GetFrameIndex () const |
| get frame index
|
|
void | RenderDebug (uint32_t flags) |
| debug rendering
|
|
void | RegisterGraphicsContext (GraphicsContextFunctionBundle *context, GraphicsContextState *state) |
| register function bundle from graphics context, see GraphicsContextType::Create
|
|
void | UnregisterGraphicsContext (GraphicsContextFunctionBundle *context) |
| unregister function bundle
|
|
void | OnWindowResized (CoreGraphics::WindowId wndId) |
| call when the window has been resized
|
|
| RefCounted () |
| constructor
|
|
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
|
|