glArrayElement

Aus DGL Wiki
Version vom 7. Januar 2005, 02:56 Uhr von Flash (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
Hinweis: Dieser Artikel ist noch unvollständig.
(Mehr Informationen/weitere Artikel)

{{{1}}}

Incomplete.jpg

glArrayElement


Name

glArrayElement - rendert ein Vertex mithilfe des angegebenen Vertexfeldelements (vertex array element).

Delphi-Spezifikation

procedure glArrayElement(i: TGLint);


Parameter

i Spezifiziert einen Index bezüglich der aktivierten Vertexdatenfelder (Vertex Data Arrays).


Beschreibung

glArrayElement commands are used within glBegin/glEnd pairs to specify vertex and attribute data for point, line, and polygon primitives. If GL_VERTEX_ARRAY is enabled when glArrayElement is called, a single vertex is drawn, using vertex and attribute data taken from location i of the enabled arrays. If GL_VERTEX_ARRAY is not enabled, no drawing occurs but the attributes corresponding to the enabled arrays are modified.

Use glArrayElement to construct primitives by indexing vertex data, rather than by streaming through arrays of data in first-to-last order. Because each call specifies only a single vertex, it is possible to explicitly specify per-primitive attributes such as a single normal per individual triangle.

Changes made to array data between the execution of glBegin and the corresponding execution of glEnd may affect calls to glArrayElement that are made within the same glBegin/glEnd period in nonsequential ways. That is, a call to glArrayElement that precedes a change to array data may access the changed data, and a call that follows a change to array data may access original data.


Hinweise

glArrayElement ist erst ab OpenGL Version 1.1 or später verfügbar.

glArrayElement wird von Displaylisten aufgenommen. Wenn glArrayElement in eine Displayliste geschrieben wird, werden auch die notwendigen Feldwerte (angegeben durch den Feldzeiger und die Aktivierungen) in die Displayliste eingetragen. Da die Feldzeiger und Aktivierungen auf der Clientseite liegen, beeinflussen ihre Werte die Displayliste wenn diese erstellt wird, nicht aber wenn diese ausgeführt wird.


Siehe auch

glColorPointer, glDrawArrays, glEdgeFlagPointer, glGetPointerv, glIndexPointer, glInterleavedArrays, glNormalPointer, glTexCoordPointer, glVertexPointer