|
Avara3D 0.2.0
C++ API reference
|
Abstract rendering destination used by VisualWorld. More...
#include <a3d/render/context/RenderContext.h>
Public Types | |
| enum class | Antialiasing : uint8_t { None = 0 , Msaa2X = 2 , Msaa4X = 4 , Msaa8X = 8 , Msaa16X = 16 } |
| Selects multisample antialiasing requested for the rendering target. More... | |
Public Member Functions | |
| virtual bool | vSyncEnabled () const =0 |
| Returns whether presentation synchronization is enabled for this context. More... | |
| virtual void | vSyncEnabled (bool enabled)=0 |
| Enables or disables presentation synchronization when supported by the concrete context. More... | |
| Antialiasing | antialiasing () const |
| Returns the antialiasing mode selected when the rendering target was created. More... | |
| std::unique_ptr< Image > | snapshot () const |
| Captures the current framebuffer into a new Image at framebuffer resolution. More... | |
| VisualWorld * | visualWorld () const |
| Returns the attached VisualWorld, or nullptr if none is attached. More... | |
Abstract rendering destination used by VisualWorld.
A RenderContext owns the renderer resources associated with a rendering target. A VisualWorld constructed with the context registers itself with the context; visualWorld() exposes the currently registered attachment non-owningly.
Definition at line 34 of file RenderContext.h.
|
strong |
Selects multisample antialiasing requested for the rendering target.
| Enumerator | |
|---|---|
| None | No multisample antialiasing. |
| Msaa2X | Two samples per pixel. |
| Msaa4X | Four samples per pixel. |
| Msaa8X | Eight samples per pixel. |
| Msaa16X | Sixteen samples per pixel. |
Definition at line 40 of file RenderContext.h.
| Antialiasing a3d::RenderContext::antialiasing | ( | ) | const |
Returns the antialiasing mode selected when the rendering target was created.
| std::unique_ptr< Image > a3d::RenderContext::snapshot | ( | ) | const |
| VisualWorld * a3d::RenderContext::visualWorld | ( | ) | const |
Returns the attached VisualWorld, or nullptr if none is attached.
|
pure virtual |
Returns whether presentation synchronization is enabled for this context.
Implemented in a3d::Window.
|
pure virtual |
Enables or disables presentation synchronization when supported by the concrete context.
Implemented in a3d::Window.