TQASubmitVerticesGouraud
A drawing engine may define a method to submit Gouraud vertices.
typedef void (*TQASubmitVerticesGouraud) ( const TQADrawContext *drawContext, unsigned long nVertices, const TQAVGouraud *vertices);
drawContext- A draw context.
nVertices- The number of Gouraud vertices pointed to by the
verticesparameter.vertices- A pointer to an array of Gouraud vertices.
DESCRIPTION
YourTQASubmitVerticesGouraudfunction should prepare to render a Gouraud-shaded triangular mesh in the draw context specified by thedrawContextparameter using the vertices pointed to by theverticesparameter. The actual triangulation and drawing of the mesh does not occur until an application calls the QADrawTriMeshGouraud function.The calling application is responsible for managing the memory occupied by the Gouraud vertices. Your
TQASubmitVerticesGouraudfunction should not copy the vertex data pointed to by theverticesparameter.SPECIAL CONSIDERATIONS
TheTQASubmitVerticesGouraudmethod is optional. If your drawing engine does not support triangle meshes, QuickDraw 3D RAVE decomposes a triangle mesh into individual triangles when the user calls theQASubmitVerticesGouraudfunction to submit a triangle mesh.There is no QuickDraw 3D RAVE function that an application can use to unsubmit a triangle mesh. Your drawing engine must manage memory in some appropriate manner.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help