Go to the documentation of this file.
4 #ifndef tools_sg_render_action
5 #define tools_sg_render_action
58 virtual void color4f(
float,
float,
float,
float) = 0;
67 virtual void normal(
float,
float,
float) = 0;
72 float,
float,
float,
float) = 0;
80 :parent(a_out,a_ww,a_wh){}
87 parent::operator=(a_from);
102 clear_color(a_color[0],a_color[1],a_color[2],a_color[3]);
105 color4f(a_color[0],a_color[1],a_color[2],a_color[3]);
112 a_dir[0],a_dir[1],a_dir[2],
113 a_col[0],a_col[1],a_col[2],1);
117 const float* _xyzs = vec_data<float>(a_xyzs);
122 const float* _xys = vec_data<float>(a_xys);
127 const std::vector<float>& a_xyzs,
128 const std::vector<float>& a_rgbas){
129 const float* _xyzs = vec_data<float>(a_xyzs);
130 const float* _rgbas = vec_data<float>(a_rgbas);
135 const std::vector<float>& a_xyzs,
136 const std::vector<float>& a_nms){
137 const float* _xyzs = vec_data<float>(a_xyzs);
138 const float* _nms = vec_data<float>(a_nms);
143 const std::vector<float>& a_xyzs,
144 const std::vector<float>& a_rgbas,
145 const std::vector<float>& a_nms){
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);
217 const float* _xyzs = vec_data<float>(a_xyzs);
223 const float* _xyzs = vec_data<float>(a_xyzs);
265 size_t num = a_floatn/3;
266 if(num<3)
return false;
267 size_t nxyzs = (num-2)*3*3;
269 std::vector<float> m_xyzs(nxyzs);
270 std::vector<float> m_nms(nxyzs);
272 {
float* pxyzs = vec_data<float>(m_xyzs);
273 float* pnms = vec_data<float>(m_nms);
280 size_t num = a_floatn/2;
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]
289 a_out <<
"dump_vertex_array_xy : end." << std::endl;
#define TOOLS_ACTION_NO_COPY(a__class, a__sclass, a__parent)