#include <iCameraComponent.h>
Inherits igor::iEntityComponent.
◆ iCameraComponent()
igor::iCameraComponent::iCameraComponent |
( |
| ) |
|
◆ createInstance()
creates instance of this component type
◆ getBottomOrtho()
float64 igor::iCameraComponent::getBottomOrtho |
( |
| ) |
const |
- Returns
- bottom edge of orthogonal projection
◆ getClearColor()
const iaColor4f & igor::iCameraComponent::getClearColor |
( |
| ) |
const |
- Returns
- current clear color
◆ getClearDepth()
float32 igor::iCameraComponent::getClearDepth |
( |
| ) |
const |
◆ getFarPlane()
float64 igor::iCameraComponent::getFarPlane |
( |
| ) |
const |
- Returns
- far clipping plane
◆ getFieldOfView()
float64 igor::iCameraComponent::getFieldOfView |
( |
| ) |
const |
◆ getInfo()
std::vector< iaString > igor::iCameraComponent::getInfo |
( |
| ) |
const |
|
overridevirtual |
◆ getLeftOrtho()
float64 igor::iCameraComponent::getLeftOrtho |
( |
| ) |
const |
- Returns
- left edge of orthogonal projection
◆ getNearPlane()
float64 igor::iCameraComponent::getNearPlane |
( |
| ) |
const |
- Returns
- near clipping plane
◆ getProjectionType()
◆ getRightOrtho()
float64 igor::iCameraComponent::getRightOrtho |
( |
| ) |
const |
- Returns
- right edge of orthogonal projection
◆ getTopOrtho()
float64 igor::iCameraComponent::getTopOrtho |
( |
| ) |
const |
- Returns
- top edge of orthogonal projection
◆ getTypeName()
const iaString & igor::iCameraComponent::getTypeName |
( |
| ) |
|
|
static |
- Returns
- type name of component
◆ getViewport()
const iaRectangled & igor::iCameraComponent::getViewport |
( |
| ) |
const |
- Returns
- viewport in pixels
◆ isClearColorActive()
bool igor::iCameraComponent::isClearColorActive |
( |
| ) |
const |
- Returns
- true if color buffer will be cleared before render
◆ isClearDepthActive()
bool igor::iCameraComponent::isClearDepthActive |
( |
| ) |
const |
- Returns
- true if clear depth is active
◆ setClearColor() [1/2]
void igor::iCameraComponent::setClearColor |
( |
const iaColor4f & |
color | ) |
|
specifies the the color the color buffer will be cleared with
- Parameters
-
◆ setClearColor() [2/2]
specifies the the color the color buffer will be cleared with
- Parameters
-
r | red channel of clear color |
g | green channel of clear color |
b | blue channel of clear color |
a | alpha channel of clear color |
◆ setClearColorActive()
void igor::iCameraComponent::setClearColorActive |
( |
bool |
active | ) |
|
sets the clear color bit.
- Parameters
-
active | true: color buffer will be cleared every frame; false: it will not |
◆ setClearDepth()
void igor::iCameraComponent::setClearDepth |
( |
float32 |
depth | ) |
|
sets the clear depth value
- Parameters
-
depth | the clear depth value |
◆ setClearDepthActive()
void igor::iCameraComponent::setClearDepthActive |
( |
bool |
active | ) |
|
sets the clear buffer bit.
- Parameters
-
active | true: depth buffer will be cleared every frame; false: it will not |
◆ setClipPlanes()
void igor::iCameraComponent::setClipPlanes |
( |
float32 |
nearPlain, |
|
|
float32 |
farPlain |
|
) |
| |
defines the near and far clipping planes
- Parameters
-
nearPlain | near clipping plane |
farPlain | far clipping plane |
◆ setOrthogonal()
activates othogonal projection mode
- Parameters
-
left | left value of orthogonal projection |
right | right value of orthogonal projection |
bottom | bottom value of orthogonal projection |
top | top value of orthogonal projection |
◆ setPerspective()
void igor::iCameraComponent::setPerspective |
( |
float64 |
viewAngel | ) |
|
activates perspective mode and sets the view_angle
- Parameters
-
viewAngel | values in degrees 0 < viewAngel < 180 |
◆ setViewportRelative()
void igor::iCameraComponent::setViewportRelative |
( |
const iaRectangled & |
rect | ) |
|
sets the view port within a window.
values have to be from 0.0 to 1.0 and represent a resolution independent unit.
- Parameters
-
rect | rectangle with view port boundings using relative values 0.0 - 1.0 |
The documentation for this class was generated from the following files: