|
liballofw
|
Class for Omnistereo rendering. More...
#include <omnistereo.h>
Classes | |
| struct | CompositeInfo |
| Composite info structure. More... | |
| class | Delegate |
| OmniStereo delegate class. More... | |
| struct | StereoTexture |
| Panorama is cubemap. More... | |
Public Member Functions | |
| virtual void | setResolution (int size=1024)=0 |
| virtual void | setStereoMode (StereoMode stereo_mode)=0 |
| virtual void | setPose (const Pose &pose)=0 |
| virtual void | setLens (float eye_separation=0.0f, float sphere_radius=1.0f)=0 |
| virtual void | setClipRange (float near, float far)=0 |
| virtual StereoTexture | getCubemapTexture ()=0 |
| virtual StereoTexture | getDepthCubemapTexture ()=0 |
| virtual void | capture ()=0 |
| Capture the scene. More... | |
| virtual void | composite (const Rectangle2i &viewport, const CompositeInfo &info=CompositeInfo())=0 |
| virtual GLuint | compositeCustomizeShader (const char *code)=0 |
| virtual void | compositeRestoreShader ()=0 |
| Restore the composite shader to default. More... | |
| virtual const char * | getShaderCode ()=0 |
| virtual void | setUniforms (GLuint program, const Delegate::CaptureInfo &info)=0 |
| virtual void | setDelegate (Delegate *delegate)=0 |
Static Public Member Functions | |
| static OmniStereo * | Create (Configuration *conf) |
| static void | Destroy (OmniStereo *omnistereo) |
Protected Member Functions | |
| virtual | ~OmniStereo () |
| typedef int | StereoMode |
| Stereo mode. More... | |
| static const int | kStereoMode_Mono = 0 |
| static const int | kStereoMode_Left = 100 |
| Mono. More... | |
| static const int | kStereoMode_Right = 101 |
| Only show left eye. More... | |
| static const int | kStereoMode_Active = 200 |
| Only show right eye. More... | |
| static const int | kStereoMode_Dual_LR = 300 |
| Active stereo. More... | |
| static const int | kStereoMode_Dual_RL = 301 |
| Dual, left-right. More... | |
| static const int | kStereoMode_Anaglyph_Red_Cyan = 400 |
| Dual, right-left. More... | |
| typedef int | PanoramaMode |
| Anaglyph, red/cyan. More... | |
| static const int | kPanoramaModeEquirectangular = 0 |
| typedef int | Eye |
| Equirectangular panorama mode. More... | |
| static const int | kEye = 0 |
| static const int | kEye_Left = 0 |
| Single eye. More... | |
| static const int | kEye_Right = 1 |
| Left eye. More... | |
| typedef int | CompositeMask |
| Right eye. More... | |
| static const int | kCompositeMask_Scene = 1 << 0 |
| static const int | kCompositeMask_Back = 1 << 1 |
| Show the scene. More... | |
| static const int | kCompositeMask_Front = 1 << 2 |
| Show the back buffer. More... | |
| static const int | kCompositeMask_Panorama = 1 << 3 |
| Show the front buffer. More... | |
| static const int | kCompositeMask_Panorama_Equirectangular = 1 << 4 |
| Show the panorama. More... | |
| static const int | kCompositeMask_Panorama_Cubemap = 1 << 5 |
| Panorama is equirectangular. More... | |
| static const int | kCompositeMask_Panorama_Cubemap_YUV420P = 1 << 6 |
| Panorama is cubemap. More... | |
Class for Omnistereo rendering.
| typedef int allofw::OmniStereo::CompositeMask |
Right eye.
Composite mask.
| typedef int allofw::OmniStereo::Eye |
Equirectangular panorama mode.
Eye index.
| typedef int allofw::OmniStereo::PanoramaMode |
Anaglyph, red/cyan.
Panorama mode.
| typedef int allofw::OmniStereo::StereoMode |
Stereo mode.
|
protectedvirtual |
|
pure virtual |
Capture the scene.
|
pure virtual |
Composite the scene: Draw internal buffers to current viewport.
| viewport | The viewport in pixels. |
| info | The CompositeInfo. |
|
pure virtual |
Create a customized composite shader.
| code | Custom shader code. |
|
pure virtual |
Restore the composite shader to default.
|
static |
Create new OmniStereo with configuration information.
| conf | The Configuration object. |
|
static |
Destroy OmniStereo object.
| omnistereo | The object to destroy. |
|
pure virtual |
Get the cubemap (only allowed in cubemap mode).
|
pure virtual |
Get the depth cubemap (only allowed in cubemap mode).
|
pure virtual |
Get OmniStereo shader prefix code.
Necessary functions and uniforms for use in shader programs.
Uniforms:
Call setUniforms() to set these uniforms to your shader.
|
pure virtual |
Set clip range.
| near | The near clipping distance in OpenGL units. |
| far | The far clipping distance in OpenGL units. |
|
pure virtual |
Set the delegate.
| delegate | Set the delegate object. |
|
pure virtual |
Set lens.
| eye_separation | Distance between the two eyes in OpenGL units. |
| sphere_radius | The radius of the spherical display in OpenGL units |
|
pure virtual |
Set pose.
| pose | The pose. |
|
pure virtual |
Set cubemap resolution, allocate the cubemap.
| size | Width/height of the cubemap faces. |
|
pure virtual |
Enable stereo or not.
| stereo_mode | The stereo mode. |
|
pure virtual |
Set uniforms to a shader program using getShaderCode().
| program | The OpenGL id of the program. |
| info | The CaptureInfo given by onCaptureViewport. |
|
static |
Show the scene.
|
static |
Show the back buffer.
|
static |
Show the front buffer.
|
static |
Panorama is equirectangular.
|
static |
Panorama is cubemap.
|
static |
Show the panorama.
|
static |
|
static |
|
static |
Single eye.
|
static |
Left eye.
|
static |
|
static |
Only show right eye.
|
static |
Dual, right-left.
|
static |
Active stereo.
|
static |
Dual, left-right.
|
static |
Mono.
|
static |
|
static |
Only show left eye.
1.8.11