next up previous contents
Next: File geomview.c Up: Functions Previous: Local Function DrawTetWithPlane()   Contents


Local Function storetri()

This little inline routine just implements triangle storage. Maybe it will be more sophisticated in the future.

static inline int storetri ( PetscScalar x0, PetscScalar y0, PetscScalar z0, PetscScalar x1, PetscScalar y1, PetscScalar z1, PetscScalar x2, PetscScalar y2, PetscScalar z2, PetscScalar* color )


\begin{cxrefarglist}
\cxrefargitem{PetscScalar x0} X-coordinate of corner 0.
\cx...
...efargitem{PetscScalar* color} R,G,B,A quad for this triangle.
\end{cxrefarglist}

inline int storetri Returns 0 or an error code.



root 2002-06-18