Changeset 30938 in project


Ignore:
Timestamp:
05/28/14 21:26:15 (6 years ago)
Author:
acharlton
Message:

Document renderable maker data: argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/glls

    r30937 r30938  
    235235* {{mode:}} – The drawing mode to use when drawing the elements of the VAO. Must be one of (opengl-glew’s): {{+points+}}, {{+line-strip+}}, {{+line-loop+}}, {{+lines+}}, {{+line-strip-adjacency+}}, {{+triangles+}}, {{+triangle-strip+}}, {{+triangle-fan+}}, {{+triangles-adjacency+}}, {{+triangle-strip-adjacency+}}, or {{+patches+}}. Defaults to {{+triangles+}}.
    236236* {{n-elements:}} – The number of elements (vertices) to draw.
    237 * {{element-type:}} – The type of the values in the VAO’s element array. Must be one of {{+unsigned-byte+}}, {{+unsigned-short+}}, or `+unsigned-int+.
     237* {{element-type:}} – The type of the values in the VAO’s element array. Must be one of {{+unsigned-byte+}}, {{+unsigned-short+}}, or {{+unsigned-int+}}.
    238238* {{offset:}} – A byte offset to the location of the desired indices to draw.
     239* {{data:}} – An optional pointer to an appropriate glls renderable object. If not provided, a fresh renderable object will be created. [[https://github.com/AlexCharlton/glls/blob/master/gllsRender.h|gllsRenderable.h]] defines the structs used for renderables. The are chosen based on the number of uniforms present in the pipeline.
    239240
    240241See the [[https://www.opengl.org/sdk/docs/man/html/glDrawElements.xhtml|{{glDrawElements}} documentation]] for more information about these expected arguments.
Note: See TracChangeset for help on using the changeset viewer.