Kinetic Visualization
 All Classes Functions Variables Pages
Public Types | Public Member Functions | Public Attributes
FBO Class Reference
Inheritance diagram for FBO:
Texture

List of all members.

Public Types

typedef boost::shared_ptr< FBOFBOPtr
- Public Types inherited from Texture
enum  { TT_NORMAL, TT_MIPMAP, TT_ANISOTRPIC }
enum  { CM_AFFINE, CM_PERSPECTIVE, CM_QUANTITY = 2 }
enum  { FM_NEAREST = 0x2600, FM_LINEAR = 0x2601, FM_QUANTITY = 2 }
enum  {
  MM_NEAREST = 0x2600, MM_LINEAR = 0x2601, MM_NEAREST_NEAREST = 0x2700, MM_NEAREST_LINEAR = 0x2702,
  MM_LINEAR_NEAREST = 0x2701, MM_LINEAR_LINEAR = 0x2703, MM_QUANTITY = 6
}
enum  {
  WM_CLAMP = 0x2900, WM_REPEAT = 0x2901, WM_CLAMP_BORDER = 0x812D, WM_CLAMP_EDGE = 0x812F,
  WM_MIRRORED_REPEAT = 0x8370, WM_QUANTITY = 5
}
enum  { TG_NONE, TG_ENVIRONMENT_MAP, TG_PROJECTED_TEXTURE, TG_QUANTITY }
enum  {
  AM_REPLACE = 0x1E01, AM_DECAL = 0x2101, AM_MODULATE = 0x2100, AM_BLEND = 0x0BE2,
  AM_ADD = 0x0104, AM_COMBINE = 0x8570, AM_QUANTITY = 6
}
enum  {
  ACF_REPLACE = 0x1E01, ACF_MODULATE = 0x2100, ACF_ADD = 0x0104, ACF_ADD_SIGNED = 0x8574,
  ACF_SUBTRACT = 0x84E7, ACF_INTERPOLATE = 0x8575, ACF_DOT3_RGB = 0x86AE, ACF_DOT3_RGBA = 0x86AF,
  ACF_QUANTITY = 8
}
enum  {
  ACS_TEXTURE = 0x1702, ACS_PRIMARY_COLOR = 0x8577, ACS_CONSTANT = 0x8576, ACS_PREVIOUS = 0x8578,
  ACS_QUANTITY = 4
}
enum  {
  ACO_SRC_COLOR = 0x0300, ACO_ONE_MINUS_SRC_COLOR = 0x0301, ACO_SRC_ALPHA = 0x0302, ACO_ONE_MINUS_SRC_ALPHA = 0x0303,
  ACO_QUANTITY = 4
}
enum  { ACSC_ONE, ACSC_TWO, ACSC_FOUR, ACSC_QUANTITY }
typedef boost::shared_ptr
< Texture
TexturePtr

Public Member Functions

 FBO ()
 FBO (int width, int height, bool bingbong=false, unsigned int internal_format=GL_RGBA32F, unsigned int format=GL_RGBA, unsigned int interpolation_min=GL_LINEAR, unsigned int interpolation_max=GL_LINEAR, int type=0, unsigned int num_texture=1, bool helper=false)
 FBO (int width, int height, int depth, bool bingbong=false, unsigned int internal_format=GL_RGBA32F, unsigned int format=GL_RGBA, unsigned int interpolation_min=GL_LINEAR, unsigned int interpolation_max=GL_LINEAR, int type=0)
 ~FBO (void)
void CheckFBO (GLenum FBOstatus)
void Bind ()
void Bind (int z)
void BindTexture (int z)
void Unbind ()
void BindColorAttachementAtTextureAndEnable (unsigned int i)
void DrawBuffers ()
int GetWidth ()
int GetHeight ()
int GetDepth ()
- Public Member Functions inherited from Texture
 Texture ()
 Texture (unsigned int dimensions, bool pingbong=false)
 Texture (Img *pkImage, bool pingbong=false)
void SetImage (Img *pImage)
ImgGetImage () const
unsigned int GetTexName ()
unsigned int GetTexName2 ()
void SetTexName (unsigned int tex)

Public Attributes

GLuint fbo1
GLuint fbo2
GLuint depthbuffer2
GLuint depthbuffer1
std::vector< GLenum > buffers
int g_iWidth
int g_iHeight
int g_iDepth
unsigned int m_format
unsigned int m_internal_format
unsigned int m_interpolation_min
unsigned int m_interpolation_max
int m_type
unsigned int m_num_texture
std::vector< Texture::TexturePtr > multi_outputs
- Public Attributes inherited from Texture
int TextureTyp
int Correction
int Filter
int Mipmap
glm::vec4 BorderColor
int CoordU
int CoordV
int Texgen
glm::vec4 BlendColor
int Apply
int CombineFuncRGB
int CombineFuncAlpha
int CombineSrc0RGB
int CombineSrc1RGB
int CombineSrc2RGB
int CombineSrc0Alpha
int CombineSrc1Alpha
int CombineSrc2Alpha
int CombineOp0RGB
int CombineOp1RGB
int CombineOp2RGB
int CombineOp0Alpha
int CombineOp1Alpha
int CombineOp2Alpha
int CombineScaleRGB
int CombineScaleAlpha
bool m_pingbong
unsigned int current_texture
unsigned int m_dimension
std::string texturename
unsigned int m_width
unsigned int m_height
unsigned int m_depth

Additional Inherited Members

- Static Public Attributes inherited from Texture
static std::vector< Texture * > textures
- Protected Attributes inherited from Texture
unsigned int texname
unsigned int texname2
Imgm_pImage

Constructor & Destructor Documentation

FBO::FBO ( )

Standardconstructor FBO

FBO::FBO ( int  width,
int  height,
bool  bingbong = false,
unsigned int  internal_format = GL_RGBA32F,
unsigned int  format = GL_RGBA,
unsigned int  interpolation_min = GL_LINEAR,
unsigned int  interpolation_max = GL_LINEAR,
int  type = 0,
unsigned int  num_texture = 1,
bool  helper = false 
)

Constructor

Parameters:
width..Breite
height..Höhe
bingbong..Create Pingbong FBV
internal_format..internal format
interpolation_min.. interpolation min
interpolation_max.. interpolation max
type... Interpolation Type
num_textureHelper Variable
helperHelper Variable
FBO::FBO ( int  width,
int  height,
int  depth,
bool  bingbong = false,
unsigned int  internal_format = GL_RGBA32F,
unsigned int  format = GL_RGBA,
unsigned int  interpolation_min = GL_LINEAR,
unsigned int  interpolation_max = GL_LINEAR,
int  type = 0 
)

Constructor

Parameters:
width..Breite
height..Höhe
bingbong..Create Pingbong FBV
internal_format..internal format
interpolation_min.. interpolation min
interpolation_max.. interpolation max
helperHelper Variable
FBO::~FBO ( void  )

Standarddeconstructor


Member Function Documentation

void FBO::Bind ( )

Bind FBO

void FBO::Bind ( int  z)

Bind FBO

Parameters:
zz variable
void FBO::BindColorAttachementAtTextureAndEnable ( unsigned int  i)

Bind Color Attachement

void FBO::BindTexture ( int  z)

Bind Texture

Parameters:
zz variable
void FBO::CheckFBO ( GLenum  FBOstatus)
inline

Check FBO

int FBO::GetDepth ( )

Returns Depth

Parameters:
depth
int FBO::GetHeight ( )

Returns height

Parameters:
height
int FBO::GetWidth ( )

Returns width

Parameters:
width
void FBO::Unbind ( )

Unbind: Entbindet den FBO.


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