LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::Interface Class Reference

Base class for all interfaces in LLGL. More...

#include <Interface.h>

Inheritance diagram for LLGL::Interface:
LLGL::NonCopyable LLGL::Canvas::EventListener LLGL::Display LLGL::IncludeHandler LLGL::Input LLGL::RenderSystem LLGL::RenderSystemChild LLGL::Surface LLGL::Window::EventListener LLGL::XRSession LLGL::XRSwapChain LLGL::XRSystem

Public Member Functions

virtual bool IsInstanceOf (int id) const
 Returns true if this object is an instance of the specified interface.
Public Member Functions inherited from LLGL::NonCopyable
 NonCopyable (const NonCopyable &)=delete
NonCopyable & operator= (const NonCopyable &)=delete
virtual ~NonCopyable ()=default

Additional Inherited Members

Protected Member Functions inherited from LLGL::NonCopyable
 NonCopyable ()=default

Detailed Description

Base class for all interfaces in LLGL.

See also
Display
RenderSystem
RenderSystemChild
Surface

Member Function Documentation

◆ IsInstanceOf()

virtual bool LLGL::Interface::IsInstanceOf ( int id) const
virtual

Returns true if this object is an instance of the specified interface.

Remarks
Can be used for a more efficient run-time type information (RTTI) than the default C++ mechanism.
This can be used like in the following example:
LLGL::Surface* mySurface = ...
{
LLGL::Window* myWindow = static_cast<LLGL::Window*>(mySurface);
...
}
virtual bool IsInstanceOf(int id) const
Returns true if this object is an instance of the specified interface.
The Surface interface is the base interface for Window (on Desktop platforms) and Canvas (on mobile p...
Definition Surface.h:32
Window interface for desktop platforms.
Definition Window.h:32
@ Window
Extends Interface.
Definition InterfaceID.h:34
See also
LLGL::CastTo

The documentation for this class was generated from the following file: