1 2Name 3 4 SUN_mesh_array 5 6Name Strings 7 8 GL_SUN_mesh_array 9 10Contact 11 12 Jack Middleton, Sun (Jack.Middleton 'at' sun.com) 13 14Status 15 16 Shipping (version 1.1) 17 18Version 19 20 $Date: 02/03/14 08:48:06 $Revision: 1.3 $ 21 22Number 23 24 257 25 26Dependencies 27 28 OpenGL 1.1 is required 29 The extension is written against the OpenGL 1.3 Specification. 30 31Overview 32 33 34 This extension defines a new mesh primitive. 35 The primitive can only be used with vertex arrays and cannot be used in 36 immediate mode. The application must arrange the vertices in row major format. 37 For example if a quad mesh is 4 vertices wide the, vertices in the first 38 row are the first 4 vertices and vertices in the second row are vertices 5 39 through 8. 40 41IP Status 42 43 There are no known IP issues. 44 45Issues 46 47 1. Should glDrawMultiMeshArraysSUN and/or glDrawRangeMeshArraysSUN 48 be included? 49 50 No. small meshes are not that common. A mesh is like a series of 51 triangle or quad meshes already. 52 53 54New Procedures and Functions 55 56 glDrawMeshArraysSUN( GLenum mode, GLint first, GLsizei count, GLsizei width ) 57 58New Tokens 59 60 Accepted by the <mode> parameter of DrawMeshArraysSun, 61 62 QUAD_MESH_SUN 0x8614 63 TRIANGLE_MESH_SUN 0x8615 64 65Additions to Chapter 2 of the 1.3 GL Specification (OpenGL Operation) 66 67 Section 2.8 Vertex Arrays: 68 69 The command 70 71 void DrawMeshArraysSUN( enum mode, int first, sizei count, sizei width ); 72 73 constructs a mesh primitive using the elements first through first+count-1 74 of each enabled array. The mode specifies if it is a quad mesh or triangle 75 mesh. The only token values accepted by mode are QUAD_MESH_SUN and 76 TRIANGLE_MESH_SUN. Width specifies how many vertices are in each row 77 of the mesh. The elements must be arranged in row major order within the 78 arrays. 79 80Additions to Chapter 3 of the 1.3 GL Specification (Rasterization) 81 82 None 83 84 85Additions to Chapter 4 of the 1.3 GL Specification (Per-Fragment Operations 86and the Framebuffer) 87 88 None 89 90Additions to Chapter 5 of the 1.3 GL Specification (Special Functions) 91 92 None 93 94 95Additions to Chapter 6 of the 1.3 GL Specification (State and State Requests) 96 97 None 98 99Additions to the GLX / WGL / AGL Specifications 100 101 None 102 103GLX Protocol 104 105 None 106 107Errors 108 109 INVALID_VALUE is generated if <count> is not an even multiple of 110 width. 111 112 INVALID_ENUM is generated if <mode> is not QUAD_MESH_SUN or 113 TRIANGLE_MESH_SUN. 114 115New State 116 117 None 118