OGLStandaloneViewport (object)¶
バージョン 1.14.0 で追加.
The OGLStandaloneViewport inherits InlineViewport object to represent a viewport in OpenGL.
Members¶
Integer | windowId | the ID of the window holding the OpenGL context. this is used by the C++ standalone for example for using the Oculus Rift SDK rendering. |
Boolean | responsibleForSwappingBuffers | by default we expect the host application to swap buffers. custom callbacks might be changing this. |
Color | bgColor | the background color used for glClearColor |
InlineInstance | gridInstance | the scene grid |
InlineInstance | planeInstance | the stage plane (blue route) |
InlineInstance | floorInstance | the stage floow (dark) |
Boolean | drawLicensingOverlay | determins if we should draw a licensing overlay |
String | licensingOverlayTexture | the path to the licensing overlay texture |
Boolean | clear | if the viewport should be cleared |
Methods¶
OGLStandaloneViewport ( in OGLStandaloneViewport other ) | |
OGLStandaloneViewport () | |
OGLStandaloneViewport | clone ? () |
Boolean | draw ! ( io DrawContext context ) |
Boolean | resize ! ( io DrawContext context, in Size width, in Size height ) |
setGridVisible ! ( in Boolean state ) | |
setWireFrame ! ( in Boolean wireFrame ) | |
Boolean | setup ! ( io DrawContext context ) |
setupLicensingOverlay ! () |
Methods in detail¶
OGLStandaloneViewport ( in OGLStandaloneViewport other )
copy constructor
OGLStandaloneViewport OGLStandaloneViewport.clone? ()
clone method
Boolean OGLStandaloneViewport.draw! ( io DrawContext context )
This method is called by the standalone tools to draw to the viewport.
Boolean OGLStandaloneViewport.resize! ( io DrawContext context, in Size width, in Size height )
This method is called by the standalone tools to resize to the viewport.
OGLStandaloneViewport.setGridVisible! ( in Boolean state )
toggle the visibility of any stage / grid
OGLStandaloneViewport.setWireFrame! ( in Boolean wireFrame )
finds all OGLWireFrameShader object and sets their wireFrame setting
Boolean OGLStandaloneViewport.setup! ( io DrawContext context )
This method is called by the standalone tools to set up a viewport.
OGLStandaloneViewport.setupLicensingOverlay! ()
setup a watermark overlay