Definition at line 15 of file render_gstos.
◆ render_gstos() [1/2]
tools::sg::render_gstos::render_gstos |
( |
| ) |
|
|
inline |
◆ ~render_gstos()
virtual tools::sg::render_gstos::~render_gstos |
( |
| ) |
|
|
inlinevirtual |
◆ render_gstos() [2/2]
tools::sg::render_gstos::render_gstos |
( |
const render_gstos & |
a_from | ) |
|
|
inline |
◆ create_gsto()
virtual unsigned int tools::sg::render_gstos::create_gsto |
( |
std::ostream & |
, |
|
|
sg::render_manager & |
a_mgr |
|
) |
| |
|
inlineprotectedvirtual |
Reimplemented from tools::sg::gstos.
Definition at line 20 of file render_gstos.
21 std::vector<float> gsto_data;
25 append(gsto_data,_add.m_xyzs);
30 append(gsto_data,_add.m_xyzs);
35 append(gsto_data,_add.m_xyzs);
37 append(gsto_data,_add.m_nms);
40 if(gsto_data.empty())
return 0;
42 return a_mgr.create_gsto_from_data(gsto_data);
◆ gstos_render()
bool tools::sg::render_gstos::gstos_render |
( |
render_action & |
a_action | ) |
|
|
inline |
_id
Definition at line 45 of file render_gstos.
46 const state& state = a_action.state();
48 bool draw_edges =
false;
49 if(state.m_draw_type==
draw_filled) draw_edges = state.m_GL_LIGHTING?
false:
true;
51 if(state.m_use_gsto) {
52 unsigned int _id =
get_gsto_id(a_action.out(),a_action.render_manager());
59 a_action.begin_gsto(_id);
62 a_action.color4f(0,0,0,1);
63 a_action.line_width(1);
68 a_action.set_polygon_offset(
true);
70 a_action.color4f(state.m_color);
71 a_action.line_width(state.m_line_width);
81 if(draw_edges) a_action.set_polygon_offset(state.m_GL_POLYGON_OFFSET_FILL);
◆ gstos_render_no_style()
bool tools::sg::render_gstos::gstos_render_no_style |
( |
render_action & |
a_action | ) |
|
|
inline |
_id
Definition at line 94 of file render_gstos.
95 const state& state = a_action.state();
96 if(state.m_use_gsto) {
97 unsigned int _id =
get_gsto_id(a_action.out(),a_action.render_manager());
104 a_action.begin_gsto(_id);
◆ operator=()
◆ visit()
◆ m_gstos_lines_sz
size_t tools::sg::render_gstos::m_gstos_lines_sz |
|
protected |
◆ m_gstos_nms_sz
size_t tools::sg::render_gstos::m_gstos_nms_sz |
|
protected |
◆ m_gstos_points_sz
size_t tools::sg::render_gstos::m_gstos_points_sz |
|
protected |
◆ m_gstos_tris_sz
size_t tools::sg::render_gstos::m_gstos_tris_sz |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/render_gstos