On Tue, 5 Oct 1999, [iso-8859-1] Rub�n wrote:

> On 1999/Oct/05, Jos Hulzink wrote:
> 
> > struct kgi_3dtriangle {int x0,y0,z0,x1,y1,z1,x2,y2,z2};
> > 
> > Comments please !
> 
>       I don't like this kind of 3dtriangle at all, it needs 9 copies of
> data to draw a triangle, maybe it's insignificant when you must call later
> ioctl, which surely eats up more cpu. But when you implement multiple
> commands (one call for each triangle is very slow), it will be more
> significant. I would propose this alternative:
> 
> struct kgi_3dvertex { int x,y,z;};
> 
> struct kgi_3dtriangle { kgi_3dvertex *v0, *v1, *v2; };

        What about the exta fields (W, specular/diffuse color, texture
coords, vertex fog)?  

Jon 

---
'Cloning and the reprogramming of DNA is the first serious step in 
becoming one with God.'
        - Scientist G. Richard Seed

Reply via email to