TQADrawVTexture
A drawing engine may define a method to draw texture-mapped objects defined by vertices. This method is optional and must be supported only by drawing engines that support texture mapping and do not want calls toQADrawVTextureto be replaced by calls to theQADrawPoint,QADrawLine, orQADrawTriTexturemethods.
typedef void (*TQADrawVTexture) ( const TQADrawContext *drawContext, unsigned long nVertices, TQAVertexMode vertexMode, const TQAVTexture vertices[], const unsigned long flags[]);
drawContext- A draw context.
nVertices- The number of vertices contained in the
verticesarray.vertexMode- A vertex mode. See "Vertex Modes" (page 1-56) for a description of the available vertex modes.
vertices- An array of texture vertices.
flags- An array of triangle flags, or the value
NULL. See "Triangle Flags Masks" (page 1-63) for a description of the available triangle flags. This parameter is valid only if thevertexModeparameter contains the valuekQAVertexMode_Tri,kQAVertexMode_Strip, orkQAVertexMode_Fan.DESCRIPTION
YourTQADrawVTexturefunction should draw the vertices in the array specified by theverticesparameter into the draw context specified by thedrawContextparameter, according to the vertex modes flag specified by thevertexModeparameter. For instance, if the value of thevertexModeparameter iskQAVertexMode_Polyline, then the vertices in that array are interpreted as defining a polyline (a set of connected line segments). Texture mapping (using the texture determined by the value of thekQATag_Texturestate variable) should be applied to whatever objects are drawn.
- IMPORTANT
- The vertex modes
kQAVertexMode_PointandkQAVertexMode_Lineare supported only by drawing engines that support thekQAOptional_OpenGLfeature. All other drawing engines should ignore requests to texture map points or lines.![]()
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help