liballofw
|
Warp and blend information for a display configuration. More...
#include <omnistereo.h>
Classes | |
struct | BlendData |
Blend map data. More... | |
struct | ViewportInfo |
Viewport information. More... | |
struct | WarpData |
Warp map data. More... | |
Public Member Functions | |
virtual int | getViewportCount ()=0 |
Get how many viewports to draw. More... | |
virtual ViewportInfo | getViewport (int viewport_index)=0 |
virtual BlendData | getBlendData (int viewport_index)=0 |
virtual WarpData | getWarpData (int viewport_index)=0 |
virtual GLTextureID | getBlendTexture (int viewport_index)=0 |
virtual GLTextureID | getWarpTexture (int viewport_index)=0 |
Static Public Member Functions | |
static WarpBlend * | CreateEquirectangular (int width, int height) |
static WarpBlend * | CreatePerspective (int width, int height, float fov) |
static WarpBlend * | LoadAllosphereCalibration (const char *calibration_path, const char *hostname=nullptr) |
static void | Destroy (WarpBlend *warpblend) |
Protected Member Functions | |
virtual | ~WarpBlend () |
Warp and blend information for a display configuration.
|
protectedvirtual |
|
static |
Create warpblend data with Equirectangular projection.
width | The width of the warpblend info. |
height | The height of the warpblend info. |
|
static |
Create warpblend data for Perspective projection.
width | The width of the warpblend info. |
height | The height of the warpblend info. |
fov | The horizontal field of view. |
|
static |
Destroy the warpblend object.
warpblend | The object to be destroyed. |
|
pure virtual |
Get warp data for the viewport.
viewport_index | The index of the viewport, 0 to getViewportCount() - 1. |
|
pure virtual |
Get warp texture for the viewport.
viewport_index | The index of the viewport, 0 to getViewportCount() - 1. |
|
pure virtual |
Get viewport information.
viewport_index | The index of the viewport, 0 to getViewportCount() - 1. |
|
pure virtual |
Get how many viewports to draw.
|
pure virtual |
Get blend data for the viewport.
viewport_index | The index of the viewport, 0 to getViewportCount() - 1. |
|
pure virtual |
Get blend texture for the viewport.
viewport_index | The index of the viewport, 0 to getViewportCount() - 1. |
|
static |
Load warpblend data from AlloSphere calibration directory.
calibration_path | The path to the calibration directory. |
hostname | The hostname, if omitted, use gethostname(). |