#include <clearableRegion.h>
Inheritance diagram for ClearableRegion:
Public Member Functions | |
ClearableRegion () | |
ClearableRegion (const ClearableRegion ©) | |
void | operator= (const ClearableRegion ©) |
void | copy_clear_settings (const ClearableRegion ©) |
A convenience function that does the same thing as the assignment operator; this is just syntactically a little nicer (and a little clearer) to call from a derived class. | |
void | set_clear_color_active (bool clear_color_active) |
Toggles the flag that indicates whether the color buffer should be cleared every frame. | |
bool | get_clear_color_active () const |
Returns the current setting of the flag that indicates whether the color buffer should be cleared every frame. | |
void | set_clear_depth_active (bool clear_depth_active) |
Toggles the flag that indicates whether the depth buffer should be cleared every frame. | |
bool | get_clear_depth_active () const |
Returns the current setting of the flag that indicates whether the depth buffer should be cleared every frame. | |
void | set_clear_color (const Colorf &color) |
Sets the clear color to the indicated value. | |
const Colorf & | get_clear_color () const |
Returns the current clear color value. | |
void | set_clear_depth (float depth) |
Sets the clear depth to the indicated value. | |
float | get_clear_depth () const |
Returns the current clear depth value. | |
bool | is_any_clear_active () const |
Returns true if any of the clear types (so far there are just color or depth) have been set active, or false if none of them are active and there is no need to clear. | |
Private Types | |
enum | Flags { F_clear_color_active = 0x0001, F_clear_depth_active = 0x0002 } |
Private Attributes | |
int | _flags |
Colorf | _clear_color |
float | _clear_depth |
This includes DisplayRegions and GraphicsWindows.
Definition at line 41 of file clearableRegion.h.
|
Definition at line 66 of file clearableRegion.h. |
|
Definition at line 32 of file clearableRegion.I. References INLINE. |
|
Definition at line 48 of file clearableRegion.I. References _clear_color, _clear_depth, _flags, and INLINE. |
|
A convenience function that does the same thing as the assignment operator; this is just syntactically a little nicer (and a little clearer) to call from a derived class.
Definition at line 85 of file clearableRegion.I. References _flags, and F_clear_color_active. |
|
Returns the current clear color value. This is the value that will be used to clear the color buffer every frame, but only if get_clear_color_active() returns true. If get_clear_color_active() returns false, this is meaningless. Definition at line 211 of file clearableRegion.I. |
|
Returns the current setting of the flag that indicates whether the color buffer should be cleared every frame. Definition at line 127 of file clearableRegion.I. References _flags, and F_clear_depth_active. |
|
Returns the current clear depth value. This is the value that will be used to clear the depth buffer every frame, but only if get_clear_depth_active() returns true. If get_clear_depth_active() returns false, this is meaningless. Definition at line 253 of file clearableRegion.I. |
|
Returns the current setting of the flag that indicates whether the depth buffer should be cleared every frame. Definition at line 169 of file clearableRegion.I. References _clear_depth. |
|
Returns true if any of the clear types (so far there are just color or depth) have been set active, or false if none of them are active and there is no need to clear.
Definition at line 272 of file clearableRegion.I. Referenced by GraphicsWindow::get_mouse_data(). |
|
Definition at line 64 of file clearableRegion.I. References INLINE. |
|
Sets the clear color to the indicated value. This is the value that will be used to clear the color buffer every frame, but only if get_clear_color_active() returns true. If get_clear_color_active() returns false, this is meaningless. Definition at line 190 of file clearableRegion.I. |
|
Toggles the flag that indicates whether the color buffer should be cleared every frame. If this is true, the color buffer will be cleared to the color indicated by set_clear_color(); otherwise, it will be left alone. Definition at line 106 of file clearableRegion.I. References _flags, F_clear_depth_active, and INLINE. |
|
Sets the clear depth to the indicated value. This is the value that will be used to clear the depth buffer every frame, but only if get_clear_depth_active() returns true. If get_clear_depth_active() returns false, this is meaningless. Definition at line 232 of file clearableRegion.I. |
|
Toggles the flag that indicates whether the depth buffer should be cleared every frame. If this is true, the depth buffer will be cleared to the depth value indicated by set_clear_depth(); otherwise, it will be left alone. Definition at line 148 of file clearableRegion.I. References _clear_color, Colorf, and INLINE. |
|
Definition at line 72 of file clearableRegion.h. Referenced by ClearableRegion(), and set_clear_depth_active(). |
|
Definition at line 73 of file clearableRegion.h. Referenced by ClearableRegion(), and get_clear_depth_active(). |
|
Definition at line 70 of file clearableRegion.h. Referenced by ClearableRegion(), copy_clear_settings(), get_clear_color_active(), set_clear_color(), and set_clear_color_active(). |