|
Public Types |
enum | DrawableType { DrawableType_Window,
DrawableType_PBuffer
} |
enum | BufferType { FrontBuffer,
BackBuffer
} |
enum | RenderToTextureMode { RenderToTextureMode_None,
RenderToRGBTexture,
RenderToRGBATexture
} |
enum | RenderToTextureTarget { Texture1D,
Texture2D,
TextureCUBE
} |
enum | RenderToTextureOptions { RenderToTextureOptions_Default = 0,
RequestSpaceForMipMaps = 1,
RequestLargestPBuffer = 2
} |
enum | CubeMapFace {
PositiveX = 0,
NegativeX = 1,
PositiveY = 2,
NegativeY = 3,
PositiveZ = 4,
NegativeZ = 5
} |
enum | PixelAttributeName {
UseGL,
BufferSize,
Level,
RGBA,
DoubleBuffer,
Stereo,
AuxBuffers,
RedSize,
GreenSize,
BlueSize,
AlphaSize,
DepthSize,
StencilSize,
AccumRedSize,
AccumGreenSize,
AccumBlueSize,
AccumAlphaSize
} |
Public Member Functions |
| RenderSurface (void) |
void | setDrawableType (DrawableType) |
void | setReadDrawable (RenderSurface *) |
void | setInputRectangle (const InputRectangle &ir) |
const InputRectangle & | getInputRectangle () |
void | bindInputRectangleToWindowSize (bool) |
void | setHostName (const std::string &) |
const std::string & | getHostName (void) const |
void | setDisplayNum (int) |
int | getDisplayNum (void) const |
void | setScreenNum (int) |
int | getScreenNum (void) const |
void | getScreenSize (unsigned int &width, unsigned int &height) const |
void | setWindowName (const std::string &) |
const std::string & | getWindowName (void) const |
void | setWindowRectangle (int x, int y, unsigned int width, unsigned int height, bool resize=true) |
void | getWindowRectangle (int &x, int &y, unsigned int &width, unsigned int &height) const |
int | getWindowOriginX () const |
int | getWindowOriginY () const |
unsigned int | getWindowWidth () const |
unsigned int | getWindowHeight () const |
void | setDisplay (Display *dpy) |
Display * | getDisplay (void) |
const Display * | getDisplay (void) const |
void | setWindow (const Window win) |
Window | getWindow (void) const |
GLContext | getGLContext (void) const |
void | setParentWindow (Window parent) |
Window | getParentWindow (void) const |
void | setVisualChooser (VisualChooser *vc) |
VisualChooser * | getVisualChooser (void) |
const VisualChooser * | getVisualChooser (void) const |
void | setVisualInfo (VisualInfo *vi) |
VisualInfo * | getVisualInfo (void) |
const VisualInfo * | getVisualInfo (void) const |
bool | isRealized (void) const |
void | useBorder (bool flag) |
bool | usesBorder () |
void | useCursor (bool flag) |
void | useConfigEventThread (bool flag) |
bool | realize (VisualChooser *vc=NULL, GLContext shared_context=0) |
void | addRealizeCallback (Callback *realizeCB) |
void | setRealizeCallback (Callback *realizeCB) |
virtual void | swapBuffers (void) |
bool | makeCurrent (void) const |
virtual void | sync (int divisor=1) |
unsigned int | getRefreshRate () const |
bool | waitForRealize () |
void | fullScreen (bool flag) |
void | setCustomFullScreenRectangle (int x, int y, unsigned int width, unsigned int height) |
void | useDefaultFullScreenRectangle () |
bool | isFullScreen () const |
void | positionPointer (int x, int y) |
void | setUseDefaultEsc (bool flag) |
bool | getUseDefaultEsc () |
void | mapWindow () |
void | unmapWindow () |
void | bindPBufferToTexture (BufferType buffer=FrontBuffer) const |
RenderToTextureMode | getRenderToTextureMode () const |
void | setRenderToTextureMode (RenderToTextureMode mode) |
RenderToTextureTarget | getRenderToTextureTarget () const |
void | setRenderToTextureTarget (RenderToTextureTarget target) |
RenderToTextureOptions | getRenderToTextureOptions () const |
void | setRenderToTextureOptions (RenderToTextureOptions options) |
int | getRenderToTextureMipMapLevel () const |
void | setRenderToTextureMipMapLevel (int level) |
CubeMapFace | getRenderToTextureFace () const |
void | setRenderToTextureFace (CubeMapFace face) |
const std::vector< int > & | getPBufferUserAttributes () const |
std::vector< int > & | getPBufferUserAttributes () |
void | addPixelAttribute (PixelAttributeName attribute) |
void | addPixelAttribute (PixelAttributeName attribute, int parameter) |
void | addExtendedPixelAttribute (unsigned int attribute) |
void | addExtendedPixelAttribute (unsigned int attribute, int parameter) |
void | setSimplePixelConfiguration () |
Static Public Member Functions |
static const std::string & | getDefaultWindowName () |
static void | InitThreads () |
Static Public Attributes |
static const unsigned int | UnknownDimension |
static const std::string | defaultWindowName |
Protected Member Functions |
virtual | ~RenderSurface (void) |
void | _computeScreenSize (unsigned int &width, unsigned int &height) const |
virtual bool | _init () |
virtual void | _fini () |
virtual void | run () |
void | _choosePixelFormat (VisualInfo *) |
int | _adaptPixelAttribute (PixelAttribute &attr, VisualInfo *vinfo) |
Protected Attributes |
DrawableType | _drawableType |
std::string | _hostname |
int | _displayNum |
float | _windowLeft |
float | _windowRight |
float | _windowBottom |
float | _windowTop |
int | _windowX |
int | _windowY |
unsigned int | _windowWidth |
unsigned int | _windowHeight |
unsigned int | _screenWidth |
unsigned int | _screenHeight |
bool | _useCustomFullScreen |
int | _customFullScreenOriginX |
int | _customFullScreenOriginY |
unsigned int | _customFullScreenWidth |
unsigned int | _customFullScreenHeight |
Display * | _dpy |
int | _screen |
Window | _win |
Window | _parent |
RenderSurface * | _readDrawableRenderSurface |
unsigned int | _parentWindowHeight |
bool | _realized |
ref_ptr< VisualChooser > | _visualChooser |
VisualInfo * | _visualInfo |
GLContext | _glcontext |
GLContext | _sharedGlcontext |
Cursor | _nullCursor |
bool | _decorations |
bool | _useCursor |
std::string | _windowName |
unsigned int | _frameCount |
bool | _mayFullScreen |
bool | _isFullScreen |
bool | _bindInputRectangleToWindowSize |
RenderToTextureMode | _rtt_mode |
RenderToTextureTarget | _rtt_target |
RenderToTextureOptions | _rtt_options |
int | _rtt_mipmap |
CubeMapFace | _rtt_face |
bool | _rtt_dirty_mipmap |
bool | _rtt_dirty_face |
std::vector< int > | _user_pbattr |
OpenThreads::Barrier * | _threadReady |
bool | _useConfigEventThread |
bool | _checkOwnEvents |
bool | _useDefaultEsc |
std::vector< Producer::ref_ptr<
Callback > > | _realizeCallbacks |
ref_ptr< Producer::Block > | _realizeBlock |
InputRectangle | _inputRectangle |
std::vector< PixelAttribute > | _pixelAttributes |
Classes |
class | Callback |
struct | InputRectangle |
struct | PixelAttribute |