![]() |
VMTK
|
Public Types | |
enum | Attachment { NoAttachment, DepthStencil, Depth, Stencil } |
constructs a FrameBufferObject without arguments More... | |
Public Member Functions | |
vmtkFrameBufferObject (int width, int height, GLenum target=GL_TEXTURE_2D, Attachment option=NoAttachment) | |
GLuint | getFbo () const |
gets the Fbo name. More... | |
GLuint | getTexture () const |
gets the texture bound to the FBO. More... | |
GLuint | getDepthTexture () const |
gets the depth texture bound to the FBO. More... | |
bool | binding () |
binds the FBO to the framebuffer target. More... | |
bool | releasing () |
releases the FBO from the framebuffer target. More... | |
void | resizing (int width, int height) |
resizing FrameBufferObject dimensions ... It does not work!!!! (Ting) More... | |
Public Attributes | |
GLenum | target |
Attachment | attachment |
Definition at line 18 of file vmtkFrameBufferObject.h.
constructs a FrameBufferObject without arguments
Possible images to be attached to the FBO
Enumerator | |
---|---|
NoAttachment | no attachment |
DepthStencil | depth and stencil buffer |
Depth | depth buffer |
Stencil | stencil buffer |
Definition at line 29 of file vmtkFrameBufferObject.h.
bool vmtkFrameBufferObject::binding | ( | ) |
binds the FBO to the framebuffer target.
Definition at line 43 of file vmtkFrameBufferObject.cpp.
GLuint vmtkFrameBufferObject::getDepthTexture | ( | ) | const |
gets the depth texture bound to the FBO.
Definition at line 33 of file vmtkFrameBufferObject.cpp.
GLuint vmtkFrameBufferObject::getFbo | ( | ) | const |
GLuint vmtkFrameBufferObject::getTexture | ( | ) | const |
gets the texture bound to the FBO.
Definition at line 28 of file vmtkFrameBufferObject.cpp.
bool vmtkFrameBufferObject::releasing | ( | ) |
releases the FBO from the framebuffer target.
Definition at line 51 of file vmtkFrameBufferObject.cpp.
void vmtkFrameBufferObject::resizing | ( | int | width, |
int | height | ||
) |
resizing FrameBufferObject dimensions ... It does not work!!!! (Ting)
[in] | width | buffer image width |
[in] | height | buffer image height |
Definition at line 59 of file vmtkFrameBufferObject.cpp.
Attachment vmtkFrameBufferObject::attachment |
attachment point to which an image from texture should be attached
Definition at line 42 of file vmtkFrameBufferObject.h.
GLenum vmtkFrameBufferObject::target |
target of the image to be bound to the attachment point in the FBO
Definition at line 41 of file vmtkFrameBufferObject.h.