41#ifndef vtkOculusRenderWindow_h
42#define vtkOculusRenderWindow_h
44#include "vtkRenderingOculusModule.h"
45#include "vtkOpenGLRenderWindow.h"
48#include "OVR_CAPI_GL.h"
202 {
return this->LeftEyeDesc.m_nResolveFramebufferId; };
204 {
return this->RightEyeDesc.m_nResolveFramebufferId; };
214 return this->HMDToEyeViewOffsets; }
234 ovrVector3f HMDToEyeViewOffsets[2];
a simple class to control print indentation
virtual void SetPosition(int a[2])
virtual void ReleaseGraphicsResources(vtkRenderWindow *)
Free up any graphics resources associated with this window a value of NULL means the context may alre...
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
void SetWindowInfo(char *)
ovrSession GetSession()
Get the system pointer.
virtual void Initialize(void)
Initialize the rendering window.
virtual void * GetGenericWindowId()
void Clean()
Clean up device contexts, rendering contexts, etc.
virtual void Finalize(void)
Finalize the rendering window.
virtual void WindowRemap(void)
Remap the rendering window.
virtual void Start(void)
Begin the rendering process.
virtual void * GetGenericDrawable()
ovrLayerEyeFov GetOVRLayer()
virtual void SetDisplayId(void *)
Dummy stubs for vtkWindow API.
virtual int GetEventPending()
Check to see if a mouse button has been pressed or mouse wheel activated.
void SetParentInfo(char *)
void SetNextWindowInfo(char *)
ovrVector3f * GetHMDToEyeViewOffsets()
GLuint GetLeftResolveBufferId()
Get the frame buffers used for rendering.
int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
virtual bool IsCurrent()
Tells if this window is the current OpenGL context for the calling thread.
virtual void CreateAWindow()
Create a not-off-screen window.
void MakeCurrent()
Make this windows OpenGL context the current context.
virtual int SupportsOpenGL()
Does this render window support OpenGL? 0-false, 1-true.
virtual void StereoUpdate()
Update the system, if needed, due to stereo rendering.
FramebufferDesc RightEyeDesc
virtual void StereoMidpoint()
Intermediate method performs operations required between the rendering of the left and right eye.
void Frame(void)
End the rendering process and display the image.
void Render()
Overridden to not release resources that would interfere with an external application's rendering.
virtual void StereoRenderComplete()
Handles work required once both views have been rendered when using stereo rendering.
virtual void * GetGenericDisplayId()
FramebufferDesc LeftEyeDesc
virtual void SetFullScreen(int)
Turn on/off rendering full screen window size.
bool CreateFrameBuffer(FramebufferDesc &framebufferDesc)
virtual void DestroyWindow()
Destroy a not-off-screen window.
virtual void * GetGenericParentId()
static vtkOculusRenderWindow * New()
virtual void * GetGenericContext()
void UpdateHMDMatrixPose()
Update the HMD pose.
GLuint GetRightResolveBufferId()
virtual void SetNextWindowId(void *)
const char * ReportCapabilities()
Get report of capabilities for the render window.
virtual void SetSize(int, int)
Set the size of the window in pixels.
void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTransform * HMDTransform
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.
virtual void SetPosition(int, int)
Set the position of the window.
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.
create a window for renderers to draw into
virtual void SetPosition(int, int)
ovrSizei RecommendedTexSize
ovrTextureSwapChain TextureSwapChain
GLuint m_nResolveFramebufferId