नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
A vertex buffer holds data for a list of vertices. The data for each vertex can include position, color, normal vector, texture co-ordinates, and so on. An index buffer holds integer indexes (offsets) into a vertex buffer, and is used to define and render an object made up of a subset of the full list of vertices.
The definition of a single vertex is often up to the application to define, such as:
struct CUSTOMVERTEX {
FLOAT x, y, z; // The position
FLOAT nx, ny, nz; // The normal
DWORD color; // RGBA color
FLOAT tu, tv; // The texture coordinates.
};
The definition of CUSTOMVERTEX would then be passed to the graphics driver when creating vertex buffers.
Related topics