arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

PBuffer Class Reference

#include <pbuffer.h>

List of all members.


Detailed Description

PBuffer class.

Definition at line 57 of file pbuffer.h.

Public Member Functions

 PBuffer (int xDim, int yDim, unsigned int mode, PBuffRenCTX renderCTX=NULL)
virtual ~PBuffer ()
void enable (bool saveState=false)
void disable ()
void bind ()
void release ()
void setSurface (GLenum surface)
void setMipLevel (int level)
void setCubeFace (GLenum cubeFace)
void dimen (int &xDim, int &yDim) const
unsigned int mode () const
PBuffRenCTX renderCTX () const
bool hasRendToTex () const
bool hasMipMap () const
bool hasCube () const
int numSurfaces () const

Static Public Member Functions

void clearCache ()
int numSurfaces (unsigned int mode)


Constructor & Destructor Documentation

PBuffer::PBuffer int  xDim,
int  yDim,
unsigned int  mode,
PBuffRenCTX  renderCTX = NULL
 

Definition at line 27 of file pbuffer.cpp.

References mode.

PBuffer::~PBuffer  )  [virtual]
 

Definition at line 64 of file pbuffer.cpp.

References glXDestroyPbuffer, and glXGetCurrentDisplay.


Member Function Documentation

void PBuffer::bind  ) 
 

Definition at line 200 of file pbuffer.cpp.

Referenced by glift::PBuffGlift::bindDef().

void PBuffer::clearCache  )  [inline, static]
 

Definition at line 71 of file pbuffer.h.

void PBuffer::dimen int &  xDim,
int &  yDim
const [inline]
 

Definition at line 90 of file pbuffer.h.

Referenced by glift::PBuffGlift::dimen().

void PBuffer::disable  ) 
 

make sure the pbuffer has been initialized

Linux

Definition at line 288 of file pbuffer.cpp.

References glDrawBuffer(), glErr(), glReadBuffer(), glXGetCurrentContext(), glXGetCurrentDisplay, and glXMakeCurrent().

Referenced by glift::PBuffGlift::disable().

void PBuffer::enable bool  saveState = false  ) 
 

Avoid the ctxt switch if we are already current.

Always-Saved state /// * \/\/\/\/ AEL 5/23/02 from here down based on Milan's code

set read/write context to pbuffer

draw & read the front m_buffer of pbuffer

resize view port. generally you'll want to set this to the size of your pbuffer so that you render to the entire pbuffer but there are cases where you might want to render to just a sub-region of the pbuffer. TODO: Does this need to be here?

Definition at line 216 of file pbuffer.cpp.

References GL_DRAW_BUFFER, GL_FRONT, GL_READ_BUFFER, GL_VIEWPORT, glDrawBuffer(), glErr(), glGetIntegerv(), glReadBuffer(), glXGetCurrentContext(), glXGetCurrentDisplay, and glXMakeCurrent().

Referenced by glift::PBuffGlift::enable().

bool PBuffer::hasCube  )  const [inline]
 

Definition at line 97 of file pbuffer.h.

References PBUFF_CUBE.

Referenced by glift::PBuffGlift::hasCube().

bool PBuffer::hasMipMap  )  const [inline]
 

Definition at line 96 of file pbuffer.h.

References PBUFF_MIPMAP.

Referenced by glift::PBuffGlift::hasMipMap().

bool PBuffer::hasRendToTex  )  const [inline]
 

Definition at line 95 of file pbuffer.h.

References PBUFF_REND_TO_TEX.

Referenced by glift::PBuffGlift::hasRendToTex().

unsigned int PBuffer::mode  )  const [inline]
 

Definition at line 91 of file pbuffer.h.

Referenced by glift::PBuffGlift::mode().

int PBuffer::numSurfaces  )  const [inline]
 

Definition at line 98 of file pbuffer.h.

int PBuffer::numSurfaces unsigned int  mode  )  [static]
 

Definition at line 79 of file pbuffer.cpp.

References mode, n, PBUFF_AUX1, PBUFF_AUX2, PBUFF_AUX3, PBUFF_AUX4, PBUFF_AUX5, PBUFF_AUX6, PBUFF_AUX7, PBUFF_AUX8, PBUFF_DOUBLE, and PBUFF_SINGLE.

Referenced by glift::PBuffGlift::numSurfaces().

void PBuffer::release  ) 
 

Definition at line 209 of file pbuffer.cpp.

Referenced by glift::PBuffGlift::releaseDef().

PBuffRenCTX PBuffer::renderCTX  )  const [inline]
 

Definition at line 92 of file pbuffer.h.

References PBuffRenCTX.

Referenced by glift::PBuffGlift::renderCTX().

void PBuffer::setCubeFace GLenum  cubeFace  ) 
 

Definition at line 181 of file pbuffer.cpp.

Referenced by glift::PBuffGlift::setCubeFace().

void PBuffer::setMipLevel int  level  ) 
 

Definition at line 163 of file pbuffer.cpp.

References level.

Referenced by glift::PBuffGlift::setMipLevel().

void PBuffer::setSurface GLenum  surface  ) 
 

Definition at line 142 of file pbuffer.cpp.

Referenced by glift::PBuffGlift::setSurface().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk