54#ifndef HIDDEN_FROM_DOC
63 enum FloatColorBufferSize
68 FLOAT_16_COLOR_BUFFER = 0,
72 FLOAT_32_COLOR_BUFFER = 1
93 float getAntialiasingQuality()
const;
108 void setColorMapSize(
int size );
113 int getColorMapSize();
124 void setBorder(
int newValue );
140 void setDrawToFrontBufferEnable(
SbBool enableFlag );
145 SbBool isDrawToFrontBufferEnable()
const;
160 void setFloatingColorBuffer(
SbBool enable, FloatColorBufferSize
size = FLOAT_16_COLOR_BUFFER );
171 static SbBool isFloatingColorBufferSupported();
178 void setGLModes(
int mode );
183 int getGLModes()
const;
210 void setOnFormatChangeCalback( FormatChangeCallback callback,
void* userData = NULL );
224 void setRemoteRendering(
bool enable );
229 bool isRemoteRendering()
const;
240 SbBool isStereoEnabled()
const;
246 bool saveSnapshot(
const SbString& filename,
bool override =
true );
250 SbBool getDrawToFrontBuffer()
const;
253 void setColorMap(
unsigned long colorMap );
254 unsigned long getColorMap()
const;
262 void setGlxSize(
SbVec2s newSize );
263 const SbVec2s& getGlxSize()
const;
275 void setGLWidgetHandle(
const void* glWidgetHandle,
276 soGUIDependentCB swapBufferCB,
277 soGUIDependentCB bindCurrentCB,
278 soGUIDependentCB unbindCurrentCB,
279 soGUIWindowDependentCB getNormalCB,
280 soGUIWindowDependentCB getDisplayCB = NULL);
285 static soGUIDependentCB swapNormalBuffersCB;
286 static soGUIDependentCB bindNormalCurrentCB;
287 static soGUIDependentCB unbindNormalCurrentCB;
288 static soGUIWindowDependentCB getNormalWindowCB;
289 static soGUIWindowDependentCB getCurrentDisplayCB;
290 void * m_glWidgetHandle;
292 virtual void* getNormalWindow() {
return getNormalWindowCB(m_glWidgetHandle); }
293 virtual void* getDisplay() {
return getCurrentDisplayCB(m_glWidgetHandle); }
295 virtual SbBool bindNormalContext();
296 virtual SbBool unbindNormalContext();
309 static SbBool m_hasFloatBuffer;
326 FormatChangeCallback m_formatChangeCallback;
327 void* m_formatChangeCallbackUserData;
329 unsigned long m_colorMap;
332 SbBool m_drawToFrontBuffer;
333 SbBool m_enableDrawToFrontBuffer;
335 unsigned long m_transparentPixel;
337 bool m_isRemoteRendering;
341 SbBool m_isFloatingPointRendering;
342 FloatColorBufferSize m_floatingPointRenderingPrecision;