Jopnal Engine  alpha 0.4
Simple Component Based 2D/3D Game Engine
Public Member Functions | List of all members
jop::MainRenderTarget Class Reference

#include <MainRenderTarget.hpp>

Inheritance diagram for jop::MainRenderTarget:
jop::RenderTexture jop::Subsystem jop::RenderTarget

Public Member Functions

 MainRenderTarget (const Window &window)
 Constructor. More...
 
void preUpdate (const float deltaTime) override
 Update. More...
 
- Public Member Functions inherited from jop::RenderTexture
 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...
 
TexturegetTextureAttachment (const Slot slot)
 Get a texture attachment. More...
 
const TexturegetTextureAttachment (const Slot slot) const
 Get a texture attachment. More...
 
- Public Member Functions inherited from jop::RenderTarget
 RenderTarget ()
 Constructor. More...
 
virtual ~RenderTarget ()=0
 Virtual destructor. More...
 
void clear (const unsigned int bits)
 Clear the selected buffers. More...
 
RenderTargetsetClearColor (const Color &color)
 Set the clear color. More...
 
Color getClearColor () const
 Get the clear color. More...
 
RenderTargetsetClearDepth (const float depth)
 Set the clear depth. More...
 
float getClearDepth () const
 Get the clear depth value. More...
 
RenderTargetsetClearStencil (const int stencil)
 Set the clear stencil. More...
 
int getClearStencil () const
 Get the clear stencil value. More...
 
- Public Member Functions inherited from jop::Subsystem
 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...
 
SubsystemsetActive (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

- Public Types inherited from jop::RenderTexture
enum  Slot {
  Slot::Depth, Slot::Stencil, Slot::DepthStencil, Slot::Color0,
  Slot::__Count
}
 
- Public Types inherited from jop::RenderTarget
enum  { ColorBit = 1, DepthBit = 1 << 1, StencilBit = 1 << 2, AllBit = ColorBit | DepthBit | StencilBit }
 
- Static Public Member Functions inherited from jop::RenderTexture
static void unbind ()
 Unbind the currently bound draw frame buffer. More...
 
static unsigned int getMaximumRenderbufferSize ()
 Get the maximum render buffer size. More...
 
- Protected Member Functions inherited from jop::Subsystem
virtual Message::Result receiveMessage (const Message &message)
 Receive a message. More...
 
- Protected Attributes inherited from jop::RenderTarget
std::recursive_mutex m_mutex
 Mutex. More...
 

Detailed Description

Definition at line 37 of file MainRenderTarget.hpp.

Constructor & Destructor Documentation

jop::MainRenderTarget::MainRenderTarget ( const Window window)

Constructor.

Parameters
windowReference to the main window

Member Function Documentation

void jop::MainRenderTarget::preUpdate ( const float  deltaTime)
overridevirtual

Update.

This will simply clear the back buffer.

Parameters
deltaTimeThe delta time, not used

Reimplemented from jop::Subsystem.


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