|
| state () |
|
virtual | ~state () |
|
| state (const state &a_from) |
|
state & | operator= (const state &a_from) |
|
bool | project_point (float &a_x, float &a_y, float &a_z, float &a_w) const |
|
void | screen2ndc (int a_x, int a_y, float &a_wcx, float &a_wcy, float &a_wcz, float &a_wcw) const |
|
bool | screen2wc (int a_x, int a_y, float &a_wcx, float &a_wcy, float &a_wcz) const |
|
bool | screen2pwc (int a_x, int a_y, float &a_wcx, float &a_wcy, float &a_wcz) const |
|
void | camera_proj_only (mat4f &a_mtx) const |
|
Definition at line 25 of file state.
◆ state() [1/2]
tools::sg::state::state |
( |
| ) |
|
|
inline |
Definition at line 30 of file state.
68 mem::increment(s_class().c_str());
◆ ~state()
virtual tools::sg::state::~state |
( |
| ) |
|
|
inlinevirtual |
Definition at line 73 of file state.
75 mem::decrement(s_class().c_str());
◆ state() [2/2]
tools::sg::state::state |
( |
const state & |
a_from | ) |
|
|
inline |
Definition at line 79 of file state.
119 mem::increment(s_class().c_str());
◆ camera_proj_only()
void tools::sg::state::camera_proj_only |
( |
mat4f & |
a_mtx | ) |
const |
|
inline |
Definition at line 226 of file state.
234 a_mtx.set_ortho(l,r,b,t,n,f);
236 a_mtx.set_frustum(l,r,b,t,n,f);
◆ operator=()
state& tools::sg::state::operator= |
( |
const state & |
a_from | ) |
|
|
inline |
◆ project_point()
bool tools::sg::state::project_point |
( |
float & |
a_x, |
|
|
float & |
a_y, |
|
|
float & |
a_z, |
|
|
float & |
a_w |
|
) |
| const |
|
inline |
Definition at line 164 of file state.
168 if(a_w==0.0F)
return false;
◆ screen2ndc()
void tools::sg::state::screen2ndc |
( |
int |
a_x, |
|
|
int |
a_y, |
|
|
float & |
a_wcx, |
|
|
float & |
a_wcy, |
|
|
float & |
a_wcz, |
|
|
float & |
a_wcw |
|
) |
| const |
|
inline |
Definition at line 175 of file state.
181 a_wcx = 2*(float(a_x)/float(
m_ww)-0.5f);
182 a_wcy = 2*(float(a_y)/float(
m_wh)-0.5f);
◆ screen2pwc()
bool tools::sg::state::screen2pwc |
( |
int |
a_x, |
|
|
int |
a_y, |
|
|
float & |
a_wcx, |
|
|
float & |
a_wcy, |
|
|
float & |
a_wcz |
|
) |
| const |
|
inline |
Definition at line 211 of file state.
216 if(!mtx.invert(inv)) {a_wcx = 0;a_wcy = 0;a_wcz = 0;
return false;}
219 inv.mul_4f(a_wcx,a_wcy,a_wcz,w);
220 if(w==0.0F)
return false;
◆ screen2wc()
bool tools::sg::state::screen2wc |
( |
int |
a_x, |
|
|
int |
a_y, |
|
|
float & |
a_wcx, |
|
|
float & |
a_wcy, |
|
|
float & |
a_wcz |
|
) |
| const |
|
inline |
Definition at line 196 of file state.
201 if(!mtx.invert(inv)) {a_wcx = 0;a_wcy = 0;a_wcz = 0;
return false;}
204 inv.mul_4f(a_wcx,a_wcy,a_wcz,w);
205 if(w==0.0F)
return false;
◆ m_camera_lrbt
vec4f tools::sg::state::m_camera_lrbt |
◆ m_camera_orientation
rotf tools::sg::state::m_camera_orientation |
◆ m_camera_ortho
bool tools::sg::state::m_camera_ortho |
◆ m_camera_position
vec3f tools::sg::state::m_camera_position |
◆ m_camera_zfar
float tools::sg::state::m_camera_zfar |
◆ m_camera_znear
float tools::sg::state::m_camera_znear |
◆ m_color
colorf tools::sg::state::m_color |
◆ m_draw_type
◆ m_GL_BLEND
bool tools::sg::state::m_GL_BLEND |
◆ m_GL_CULL_FACE
bool tools::sg::state::m_GL_CULL_FACE |
◆ m_GL_DEPTH_TEST
bool tools::sg::state::m_GL_DEPTH_TEST |
◆ m_GL_LIGHTING
bool tools::sg::state::m_GL_LIGHTING |
◆ m_GL_LINE_SMOOTH
bool tools::sg::state::m_GL_LINE_SMOOTH |
◆ m_GL_POINT_SMOOTH
bool tools::sg::state::m_GL_POINT_SMOOTH |
◆ m_GL_POLYGON_OFFSET_FILL
bool tools::sg::state::m_GL_POLYGON_OFFSET_FILL |
◆ m_GL_TEXTURE_2D
bool tools::sg::state::m_GL_TEXTURE_2D |
◆ m_light
unsigned int tools::sg::state::m_light |
◆ m_line_pattern
unsigned short tools::sg::state::m_line_pattern |
◆ m_line_width
float tools::sg::state::m_line_width |
◆ m_model
mat4f tools::sg::state::m_model |
◆ m_normal
vec3f tools::sg::state::m_normal |
◆ m_point_size
float tools::sg::state::m_point_size |
◆ m_proj
mat4f tools::sg::state::m_proj |
◆ m_shade_model
◆ m_use_gsto
bool tools::sg::state::m_use_gsto |
◆ m_wh
unsigned int tools::sg::state::m_wh |
◆ m_winding
◆ m_ww
unsigned int tools::sg::state::m_ww |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/state