Go to the documentation of this file.
4 #ifndef tools_sg_back_area
5 #define tools_sg_back_area
50 static const desc_fields s_v(parent::node_desc_fields(),12,
97 parent::search(a_action);
98 if(a_action.
done())
return;
100 if(a_action.
done())
return;
114 ,
color(colorf_white())
147 parent::operator=(a_from);
169 float xb = -
width*0.5f;
170 float xe =
width*0.5f;
174 float zshadow = -0.005f;
176 float zborder = 0.01f;
179 float zz = zback+zshadow;
183 mat->color = colorf_black();
196 vtxs->
add(xb+dx,yb+dy,zz);
197 vtxs->
add(xe+dx,yb+dy,zz);
198 vtxs->
add(xe+dx,ye+dy,zz);
199 vtxs->
add(xb+dx,ye+dy,zz);
217 unsigned int ncol = 50;
224 float dr = (col_end.
r()-col_beg.
r())/ncol;
225 float dg = (col_end.
g()-col_beg.
g())/ncol;
226 float db = (col_end.
b()-col_beg.
b())/ncol;
227 float da = (col_end.
a()-col_beg.
a())/ncol;
228 vec4f dcol(dr,dg,db,da);
238 for(
unsigned int index=0;index<ncol;index++) {
270 vtxs->
add(xe,yb+r,zz);
271 vtxs->
add(xe,ye-r,zz);
274 float angle = dangle;
278 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
284 vtxs->
add(xe-r,ye,zz);
287 vtxs->
add(xb+r,ye,zz);
293 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
299 vtxs->
add(xb,ye-r,zz);
302 vtxs->
add(xb,yb+r,zz);
308 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
314 vtxs->
add(xb+r,yb,zz);
317 vtxs->
add(xe-r,yb,zz);
323 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
329 vtxs->
add(xe,yb+r,zz);
365 vtxs->
add(xe,yb+r,zz);
366 vtxs->
add(xe,ye-r,zz);
369 float angle = dangle;
373 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
379 vtxs->
add(xe-r,ye,zz);
382 vtxs->
add(xb+r,ye,zz);
388 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
394 vtxs->
add(xb,ye-r,zz);
397 vtxs->
add(xb,yb+r,zz);
403 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
409 vtxs->
add(xb+r,yb,zz);
412 vtxs->
add(xe-r,yb,zz);
418 for(
unsigned int i=0;i<nslice;i++,angle+=dangle) {
424 vtxs->
add(xe,yb+r,zz);
#define TOOLS_NODE(a__class, a__sclass, a__parent)
#define TOOLS_FIELD_DESC_NODE_CLASS(a__class)
#define TOOLS_ARG_FIELD_DESC(a__field)