VMTK
vmtkFrameBufferObject Class Reference

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
 

Detailed Description

Definition at line 18 of file vmtkFrameBufferObject.h.

Member Enumeration Documentation

◆ Attachment

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.

Member Function Documentation

◆ binding()

bool vmtkFrameBufferObject::binding ( )

binds the FBO to the framebuffer target.

Returns
true (successful) or false (failed)

Definition at line 43 of file vmtkFrameBufferObject.cpp.

Here is the caller graph for this function:

◆ getDepthTexture()

GLuint vmtkFrameBufferObject::getDepthTexture ( ) const

gets the depth texture bound to the FBO.

Returns
the texture object name

Definition at line 33 of file vmtkFrameBufferObject.cpp.

◆ getFbo()

GLuint vmtkFrameBufferObject::getFbo ( ) const

gets the Fbo name.

Returns
the FBO name

Definition at line 38 of file vmtkFrameBufferObject.cpp.

◆ getTexture()

GLuint vmtkFrameBufferObject::getTexture ( ) const

gets the texture bound to the FBO.

Returns
the texture object name

Definition at line 28 of file vmtkFrameBufferObject.cpp.

Here is the caller graph for this function:

◆ releasing()

bool vmtkFrameBufferObject::releasing ( )

releases the FBO from the framebuffer target.

Returns
true (successful) or false (failed)

Definition at line 51 of file vmtkFrameBufferObject.cpp.

Here is the caller graph for this function:

◆ resizing()

void vmtkFrameBufferObject::resizing ( int  width,
int  height 
)

resizing FrameBufferObject dimensions ... It does not work!!!! (Ting)

Parameters
[in]widthbuffer image width
[in]heightbuffer image height

Definition at line 59 of file vmtkFrameBufferObject.cpp.

Member Data Documentation

◆ attachment

Attachment vmtkFrameBufferObject::attachment

attachment point to which an image from texture should be attached

Definition at line 42 of file vmtkFrameBufferObject.h.

◆ target

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.


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