gCAD3D 2.35
xa_ga.h
Go to the documentation of this file.
1 
2 
3 
4 // test if surface has texture; 0=no, 1=yes.
5 // iAtt = GA_ObjTab[gaNr].iatt;
6 // if(GA_hasTexture(iAtt) == 1) .. yes
7 // ((ColRGB*)&GA_ObjTab[gaNr].iatt)->vtex
8 #define GA_hasTexture(iAtt)\
9  ((ColRGB*)&iAtt)->vtex
10 
11 
12 // get TextureReference-Index
13 // i1 = GA_getTexRefInd(iAtt);
14 // i1 = ((stru_c3c1*)&GA_ObjTab[gaNr].iatt)->b123;
15 #define GA_getTexRefInd(iAtt)\
16  ((stru_c3c1*)&iAtt)->b123
17 // see also GA_tex_ga2tr
18 
19 
20 // EOF