MxEngine
Public Member Functions | List of all members
MxEngine::FrameBuffer Class Reference

Public Member Functions

 FrameBuffer (const FrameBuffer &)=delete
 
 FrameBuffer (FrameBuffer &&) noexcept
 
FrameBufferoperator= (const FrameBuffer &)=delete
 
FrameBufferoperator= (FrameBuffer &&) noexcept
 
void CopyFrameBufferContents (const FrameBuffer &framebuffer) const
 
void CopyFrameBufferContents (int screenWidth, int screenHeight) const
 
void Validate () const
 
void DetachRenderTarget ()
 
bool HasTextureAttached () const
 
bool HasCubeMapAttached () const
 
void UseDrawBuffers (size_t count) const
 
size_t GetWidth () const
 
size_t GetHeight () const
 
void Bind () const
 
void Unbind () const
 
BindableId GetNativeHandle () const
 
template<template< typename, typename > typename Resource, typename Factory >
void AttachTexture (const Resource< Texture, Factory > &texture, Attachment attachment=Attachment::COLOR_ATTACHMENT0)
 
template<template< typename, typename > typename Resource, typename Factory >
void AttachTextureExtra (const Resource< Texture, Factory > &texture, Attachment attachment)
 
template<template< typename, typename > typename Resource, typename Factory >
void AttachCubeMapExtra (const Resource< CubeMap, Factory > &cubemap, Attachment attachment)
 
template<template< typename, typename > typename Resource, typename Factory >
void AttachCubeMap (const Resource< CubeMap, Factory > &cubemap, Attachment attachment=Attachment::COLOR_ATTACHMENT0)
 
template<template< typename, typename > typename Resource, typename Factory >
Resource< Texture, Factory > GetAttachedTexture () const
 
template<template< typename, typename > typename Resource, typename Factory >
Resource< CubeMap, Factory > GetAttachedCubeMap () const
 

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