Rasterfarm-SDK
|
#include <framebuffer.h>
Classes | |
class | Attribute |
class | ExportTask |
Public Member Functions | |
FrameBuffer (const Texture::Attribute &textureAttribute, Raster::Scene *pScene=nullptr) | |
FrameBuffer (Texture *pTexture, Raster::Scene *pScene=nullptr) | |
virtual | ~FrameBuffer () |
void | setAttribute (const Texture::Attribute &textureAttribute) |
bool | hasScene (Raster::Scene *pScene) |
void | addScene (Raster::Scene *pScene) |
void | removeScene (Raster::Scene *pScene) |
void | init () |
const Vector4f & | getBackgroundColor () |
void | setBackgroundColor (const Vector4f &color) |
void | addTexture (Texture *pTexture) |
void | removeImage (TextureHandle handle) |
TextureHandle | getBoundImage () |
bool | hasImage (TextureHandle handle) |
bool | hasImage (Texture *pTexture) |
void | bindFramebuffer (TextureHandle handle) |
bool | checkStatus () |
void | setSize (uint width, uint height) |
FrameBufferHandle | getHandle (TextureHandle handle) |
Attribute & | getAttribute () |
OutputAttachment | getTextureAttachmentPoint () const |
uint | getMask () const |
RenderBufferHandle | getColorRenderBuffer () const |
RenderBufferHandle | getDepthRenderBuffer () const |
RenderBufferHandle | getStencilRenderBuffer () const |
FrameBuffer (const Engine::Texture::Attribute &textureAttribute, Raster::Scene *pScene=nullptr) | |
FrameBuffer (Engine::Texture *pTexture, Raster::Scene *pScene=nullptr) | |
FrameBuffer (const Attribute &attribute, bool display, Raster::Scene *pScene=nullptr) | |
virtual | ~FrameBuffer () |
void | setAttribute (const Texture::Attribute &textureAttribute) |
RenderBuffer * | getRenderBuffer () |
bool | hasScene (Raster::Scene *pScene) |
void | addScene (Raster::Scene *pScene) |
void | removeScene (Raster::Scene *pScene) |
const Vector4f & | getBackgroundColor () |
void | setBackgroundColor (const Vector4f &color) |
bool | hasImage (ImageMemory *pImage) |
bool | hasImage (Texture *pTexture) |
FrameBufferHandle | getFrameBufferHandle (ImageMemory *pImage) |
FrameBufferHandle | getFrameBufferHandle (const HeapArray< ImageMemory * > &pImage) |
FrameBufferHandle | updateFrameBufferHandle (const HeapArray< ImageMemory * > &pImage) |
void | addImage (ImageMemory *pImage) |
void | addTexture (Texture *pTexture) |
void | removeImage (ImageMemory *pImage) |
ImageMemory * | getBoundImage () |
void | bindFramebuffer (ImageMemory *pTexture) |
bool | checkStatus () |
ImageMemory * | getImage () |
FrameBufferHandle | getHandle (ImageMemory *pTexture) |
Attribute & | getAttribute () |
uint | getMask () const |
RenderBuffer * | getRenderBuffer () const |
void | createPipelines (Raster::GeometricBase *pGeometricObject) |
void | createPipelines (Raster::Scene *pScene) |
void | createPipelines (FrameBufferHandle handle) |
void | destroyPipelines (FrameBufferHandle handle) |
void | exportPngImage (ImageMemory *pImageMemory, const char *filename) |
Static Public Member Functions | |
static void | invalidate (BufferTarget target, uint numAttachments, const OutputAttachment *attachments) |
static void | invalidate (BufferTarget target, uint numAttachments, const OutputAttachment *attachments) |
Protected Attributes | |
Attribute | attribute |
List< Raster::Scene * > | pSceneList |
Vector4f | backgroundColor |
UnorderedMap< TextureHandle, FrameBufferHandle > | frameBufferHandle |
RenderBufferHandle | colorRenderBuffer |
RenderBufferHandle | depthRenderBuffer |
RenderBufferHandle | stencilRenderBuffer |
TextureHandle | textureHandle |
OutputAttachment | textureAttachmentPoint |
uint | mask |
RenderBuffer * | pRenderBuffer |
ImageMemory * | pBoundImage |
UnorderedMap< ImageMemory *, FrameBufferHandle > | frameBufferHandle |
Friends | |
class | RenderBuffer |
class | Raster::Scene |
FrameBuffer::FrameBuffer | ( | const Texture::Attribute & | textureAttribute, |
Raster::Scene * | pScene = nullptr ) |
FrameBuffer::FrameBuffer | ( | Texture * | pTexture, |
Raster::Scene * | pScene = nullptr ) |
|
virtual |
FrameBuffer::FrameBuffer | ( | const Engine::Texture::Attribute & | textureAttribute, |
Raster::Scene * | pScene = nullptr ) |
Construct a FrameBuffer object using a Texture's attributes.
A | Texture::Attribute object. |
An | optional Scene object. |
FrameBuffer::FrameBuffer | ( | Engine::Texture * | pTexture, |
Raster::Scene * | pScene = nullptr ) |
Construct a FrameBuffer object using a Texture.
A | Texture::Attribute object. |
An | optional Scene object. |
FrameBuffer::FrameBuffer | ( | const Attribute & | attribute, |
bool | display, | ||
Raster::Scene * | pScene = nullptr ) |
Construct a FrameBuffer object using a FrameBuffer's attributes.
A | FrameBuffer::Attribute object. |
True | is targeting a display. |
An | optional Scene object. |
|
virtual |
void FrameBuffer::addImage | ( | ImageMemory * | pImage | ) |
void FrameBuffer::addScene | ( | Raster::Scene * | pScene | ) |
Notifies the Scene so it can notify this RenderPass of new Programs and respective GraphicsPipelines.
void FrameBuffer::addScene | ( | Raster::Scene * | pScene | ) |
Notifies the Scene so it can notify this RenderPass of new Programs and respective GraphicsPipelines.
void FrameBuffer::addTexture | ( | Texture * | pTexture | ) |
void FrameBuffer::addTexture | ( | Texture * | pTexture | ) |
void FrameBuffer::bindFramebuffer | ( | ImageMemory * | pTexture | ) |
ImageMemory | object to bind for rendering, or nullptr to unbind currently bound ImageMemory object. |
void FrameBuffer::bindFramebuffer | ( | TextureHandle | handle | ) |
bool FrameBuffer::checkStatus | ( | ) |
bool FrameBuffer::checkStatus | ( | ) |
void FrameBuffer::createPipelines | ( | FrameBufferHandle | handle | ) |
void FrameBuffer::createPipelines | ( | Raster::GeometricBase * | pGeometricObject | ) |
void FrameBuffer::createPipelines | ( | Raster::Scene * | pScene | ) |
void FrameBuffer::destroyPipelines | ( | FrameBufferHandle | handle | ) |
void FrameBuffer::exportPngImage | ( | ImageMemory * | pImageMemory, |
const char * | filename ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
FrameBufferHandle FrameBuffer::getFrameBufferHandle | ( | const HeapArray< ImageMemory * > & | pImage | ) |
FrameBufferHandle FrameBuffer::getFrameBufferHandle | ( | ImageMemory * | pImage | ) |
FrameBufferHandle FrameBuffer::getHandle | ( | ImageMemory * | pTexture | ) |
FrameBufferHandle FrameBuffer::getHandle | ( | TextureHandle | handle | ) |
|
inline |
|
inline |
|
inline |
|
inline |
RenderBuffer * FrameBuffer::getRenderBuffer | ( | ) | const |
|
inline |
|
inline |
bool FrameBuffer::hasImage | ( | ImageMemory * | pImage | ) |
bool FrameBuffer::hasImage | ( | Texture * | pTexture | ) |
bool FrameBuffer::hasImage | ( | Texture * | pTexture | ) |
bool FrameBuffer::hasImage | ( | TextureHandle | handle | ) |
bool FrameBuffer::hasScene | ( | Raster::Scene * | pScene | ) |
bool FrameBuffer::hasScene | ( | Raster::Scene * | pScene | ) |
void FrameBuffer::init | ( | ) |
|
static |
|
static |
void FrameBuffer::removeImage | ( | ImageMemory * | pImage | ) |
void FrameBuffer::removeImage | ( | TextureHandle | handle | ) |
void FrameBuffer::removeScene | ( | Raster::Scene * | pScene | ) |
Notifies the Scene so it can notify this RenderPass of new Programs and respective GraphicsPipelines.
void FrameBuffer::removeScene | ( | Raster::Scene * | pScene | ) |
Notifies the Scene so it can notify this RenderPass of new Programs and respective GraphicsPipelines.
void FrameBuffer::setAttribute | ( | const Texture::Attribute & | textureAttribute | ) |
void FrameBuffer::setAttribute | ( | const Texture::Attribute & | textureAttribute | ) |
|
inline |
void FrameBuffer::setBackgroundColor | ( | const Vector4f & | color | ) |
void FrameBuffer::setSize | ( | uint | width, |
uint | height ) |
FrameBufferHandle FrameBuffer::updateFrameBufferHandle | ( | const HeapArray< ImageMemory * > & | pImage | ) |
|
friend |
|
friend |
|
protected |
|
protected |
Backgound color for the given scene.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The Scenes that are currently rendering to this FrameBuffer.
|
protected |
|
protected |
|
protected |