g4tools  5.4.0
Public Types | Public Member Functions | List of all members
tools::sg::render_action Class Referenceabstract
Inheritance diagram for tools::sg::render_action:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::render_action:
Collaboration graph
[legend]

Public Types

typedef unsigned int gstoid
 

Public Member Functions

virtual void load_proj_matrix (const mat4f &)=0
 
virtual void load_model_matrix (const mat4f &)=0
 
virtual void draw_vertex_array (gl::mode_t, size_t, const float *)=0
 
virtual void draw_vertex_array_xy (gl::mode_t, size_t, const float *)=0
 
virtual void draw_vertex_color_array (gl::mode_t, size_t, const float *, const float *)=0
 
virtual void draw_vertex_normal_array (gl::mode_t, size_t, const float *, const float *)=0
 
virtual void draw_vertex_color_normal_array (gl::mode_t, size_t, const float *, const float *, const float *)=0
 
virtual void draw_vertex_array_texture (gl::mode_t, size_t, const float *, gstoid, const float *)=0
 texture ///////////////////////////////////////////////////// More...
 
virtual void draw_vertex_normal_array_texture (gl::mode_t, size_t, const float *, const float *, gstoid, const float *)=0
 
virtual void begin_gsto (gstoid)=0
 VBO /////////////////////////////////////////////////////////. More...
 
virtual void draw_gsto_v (gl::mode_t, size_t, bufpos)=0
 
virtual void draw_gsto_vc (gl::mode_t, size_t, bufpos, bufpos)=0
 
virtual void draw_gsto_vn (gl::mode_t, size_t, bufpos, bufpos)=0
 
virtual void draw_gsto_vcn (gl::mode_t, size_t, bufpos, bufpos, bufpos)=0
 
virtual void end_gsto ()=0
 
virtual void clear_color (float, float, float, float)=0
 
virtual void color4f (float, float, float, float)=0
 
virtual void line_width (float)=0
 
virtual void point_size (float)=0
 
virtual void set_polygon_offset (bool)=0
 
virtual void set_winding (winding_type)=0
 
virtual void set_shade_model (shade_type)=0
 
virtual void set_cull_face (bool)=0
 
virtual void set_point_smooth (bool)=0
 
virtual void set_line_smooth (bool)=0
 
virtual void normal (float, float, float)=0
 
virtual void set_depth_test (bool)=0
 
virtual unsigned int max_lights ()=0
 
virtual void enable_light (unsigned int, float, float, float, float, float, float, float)=0
 
virtual void set_lighting (bool)=0
 
virtual void set_blend (bool)=0
 
virtual void restore_state (unsigned int)=0
 
virtual sg::render_managerrender_manager ()=0
 
 render_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~render_action ()
 
 render_action (const render_action &a_from)
 
render_actionoperator= (const render_action &a_from)
 
void load_matrices_to_identity ()
 
void load_matrices_from_state ()
 
void clear_color (const colorf &a_color)
 
void color4f (const colorf &a_color)
 
void enable_light (unsigned int a_light, const vec3f &a_dir, const colorf &a_col)
 
void draw_vertex_array (gl::mode_t a_mode, const std::vector< float > &a_xyzs)
 
void draw_vertex_array_xy (gl::mode_t a_mode, const std::vector< float > &a_xys)
 
void draw_vertex_color_array (gl::mode_t a_mode, const std::vector< float > &a_xyzs, const std::vector< float > &a_rgbas)
 
void draw_vertex_normal_array (gl::mode_t a_mode, const std::vector< float > &a_xyzs, const std::vector< float > &a_nms)
 
void draw_vertex_color_normal_array (gl::mode_t a_mode, const std::vector< float > &a_xyzs, const std::vector< float > &a_rgbas, const std::vector< float > &a_nms)
 
void normal (const vec3f &a_vec)
 
bool add_triangles_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms)
 
bool add_triangle_fan_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms)
 
bool add_triangle_fan_normal_rgba (size_t a_floatn, const float *a_xyzs, float *a_nms, const float *a_rgbas)
 
bool add_triangle_strip_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms)
 
bool add_triangle_strip_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas)
 
bool add_lines (size_t a_floatn, const float *a_xyzs)
 
bool add_line_loop (size_t a_floatn, const float *a_xyzs)
 
bool add_line_strip (size_t a_floatn, const float *a_xyzs)
 
bool add_points (size_t a_floatn, const float *a_xyzs)
 
bool add_triangle_fan_texture_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, gstoid a_tex, const float *a_texs)
 
bool add_triangle_strip_texture_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, gstoid a_tex, const float *a_texs)
 
bool add_line_loop (const std::vector< float > &a_xyzs)
 
bool add_line_strip (const std::vector< float > &a_xyzs)
 
bool add_triangle_strip_as_triangles (size_t a_floatn, const float *a_xyzs, const float *a_nms)
 
void dump_vertex_array_xy (std::ostream &a_out, gl::mode_t, size_t a_floatn, const float *a_xys)
 
- Public Member Functions inherited from tools::sg::matrix_action
 matrix_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~matrix_action ()
 
 matrix_action (const matrix_action &a_from)
 
matrix_actionoperator= (const matrix_action &a_from)
 
void push_matrices ()
 
void pop_matrices ()
 
mat4fprojection_matrix ()
 
mat4fmodel_matrix ()
 
bool end () const
 
int cur () const
 
bool project_point (float &a_x, float &a_y, float &a_z, float &a_w)
 
void model_point (float &a_x, float &a_y, float &a_z, float &a_w)
 
void projected_origin (float &a_x, float &a_y, float &a_z)
 
- Public Member Functions inherited from tools::sg::win_action
 win_action (std::ostream &a_out, unsigned int a_ww, unsigned int a_wh)
 
virtual ~win_action ()
 
unsigned int ww () const
 
unsigned int wh () const
 
- Public Member Functions inherited from tools::sg::action
virtual void * cast (const std::string &a_class) const
 
virtual const std::string & s_cls () const =0
 
 action (std::ostream &a_out)
 
virtual ~action ()
 
std::ostream & out () const
 
- Public Member Functions inherited from tools::sg::states
 states (unsigned int a_ww, unsigned int a_wh)
 
virtual ~states ()
 
const sg::statestate () const
 
sg::statestate ()
 
void pop_state ()
 
void push_state ()
 
void save_state (const sg::state &a_state)
 
const sg::statesaved_state () const
 
sg::statesaved_state ()
 

Additional Inherited Members

- Protected Member Functions inherited from tools::sg::matrix_action
void reset ()
 
- Protected Member Functions inherited from tools::sg::win_action
 win_action (const win_action &a_from)
 
win_actionoperator= (const win_action &a_from)
 
- Protected Member Functions inherited from tools::sg::action
 action (const action &a_from)
 
actionoperator= (const action &)
 
- Protected Member Functions inherited from tools::sg::states
 states (const states &a_from)
 
statesoperator= (const states &a_from)
 
- Protected Attributes inherited from tools::sg::matrix_action
std::vector< mat4fm_projs
 
std::vector< mat4fm_models
 
int m_cur
 
mat4f m_identity
 
- Protected Attributes inherited from tools::sg::win_action
unsigned int m_ww
 
unsigned int m_wh
 
- Protected Attributes inherited from tools::sg::action
std::ostream & m_out
 
- Protected Attributes inherited from tools::sg::states
std::vector< sg::statem_states
 
sg::state m_state
 
sg::state m_saved_state
 

Detailed Description

Definition at line 24 of file render_action.

Member Typedef Documentation

◆ gstoid

typedef unsigned int tools::sg::render_action::gstoid

Definition at line 27 of file render_action.

Constructor & Destructor Documentation

◆ render_action() [1/2]

tools::sg::render_action::render_action ( std::ostream &  a_out,
unsigned int  a_ww,
unsigned int  a_wh 
)
inline

Definition at line 79 of file render_action.

80  :parent(a_out,a_ww,a_wh){}

◆ ~render_action()

virtual tools::sg::render_action::~render_action ( )
inlinevirtual

Definition at line 81 of file render_action.

81 {}

◆ render_action() [2/2]

tools::sg::render_action::render_action ( const render_action a_from)
inline

Definition at line 83 of file render_action.

84  :parent(a_from)
85  {}

Member Function Documentation

◆ add_line_loop() [1/2]

bool tools::sg::render_action::add_line_loop ( const std::vector< float > &  a_xyzs)
inline

Definition at line 216 of file render_action.

216  {
217  const float* _xyzs = vec_data<float>(a_xyzs);
218  draw_vertex_array(gl::line_loop(),a_xyzs.size(),_xyzs);
219  return true;
220  }

◆ add_line_loop() [2/2]

bool tools::sg::render_action::add_line_loop ( size_t  a_floatn,
const float *  a_xyzs 
)
inline

Definition at line 180 of file render_action.

180  {
181  draw_vertex_array(gl::line_loop(),a_floatn,a_xyzs);
182  return true;
183  }

◆ add_line_strip() [1/2]

bool tools::sg::render_action::add_line_strip ( const std::vector< float > &  a_xyzs)
inline

Definition at line 222 of file render_action.

222  {
223  const float* _xyzs = vec_data<float>(a_xyzs);
224  draw_vertex_array(gl::line_strip(),a_xyzs.size(),_xyzs);
225  return true;
226  }

◆ add_line_strip() [2/2]

bool tools::sg::render_action::add_line_strip ( size_t  a_floatn,
const float *  a_xyzs 
)
inline

Definition at line 184 of file render_action.

184  {
185  draw_vertex_array(gl::line_strip(),a_floatn,a_xyzs);
186  return true;
187  }

◆ add_lines()

bool tools::sg::render_action::add_lines ( size_t  a_floatn,
const float *  a_xyzs 
)
inline

Definition at line 176 of file render_action.

176  {
177  draw_vertex_array(gl::lines(),a_floatn,a_xyzs);
178  return true;
179  }

◆ add_points()

bool tools::sg::render_action::add_points ( size_t  a_floatn,
const float *  a_xyzs 
)
inline

Definition at line 188 of file render_action.

188  {
189  draw_vertex_array(gl::points(),a_floatn,a_xyzs);
190  return true;
191  }

◆ add_triangle_fan_normal()

bool tools::sg::render_action::add_triangle_fan_normal ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms 
)
inline

Definition at line 160 of file render_action.

160  {
161  draw_vertex_normal_array(gl::triangle_fan(),a_floatn,a_xyzs,a_nms);
162  return true;
163  }

◆ add_triangle_fan_normal_rgba()

bool tools::sg::render_action::add_triangle_fan_normal_rgba ( size_t  a_floatn,
const float *  a_xyzs,
float *  a_nms,
const float *  a_rgbas 
)
inline

Definition at line 164 of file render_action.

164  {
165  draw_vertex_color_normal_array(gl::triangle_fan(),a_floatn,a_xyzs,a_rgbas,a_nms);
166  return true;
167  }

◆ add_triangle_fan_texture_normal()

bool tools::sg::render_action::add_triangle_fan_texture_normal ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms,
gstoid  a_tex,
const float *  a_texs 
)
inline

Definition at line 207 of file render_action.

207  {
208  draw_vertex_normal_array_texture(gl::triangle_fan(),a_floatn,a_xyzs,a_nms,a_tex,a_texs);
209  return true;
210  }

◆ add_triangle_strip_as_triangles()

bool tools::sg::render_action::add_triangle_strip_as_triangles ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms 
)
inline

Definition at line 261 of file render_action.

261  { //used in sg::sphere, icosahedron_sphere.
262  // It appears that if glShadeModel is GL_FLAT, triangle strip does not look the same in "gsto mode" where it is rendered as triangles.
263  // We use this function for immediate rendering, in case we want the same rendering as "gsto mode".
264 
265  size_t num = a_floatn/3;
266  if(num<3) return false;
267  size_t nxyzs = (num-2)*3*3;
268 
269  std::vector<float> m_xyzs(nxyzs);
270  std::vector<float> m_nms(nxyzs);
271 
272  {float* pxyzs = vec_data<float>(m_xyzs);
273  float* pnms = vec_data<float>(m_nms);
274  gl::triangle_strip_to_triangles_nms(num,a_xyzs,a_nms,pxyzs,pnms);}
275 
276  return add_triangles_normal(nxyzs,vec_data<float>(m_xyzs),vec_data<float>(m_nms));
277  }

◆ add_triangle_strip_normal()

bool tools::sg::render_action::add_triangle_strip_normal ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms 
)
inline

Definition at line 168 of file render_action.

168  {
169  draw_vertex_normal_array(gl::triangle_strip(),a_floatn,a_xyzs,a_nms);
170  return true;
171  }

◆ add_triangle_strip_normal_rgba()

bool tools::sg::render_action::add_triangle_strip_normal_rgba ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms,
const float *  a_rgbas 
)
inline

Definition at line 172 of file render_action.

172  {
173  draw_vertex_color_normal_array(gl::triangle_strip(),a_floatn,a_xyzs,a_rgbas,a_nms);
174  return true;
175  }

◆ add_triangle_strip_texture_normal()

bool tools::sg::render_action::add_triangle_strip_texture_normal ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms,
gstoid  a_tex,
const float *  a_texs 
)
inline

Definition at line 211 of file render_action.

211  {
212  draw_vertex_normal_array_texture(gl::triangle_strip(),a_floatn,a_xyzs,a_nms,a_tex,a_texs);
213  return true;
214  }

◆ add_triangles_normal()

bool tools::sg::render_action::add_triangles_normal ( size_t  a_floatn,
const float *  a_xyzs,
const float *  a_nms 
)
inline

Definition at line 156 of file render_action.

156  {
157  draw_vertex_normal_array(gl::triangles(),a_floatn,a_xyzs,a_nms);
158  return true;
159  }

◆ begin_gsto()

virtual void tools::sg::render_action::begin_gsto ( gstoid  )
pure virtual

VBO /////////////////////////////////////////////////////////.

Implemented in tools::sg::zb_action, tools::sg::gl2ps_action, and tools::sg::GL_action.

◆ clear_color() [1/2]

void tools::sg::render_action::clear_color ( const colorf a_color)
inline

Definition at line 101 of file render_action.

101  {
102  clear_color(a_color[0],a_color[1],a_color[2],a_color[3]);
103  }

◆ clear_color() [2/2]

virtual void tools::sg::render_action::clear_color ( float  ,
float  ,
float  ,
float   
)
pure virtual

◆ color4f() [1/2]

void tools::sg::render_action::color4f ( const colorf a_color)
inline

Definition at line 104 of file render_action.

104  {
105  color4f(a_color[0],a_color[1],a_color[2],a_color[3]);
106  }

◆ color4f() [2/2]

virtual void tools::sg::render_action::color4f ( float  ,
float  ,
float  ,
float   
)
pure virtual

◆ draw_gsto_v()

virtual void tools::sg::render_action::draw_gsto_v ( gl::mode_t  ,
size_t  ,
bufpos   
)
pure virtual

◆ draw_gsto_vc()

virtual void tools::sg::render_action::draw_gsto_vc ( gl::mode_t  ,
size_t  ,
bufpos  ,
bufpos   
)
pure virtual

◆ draw_gsto_vcn()

virtual void tools::sg::render_action::draw_gsto_vcn ( gl::mode_t  ,
size_t  ,
bufpos  ,
bufpos  ,
bufpos   
)
pure virtual

◆ draw_gsto_vn()

virtual void tools::sg::render_action::draw_gsto_vn ( gl::mode_t  ,
size_t  ,
bufpos  ,
bufpos   
)
pure virtual

◆ draw_vertex_array() [1/2]

void tools::sg::render_action::draw_vertex_array ( gl::mode_t  a_mode,
const std::vector< float > &  a_xyzs 
)
inline

Definition at line 116 of file render_action.

116  {
117  const float* _xyzs = vec_data<float>(a_xyzs);
118  draw_vertex_array(a_mode,a_xyzs.size(),_xyzs);
119  }

◆ draw_vertex_array() [2/2]

virtual void tools::sg::render_action::draw_vertex_array ( gl::mode_t  ,
size_t  ,
const float *   
)
pure virtual

◆ draw_vertex_array_texture()

virtual void tools::sg::render_action::draw_vertex_array_texture ( gl::mode_t  ,
size_t  ,
const float *  ,
gstoid  ,
const float *   
)
pure virtual

texture /////////////////////////////////////////////////////

Implemented in tools::sg::GL_action, tools::sg::zb_action, and tools::sg::gl2ps_action.

◆ draw_vertex_array_xy() [1/2]

void tools::sg::render_action::draw_vertex_array_xy ( gl::mode_t  a_mode,
const std::vector< float > &  a_xys 
)
inline

Definition at line 121 of file render_action.

121  {
122  const float* _xys = vec_data<float>(a_xys);
123  draw_vertex_array_xy(a_mode,a_xys.size(),_xys);
124  }

◆ draw_vertex_array_xy() [2/2]

virtual void tools::sg::render_action::draw_vertex_array_xy ( gl::mode_t  ,
size_t  ,
const float *   
)
pure virtual

◆ draw_vertex_color_array() [1/2]

void tools::sg::render_action::draw_vertex_color_array ( gl::mode_t  a_mode,
const std::vector< float > &  a_xyzs,
const std::vector< float > &  a_rgbas 
)
inline

Definition at line 126 of file render_action.

128  {
129  const float* _xyzs = vec_data<float>(a_xyzs);
130  const float* _rgbas = vec_data<float>(a_rgbas);
131  draw_vertex_color_array(a_mode,a_xyzs.size(),_xyzs,_rgbas);
132  }

◆ draw_vertex_color_array() [2/2]

virtual void tools::sg::render_action::draw_vertex_color_array ( gl::mode_t  ,
size_t  ,
const float *  ,
const float *   
)
pure virtual

◆ draw_vertex_color_normal_array() [1/2]

void tools::sg::render_action::draw_vertex_color_normal_array ( gl::mode_t  a_mode,
const std::vector< float > &  a_xyzs,
const std::vector< float > &  a_rgbas,
const std::vector< float > &  a_nms 
)
inline

Definition at line 142 of file render_action.

145  {
146  const float* _xyzs = vec_data<float>(a_xyzs);
147  const float* _rgbas = vec_data<float>(a_rgbas);
148  const float* _nms = vec_data<float>(a_nms);
149  draw_vertex_color_normal_array(a_mode,a_xyzs.size(),_xyzs,_rgbas,_nms);
150  }

◆ draw_vertex_color_normal_array() [2/2]

virtual void tools::sg::render_action::draw_vertex_color_normal_array ( gl::mode_t  ,
size_t  ,
const float *  ,
const float *  ,
const float *   
)
pure virtual

◆ draw_vertex_normal_array() [1/2]

void tools::sg::render_action::draw_vertex_normal_array ( gl::mode_t  a_mode,
const std::vector< float > &  a_xyzs,
const std::vector< float > &  a_nms 
)
inline

Definition at line 134 of file render_action.

136  {
137  const float* _xyzs = vec_data<float>(a_xyzs);
138  const float* _nms = vec_data<float>(a_nms);
139  draw_vertex_normal_array(a_mode,a_xyzs.size(),_xyzs,_nms);
140  }

◆ draw_vertex_normal_array() [2/2]

virtual void tools::sg::render_action::draw_vertex_normal_array ( gl::mode_t  ,
size_t  ,
const float *  ,
const float *   
)
pure virtual

◆ draw_vertex_normal_array_texture()

virtual void tools::sg::render_action::draw_vertex_normal_array_texture ( gl::mode_t  ,
size_t  ,
const float *  ,
const float *  ,
gstoid  ,
const float *   
)
pure virtual

◆ dump_vertex_array_xy()

void tools::sg::render_action::dump_vertex_array_xy ( std::ostream &  a_out,
gl::mode_t  ,
size_t  a_floatn,
const float *  a_xys 
)
inline

Definition at line 279 of file render_action.

279  {
280  size_t num = a_floatn/2;
281  if(!num) return;
282  a_out << "dump_vertex_array_xy : begin : " << num << std::endl;
283  for(size_t index=0;index<num;index++) {
284  a_out << "xy : " << index
285  << " " << a_xys[2*index]
286  << " " << a_xys[2*index+1]
287  << std::endl;
288  }
289  a_out << "dump_vertex_array_xy : end." << std::endl;
290  }

◆ enable_light() [1/2]

void tools::sg::render_action::enable_light ( unsigned int  a_light,
const vec3f a_dir,
const colorf a_col 
)
inline

Definition at line 108 of file render_action.

110  {
111  enable_light(a_light,
112  a_dir[0],a_dir[1],a_dir[2],
113  a_col[0],a_col[1],a_col[2],1);
114  }

◆ enable_light() [2/2]

virtual void tools::sg::render_action::enable_light ( unsigned int  ,
float  ,
float  ,
float  ,
float  ,
float  ,
float  ,
float   
)
pure virtual

◆ end_gsto()

virtual void tools::sg::render_action::end_gsto ( )
pure virtual

◆ line_width()

virtual void tools::sg::render_action::line_width ( float  )
pure virtual

◆ load_matrices_from_state()

void tools::sg::render_action::load_matrices_from_state ( )
inline

Definition at line 95 of file render_action.

95  {
96  const sg::state& _state = state();
97  load_proj_matrix(_state.m_proj);
98  load_model_matrix(_state.m_model);
99  }

◆ load_matrices_to_identity()

void tools::sg::render_action::load_matrices_to_identity ( )
inline

Definition at line 91 of file render_action.

◆ load_model_matrix()

virtual void tools::sg::render_action::load_model_matrix ( const mat4f )
pure virtual

◆ load_proj_matrix()

virtual void tools::sg::render_action::load_proj_matrix ( const mat4f )
pure virtual

◆ max_lights()

virtual unsigned int tools::sg::render_action::max_lights ( )
pure virtual

◆ normal() [1/2]

void tools::sg::render_action::normal ( const vec3f a_vec)
inline

Definition at line 152 of file render_action.

152 {normal(a_vec[0],a_vec[1],a_vec[2]);}

◆ normal() [2/2]

virtual void tools::sg::render_action::normal ( float  ,
float  ,
float   
)
pure virtual

◆ operator=()

render_action& tools::sg::render_action::operator= ( const render_action a_from)
inline

Definition at line 86 of file render_action.

86  {
87  parent::operator=(a_from);
88  return *this;
89  }

◆ point_size()

virtual void tools::sg::render_action::point_size ( float  )
pure virtual

◆ render_manager()

virtual sg::render_manager& tools::sg::render_action::render_manager ( )
pure virtual

◆ restore_state()

virtual void tools::sg::render_action::restore_state ( unsigned int  )
pure virtual

◆ set_blend()

virtual void tools::sg::render_action::set_blend ( bool  )
pure virtual

◆ set_cull_face()

virtual void tools::sg::render_action::set_cull_face ( bool  )
pure virtual

◆ set_depth_test()

virtual void tools::sg::render_action::set_depth_test ( bool  )
pure virtual

◆ set_lighting()

virtual void tools::sg::render_action::set_lighting ( bool  )
pure virtual

◆ set_line_smooth()

virtual void tools::sg::render_action::set_line_smooth ( bool  )
pure virtual

◆ set_point_smooth()

virtual void tools::sg::render_action::set_point_smooth ( bool  )
pure virtual

◆ set_polygon_offset()

virtual void tools::sg::render_action::set_polygon_offset ( bool  )
pure virtual

◆ set_shade_model()

virtual void tools::sg::render_action::set_shade_model ( shade_type  )
pure virtual

◆ set_winding()

virtual void tools::sg::render_action::set_winding ( winding_type  )
pure virtual

The documentation for this class was generated from the following file:
tools::gl::triangle_strip_to_triangles_nms
void triangle_strip_to_triangles_nms(size_t a_npt, const float *a_xyzs, const float *a_nms, float *&a_pxyzs, float *&a_pnms)
Definition: glprims:307
tools::sg::render_action::draw_vertex_array
virtual void draw_vertex_array(gl::mode_t, size_t, const float *)=0
tools::sg::render_action::clear_color
virtual void clear_color(float, float, float, float)=0
tools::gl::triangles
mode_t triangles()
Definition: glprims:20
tools::gl::triangle_fan
mode_t triangle_fan()
Definition: glprims:22
tools::gl::lines
mode_t lines()
Definition: glprims:17
tools::sg::render_action::draw_vertex_color_normal_array
virtual void draw_vertex_color_normal_array(gl::mode_t, size_t, const float *, const float *, const float *)=0
tools::gl::line_strip
mode_t line_strip()
Definition: glprims:19
tools::sg::render_action::color4f
virtual void color4f(float, float, float, float)=0
tools::sg::render_action::add_triangles_normal
bool add_triangles_normal(size_t a_floatn, const float *a_xyzs, const float *a_nms)
Definition: render_action:156
tools::gl::triangle_strip
mode_t triangle_strip()
Definition: glprims:21
tools::sg::render_action::enable_light
virtual void enable_light(unsigned int, float, float, float, float, float, float, float)=0
tools::gl::points
mode_t points()
Definition: glprims:16
tools::sg::render_action::load_proj_matrix
virtual void load_proj_matrix(const mat4f &)=0
tools::sg::render_action::draw_vertex_color_array
virtual void draw_vertex_color_array(gl::mode_t, size_t, const float *, const float *)=0
tools::sg::render_action::normal
virtual void normal(float, float, float)=0
tools::sg::render_action::draw_vertex_array_xy
virtual void draw_vertex_array_xy(gl::mode_t, size_t, const float *)=0
tools::sg::matrix_action::m_identity
mat4f m_identity
Definition: matrix_action:129
tools::gl::line_loop
mode_t line_loop()
Definition: glprims:18
tools::sg::render_action::load_model_matrix
virtual void load_model_matrix(const mat4f &)=0
tools::sg::render_action::draw_vertex_normal_array
virtual void draw_vertex_normal_array(gl::mode_t, size_t, const float *, const float *)=0
tools::sg::render_action::draw_vertex_normal_array_texture
virtual void draw_vertex_normal_array_texture(gl::mode_t, size_t, const float *, const float *, gstoid, const float *)=0
tools::sg::states::state
const sg::state & state() const
Definition: states:76