28 ssgVtxTable::copy_from ( src, clone_flags ) ;
54 ssgColourArray *cl ) : ssgVtxTable( ty, vl, nl, tl, cl )
56 type = ssgTypeVtxTable () ;
86 sgVec3 *vx = (sgVec3 *) vertices ->
get(0) ;
87 sgVec3 *nm = (sgVec3 *) normals ->
get(0) ;
88 sgVec2 *tx = (sgVec2 *) texcoords ->
get(0) ;
89 sgVec4 *cl = (sgVec4 *) colours ->
get(0) ;
91 glDepthMask(GL_FALSE);
92 glPolygonOffset(-15.0f, -20.0f);
93 glEnable(GL_POLYGON_OFFSET_FILL);
98 if ( num_colours == 0 ) glColor4f ( 1.0f, 1.0f, 1.0f, 1.0f ) ;
99 if ( num_colours == 1 ) glColor4fv ( cl [ 0 ] ) ;
100 if ( num_normals == 1 ) glNormal3fv ( nm [ 0 ] ) ;
102 for (
int i = 0 ; i < num_vertices ; i++ )
104 if ( num_colours > 1 ) glColor4fv ( cl [ i ] ) ;
105 if ( num_normals > 1 ) glNormal3fv ( nm [ i ] ) ;
106 if ( num_texcoords > 1 ) glTexCoord2fv ( tx [ i ] ) ;
108 glVertex3fv ( vx [ i ] ) ;
112 glDisable(GL_POLYGON_OFFSET_FILL);
113 glDepthMask(GL_TRUE);
void setOffset(float f, float u)
virtual ssgBase * clone(int clone_flags=0)
virtual ~ssgVtxTableShadow(void)
virtual void copy_from(ssgVtxTableShadow *src, int clone_flags)