|
OpenPolygon
1.0.0
OpenPolygon is a Rendering Engine
|
The FrameBuffer class. More...
#include <framebuffer.h>
Public Member Functions | |
| FrameBuffer (int width, int height) | |
| void | ReadFrameBuffer (void) |
| ReadFrameBuffer. More... | |
| void | DrawFrameBuffer (void) |
| DrawFrameBuffer. More... | |
| void | BindFrameBuffer (void) |
| BindFrameBuffer. More... | |
| void | Unbind () |
| Unbind. | |
| void | BindTextureArray (Texture *texture, GLenum attachment) |
| FrameBuffer::BindTextureArray. More... | |
| void | AddTexture (Texture *texture, GLenum attachment) |
| void | BindTextureLayer (Texture *texture, int layer, GLenum attachment) |
| FrameBuffer::BindTextureLayer. More... | |
| void | BindTexture (Texture *texture, GLenum attachment) |
| FrameBuffer::BindTexture. More... | |
| void | BindRenderBuffer (Texture *texture, GLenum attachment) |
| FrameBuffer::BindRenderBuffer. More... | |
| Texture * | getRenderBuffer (GLenum attachment) |
| getRenderBuffer More... | |
| Texture * | getTexture (GLenum attachment) |
| getTexture More... | |
| int | getFrameWidth (void) |
| getFrameWidth More... | |
| int | getFrameHeight (void) |
| getFrameHeight More... | |
The FrameBuffer class.
| void FrameBuffer::BindFrameBuffer | ( | void | ) |
BindFrameBuffer.
Bind Framebuffer - render to texture
| void FrameBuffer::BindRenderBuffer | ( | Texture * | texture, |
| GLenum | attachment | ||
| ) |
FrameBuffer::BindRenderBuffer.
Attachments:
-> diffuse : GL_COLOR_ATTACHMENT0 -> position : GL_COLOR_ATTACHMENT1 -> normals : GL_COLOR_ATTACHMENT2 -> depth : GL_DEPTH_ATTACHMENT
| texture | |
| attachment | -> diffuse : GL_COLOR_ATTACHMENT0 -> position : GL_COLOR_ATTACHMENT1 -> normals : GL_COLOR_ATTACHMENT2 -> depth : GL_DEPTH_ATTACHMENT |
| texture | |
| attachment |
| void FrameBuffer::BindTexture | ( | Texture * | texture, |
| GLenum | attachment | ||
| ) |
Attachments:
-> diffuse : GL_COLOR_ATTACHMENT0 -> position : GL_COLOR_ATTACHMENT1 -> normals : GL_COLOR_ATTACHMENT2
| texture | |
| attachment | -> diffuse : GL_COLOR_ATTACHMENT0 -> position : GL_COLOR_ATTACHMENT1 -> normals : GL_COLOR_ATTACHMENT2 -> depth : GL_DEPTH_ATTACHMENT |
| texture | |
| attachment |
| void FrameBuffer::BindTextureArray | ( | Texture * | texture, |
| GLenum | attachment | ||
| ) |
FrameBuffer::BindTextureArray.
Texture : Texture Array Attachments : FB_TEXTURE_ARRAY0 + i
| texture | |
| attachment |
| void FrameBuffer::BindTextureLayer | ( | Texture * | texture, |
| int | layer, | ||
| GLenum | attachment | ||
| ) |
| void FrameBuffer::DrawFrameBuffer | ( | void | ) |
DrawFrameBuffer.
Enable Draw Mode
| int FrameBuffer::getFrameHeight | ( | void | ) |
getFrameHeight
Return Frame height size
| int FrameBuffer::getFrameWidth | ( | void | ) |
getFrameWidth
Return Frame width size
| Texture * FrameBuffer::getRenderBuffer | ( | GLenum | attachment | ) |
getRenderBuffer
Return RenderBuffer when is Binded
| attachment |
| Texture * FrameBuffer::getTexture | ( | GLenum | attachment | ) |
| void FrameBuffer::ReadFrameBuffer | ( | void | ) |
ReadFrameBuffer.
Enable Read Mode
1.8.10