Public Member Functions

xl7::direct3d::StateBackup Class Reference

#include <StateBackup.h>

List of all members.

Public Member Functions

 StateBackup (void)
 ~StateBackup (void)
 StateBackup (const StateBackup &rhs)
StateBackupoperator= (const StateBackup &rhs)
 StateBackup (const State &state)
State::Category GetStateCategoryFlags () const
void SetStateCategoryFlags (State::Category state_category_flags)
bool Restore ()
bool Reject ()
bool Capture ()
bool Capture (const StateBackup &rhs)
bool Capture (const State &state)

Constructor & Destructor Documentation

xl7::direct3d::StateBackup::StateBackup ( void   ) 

Default constructor. Captures the current state of the state machine.

Default constructor.

xl7::direct3d::StateBackup::~StateBackup ( void   ) 

Destructor. Restores the backupped state (if not differently specified).

Destructor.

xl7::direct3d::StateBackup::StateBackup ( const StateBackup rhs  ) 

Copy constructor. Copies the backupped state of the given object.

Copy constructor.

xl7::direct3d::StateBackup::StateBackup ( const State state  ) 

Explicit constructor. Copies the given state.

Explicit constructor.


Member Function Documentation

bool xl7::direct3d::StateBackup::Capture (  ) 

Captures the current state of the state machine.

bool xl7::direct3d::StateBackup::Capture ( const State state  ) 

Copies the given state.

bool xl7::direct3d::StateBackup::Capture ( const StateBackup rhs  ) 

Copies the backupped state of the given object.

State::Category xl7::direct3d::StateBackup::GetStateCategoryFlags (  )  const [inline]

Returns the state category flags specifying which state components should be restored.

StateBackup & xl7::direct3d::StateBackup::operator= ( const StateBackup rhs  ) 

Copy assignment operator. Copies the backupped state of the given object.

Copy assignment operator.

bool xl7::direct3d::StateBackup::Reject (  )  [inline]

Rejects the backupped state. It will not be restored on destruction of this object. A call to function Restore then will have no effect any more.

bool xl7::direct3d::StateBackup::Restore (  ) 

Immediately restores the backupped state.

void xl7::direct3d::StateBackup::SetStateCategoryFlags ( State::Category  state_category_flags  )  [inline]

Sets the state category flags specifying which state components should be restored.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines