![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <MainRenderTarget.hpp>
Public Member Functions | |
MainRenderTarget (const Window &window) | |
Constructor. More... | |
void | preUpdate (const float deltaTime) override |
Update. More... | |
![]() | |
RenderTexture () | |
Constructor. More... | |
~RenderTexture () override | |
Destructor. More... | |
bool | addTextureAttachment (const Slot slot, const Texture::Format format) |
Add a texture attachment. More... | |
bool | addCubemapAttachment (const Slot slot, const Texture::Format format) |
Add a cube map attachment. More... | |
bool | addRenderbufferAttachment (const Slot slot, const Texture::Format format) |
Add a render buffer attachment. More... | |
void | destroy (const bool framebuffer, const bool attachments) |
Destroy this frame buffer. More... | |
bool | bind () const override |
Bind this frame buffer for drawing. More... | |
bool | bindRead () const |
Bind this frame buffer for reading. More... | |
bool | bindDraw () const |
Bind this frame buffer for drawing. More... | |
bool | bindCubeFace (const Slot slot, const Cubemap::Face face) const |
Bind cube map face. More... | |
void | setSize (const glm::uvec2 &size) |
Set the size for attachments. More... | |
glm::uvec2 | getSize () const override |
Get the frame buffer texture size. More... | |
bool | isValid () const |
Check if this frame buffer is valid. More... | |
Texture * | getTextureAttachment (const Slot slot) |
Get a texture attachment. More... | |
const Texture * | getTextureAttachment (const Slot slot) const |
Get a texture attachment. More... | |
![]() | |
RenderTarget () | |
Constructor. More... | |
virtual | ~RenderTarget ()=0 |
Virtual destructor. More... | |
void | clear (const unsigned int bits) |
Clear the selected buffers. More... | |
RenderTarget & | setClearColor (const Color &color) |
Set the clear color. More... | |
Color | getClearColor () const |
Get the clear color. More... | |
RenderTarget & | setClearDepth (const float depth) |
Set the clear depth. More... | |
float | getClearDepth () const |
Get the clear depth value. More... | |
RenderTarget & | setClearStencil (const int stencil) |
Set the clear stencil. More... | |
int | getClearStencil () const |
Get the clear stencil value. More... | |
![]() | |
Subsystem (const uint32 ID) | |
Constructor. More... | |
virtual | ~Subsystem ()=0 |
Virtual destructor. More... | |
virtual void | postUpdate (const float deltaTime) |
Post-update. More... | |
virtual void | draw () |
Draw. More... | |
Message::Result | sendMessage (const Message &message) |
Function to handle messages. More... | |
Subsystem & | setActive (const bool active) |
Set this sub system active. More... | |
bool | isActive () const |
Check if this sub system is active. More... | |
uint32 | getID () const |
Get the ID. More... | |
Additional Inherited Members | |
![]() | |
enum | Slot { Slot::Depth, Slot::Stencil, Slot::DepthStencil, Slot::Color0, Slot::__Count } |
![]() | |
enum | { ColorBit = 1, DepthBit = 1 << 1, StencilBit = 1 << 2, AllBit = ColorBit | DepthBit | StencilBit } |
![]() | |
static void | unbind () |
Unbind the currently bound draw frame buffer. More... | |
static unsigned int | getMaximumRenderbufferSize () |
Get the maximum render buffer size. More... | |
![]() | |
virtual Message::Result | receiveMessage (const Message &message) |
Receive a message. More... | |
![]() | |
std::recursive_mutex | m_mutex |
Mutex. More... | |
Definition at line 37 of file MainRenderTarget.hpp.
jop::MainRenderTarget::MainRenderTarget | ( | const Window & | window | ) |
Constructor.
window | Reference to the main window |
|
overridevirtual |
Update.
This will simply clear the back buffer.
deltaTime | The delta time, not used |
Reimplemented from jop::Subsystem.