15bd8deadSopenharmony_ci 25bd8deadSopenharmony_ciName 35bd8deadSopenharmony_ci 45bd8deadSopenharmony_ci SUN_mesh_array 55bd8deadSopenharmony_ci 65bd8deadSopenharmony_ciName Strings 75bd8deadSopenharmony_ci 85bd8deadSopenharmony_ci GL_SUN_mesh_array 95bd8deadSopenharmony_ci 105bd8deadSopenharmony_ciContact 115bd8deadSopenharmony_ci 125bd8deadSopenharmony_ci Jack Middleton, Sun (Jack.Middleton 'at' sun.com) 135bd8deadSopenharmony_ci 145bd8deadSopenharmony_ciStatus 155bd8deadSopenharmony_ci 165bd8deadSopenharmony_ci Shipping (version 1.1) 175bd8deadSopenharmony_ci 185bd8deadSopenharmony_ciVersion 195bd8deadSopenharmony_ci 205bd8deadSopenharmony_ci $Date: 02/03/14 08:48:06 $Revision: 1.3 $ 215bd8deadSopenharmony_ci 225bd8deadSopenharmony_ciNumber 235bd8deadSopenharmony_ci 245bd8deadSopenharmony_ci 257 255bd8deadSopenharmony_ci 265bd8deadSopenharmony_ciDependencies 275bd8deadSopenharmony_ci 285bd8deadSopenharmony_ci OpenGL 1.1 is required 295bd8deadSopenharmony_ci The extension is written against the OpenGL 1.3 Specification. 305bd8deadSopenharmony_ci 315bd8deadSopenharmony_ciOverview 325bd8deadSopenharmony_ci 335bd8deadSopenharmony_ci 345bd8deadSopenharmony_ci This extension defines a new mesh primitive. 355bd8deadSopenharmony_ci The primitive can only be used with vertex arrays and cannot be used in 365bd8deadSopenharmony_ci immediate mode. The application must arrange the vertices in row major format. 375bd8deadSopenharmony_ci For example if a quad mesh is 4 vertices wide the, vertices in the first 385bd8deadSopenharmony_ci row are the first 4 vertices and vertices in the second row are vertices 5 395bd8deadSopenharmony_ci through 8. 405bd8deadSopenharmony_ci 415bd8deadSopenharmony_ciIP Status 425bd8deadSopenharmony_ci 435bd8deadSopenharmony_ci There are no known IP issues. 445bd8deadSopenharmony_ci 455bd8deadSopenharmony_ciIssues 465bd8deadSopenharmony_ci 475bd8deadSopenharmony_ci 1. Should glDrawMultiMeshArraysSUN and/or glDrawRangeMeshArraysSUN 485bd8deadSopenharmony_ci be included? 495bd8deadSopenharmony_ci 505bd8deadSopenharmony_ci No. small meshes are not that common. A mesh is like a series of 515bd8deadSopenharmony_ci triangle or quad meshes already. 525bd8deadSopenharmony_ci 535bd8deadSopenharmony_ci 545bd8deadSopenharmony_ciNew Procedures and Functions 555bd8deadSopenharmony_ci 565bd8deadSopenharmony_ci glDrawMeshArraysSUN( GLenum mode, GLint first, GLsizei count, GLsizei width ) 575bd8deadSopenharmony_ci 585bd8deadSopenharmony_ciNew Tokens 595bd8deadSopenharmony_ci 605bd8deadSopenharmony_ci Accepted by the <mode> parameter of DrawMeshArraysSun, 615bd8deadSopenharmony_ci 625bd8deadSopenharmony_ci QUAD_MESH_SUN 0x8614 635bd8deadSopenharmony_ci TRIANGLE_MESH_SUN 0x8615 645bd8deadSopenharmony_ci 655bd8deadSopenharmony_ciAdditions to Chapter 2 of the 1.3 GL Specification (OpenGL Operation) 665bd8deadSopenharmony_ci 675bd8deadSopenharmony_ci Section 2.8 Vertex Arrays: 685bd8deadSopenharmony_ci 695bd8deadSopenharmony_ci The command 705bd8deadSopenharmony_ci 715bd8deadSopenharmony_ci void DrawMeshArraysSUN( enum mode, int first, sizei count, sizei width ); 725bd8deadSopenharmony_ci 735bd8deadSopenharmony_ci constructs a mesh primitive using the elements first through first+count-1 745bd8deadSopenharmony_ci of each enabled array. The mode specifies if it is a quad mesh or triangle 755bd8deadSopenharmony_ci mesh. The only token values accepted by mode are QUAD_MESH_SUN and 765bd8deadSopenharmony_ci TRIANGLE_MESH_SUN. Width specifies how many vertices are in each row 775bd8deadSopenharmony_ci of the mesh. The elements must be arranged in row major order within the 785bd8deadSopenharmony_ci arrays. 795bd8deadSopenharmony_ci 805bd8deadSopenharmony_ciAdditions to Chapter 3 of the 1.3 GL Specification (Rasterization) 815bd8deadSopenharmony_ci 825bd8deadSopenharmony_ci None 835bd8deadSopenharmony_ci 845bd8deadSopenharmony_ci 855bd8deadSopenharmony_ciAdditions to Chapter 4 of the 1.3 GL Specification (Per-Fragment Operations 865bd8deadSopenharmony_ciand the Framebuffer) 875bd8deadSopenharmony_ci 885bd8deadSopenharmony_ci None 895bd8deadSopenharmony_ci 905bd8deadSopenharmony_ciAdditions to Chapter 5 of the 1.3 GL Specification (Special Functions) 915bd8deadSopenharmony_ci 925bd8deadSopenharmony_ci None 935bd8deadSopenharmony_ci 945bd8deadSopenharmony_ci 955bd8deadSopenharmony_ciAdditions to Chapter 6 of the 1.3 GL Specification (State and State Requests) 965bd8deadSopenharmony_ci 975bd8deadSopenharmony_ci None 985bd8deadSopenharmony_ci 995bd8deadSopenharmony_ciAdditions to the GLX / WGL / AGL Specifications 1005bd8deadSopenharmony_ci 1015bd8deadSopenharmony_ci None 1025bd8deadSopenharmony_ci 1035bd8deadSopenharmony_ciGLX Protocol 1045bd8deadSopenharmony_ci 1055bd8deadSopenharmony_ci None 1065bd8deadSopenharmony_ci 1075bd8deadSopenharmony_ciErrors 1085bd8deadSopenharmony_ci 1095bd8deadSopenharmony_ci INVALID_VALUE is generated if <count> is not an even multiple of 1105bd8deadSopenharmony_ci width. 1115bd8deadSopenharmony_ci 1125bd8deadSopenharmony_ci INVALID_ENUM is generated if <mode> is not QUAD_MESH_SUN or 1135bd8deadSopenharmony_ci TRIANGLE_MESH_SUN. 1145bd8deadSopenharmony_ci 1155bd8deadSopenharmony_ciNew State 1165bd8deadSopenharmony_ci 1175bd8deadSopenharmony_ci None 118