Om  1.0.0
A universal framework for multimedia simulation
Public Types | Public Member Functions | List of all members
om::graphics::cameras::CameraFlags Class Reference

A class that encapsulates the different boolean flags that a camera can have. More...

#include <omGraphicsCameraFlags.h>

Public Types

enum  Flag {
  UNDEFINED = 0, ENABLED = (1 << 0), SHADOWS = (1 << 1), CULLING = (1 << 2),
  DEFAULT = ENABLED | SHADOWS | CULLING
}
 An enum that specifies the different camera flags. More...
 

Public Member Functions

 CameraFlags ()
 Create a new camera flags object with no flags set. More...
 
 CameraFlags (Flag flag)
 Create a new camera flags object with the specified flag value initially set. More...
 
 CameraFlags (UInt32 newFlags)
 Create a new camera flags object with the specified initial combined flags value. More...
 
 operator UInt32 () const
 Convert this camera flags object to an integer value. More...
 
Bool isSet (Flag flag) const
 Return whether or not the specified flag value is set for this flags camera. More...
 
void set (Flag flag, Bool newIsSet)
 Set whether or not the specified flag value is set for this flags camera. More...
 

Detailed Description

A class that encapsulates the different boolean flags that a camera can have.

These flags provide boolean information about a certain camera. Flags are indicated by setting a single bit of a 32-bit unsigned integer to 1.

Enum values for the different flags are defined as members of the class. Typically, the user would bitwise-OR the flag enum values together to produce a final set of set flags.

Member Enumeration Documentation

An enum that specifies the different camera flags.

Enumerator
UNDEFINED 

The flag value when all flags are not set.

ENABLED 

A flag indicating that an camera is enabled to be drawn to the screen.

SHADOWS 

A flag indicating that shadows are enabled for a camera.

CULLING 

A flag indicating that frustum culling is enabled for a camera.

DEFAULT 

The default flags to use for a camera.

Constructor & Destructor Documentation

om::graphics::cameras::CameraFlags::CameraFlags ( )
inline

Create a new camera flags object with no flags set.

om::graphics::cameras::CameraFlags::CameraFlags ( Flag  flag)
inline

Create a new camera flags object with the specified flag value initially set.

om::graphics::cameras::CameraFlags::CameraFlags ( UInt32  newFlags)
inline

Create a new camera flags object with the specified initial combined flags value.

Member Function Documentation

om::graphics::cameras::CameraFlags::operator UInt32 ( ) const
inline

Convert this camera flags object to an integer value.

This operator is provided so that the CameraFlags object can be used as an integer value for bitwise logical operations.

Bool om::graphics::cameras::CameraFlags::isSet ( Flag  flag) const
inline

Return whether or not the specified flag value is set for this flags camera.

void om::graphics::cameras::CameraFlags::set ( Flag  flag,
Bool  newIsSet 
)
inline

Set whether or not the specified flag value is set for this flags camera.


The documentation for this class was generated from the following file: