#include <DisplayTileConfig.h>
Enumerator |
---|
Mono |
|
LineInterleaved |
|
ColumnInterleaved |
|
PixelInterleaved |
|
SideBySide |
|
Quad |
|
Default |
|
omega::DisplayTileConfig::DisplayTileConfig |
( |
DisplayConfig & |
dc | ) |
|
|
inline |
void omega::DisplayTileConfig::computeTileCorners |
( |
| ) |
|
Computes the corner positions for the specified tile using information stored in the tile and configuration like center, yaw and pitch, lcd size and so on.
Vector3f omega::DisplayTileConfig::getPixelPosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Returns the position in real-world coordinates of the specified pixel (where pixel 0,0 is in the top-left corner of the tile)
Parse a configuration from a setting, using values from the display config defaults when needed.
bool omega::DisplayTileConfig::rayIntersects |
( |
const Ray & |
ray | ) |
|
Convenience method to check for intersection between a ray and this tile.
void omega::DisplayTileConfig::setCorners |
( |
const Vector3f & |
topLeft, |
|
|
const Vector3f & |
bottomLeft, |
|
|
const Vector3f & |
bottomRight |
|
) |
| |
|
inline |
Convenience method to set the tile corners.
void omega::DisplayTileConfig::setPixelSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
Set the resolution in pixels of this tile. Method used instead of.
void omega::DisplayTileConfig::updateActiveRect |
( |
const Rect & |
canvasPixelrRect | ) |
|
Updates this tile active rect and active canvas rect based on the global pixel viewport.
Rect omega::DisplayTileConfig::activeCanvasRect |
Same information as active rect but in canvas coordinates I.e.
this is the area occupied by this tile within the current canvas. So, activeCanvasRect(0,0,10,10) is a 10x10 rect at the top-left corner of the canvas, regardless of canvas position on the display. activeCanvasRect is used in various Camera, 2D and ui calculations.
Rect omega::DisplayTileConfig::activeRect |
The active region of this tile (i.e.
the pixel tile rect where rendering is taking place). The active rect is influenced by the current view and may is used to determine the actual OS window position and size.
bool omega::DisplayTileConfig::borderless |
Disable window borders for this tile only.
Vector3f omega::DisplayTileConfig::bottomLeft |
Vector3f omega::DisplayTileConfig::bottomRight |
Camera* omega::DisplayTileConfig::camera |
Reference to camera attached to this tile. Set during display system initialization.
String omega::DisplayTileConfig::cameraName |
Name of camera attached to this tile. Can be empty or 'default' for default camera.
Vector3f omega::DisplayTileConfig::center |
int omega::DisplayTileConfig::device |
bool omega::DisplayTileConfig::disableMouse |
bool omega::DisplayTileConfig::disableOverlay |
bool omega::DisplayTileConfig::disableScene |
bool omega::DisplayTileConfig::drawStats |
bool omega::DisplayTileConfig::enabled |
uint omega::DisplayTileConfig::flags |
2d position of this tile (normalized) with respect to the global canvas.
Used for mapping 2d interaction and for mapping physical tiles to logical views. Field for storing user-defined flags about this tile.
int omega::DisplayTileConfig::gridX |
The X position of this tile in the tile grid.
Set by display configurations that generate 2D tile grids.
int omega::DisplayTileConfig::gridY |
The Y position of this tile in the tile grid.
Set by display configurations that generate 2D tile grids.
int omega::DisplayTileConfig::id |
bool omega::DisplayTileConfig::invertStereo |
When set to true, eyes are inverted in stereo mode.
bool omega::DisplayTileConfig::isHMD |
When set to true this tile is treated as outputting to a head mounted display.
bool omega::DisplayTileConfig::isInGrid |
When set to true, this tile is part of a 2D tile grid.
String omega::DisplayTileConfig::name |
The node owning this tile.
This is non-null for physical tiles. For logical tiles not owned by any node, this value will be null.
bool omega::DisplayTileConfig::offscreen |
When set to true render this tile offscreen.
Vector2i omega::DisplayTileConfig::offset |
2d offset of window content
float omega::DisplayTileConfig::pitch |
Vector2i omega::DisplayTileConfig::pixelSize |
Vector2i omega::DisplayTileConfig::position |
const Setting* omega::DisplayTileConfig::settingData |
Stores the tile setting unparsed data.
Useful to allow user code process additional custom options.
Vector3f omega::DisplayTileConfig::topLeft |
float omega::DisplayTileConfig::yaw |
The documentation for this class was generated from the following file: