Record ALLEGRO_VERTEX

Hierarchy
Methods
Properties

Unit

Declaration

type ALLEGRO_VERTEX = record

Description

Defines the generic vertex type, with a 3D position, color and texture coordinates for a single texture. Note that at this time, the software driver for this addon cannot render 3D primitives. If you want a 2D only primitive, set z to 0. Note that you must initialize all members of this struct when you're using it. One exception to this rule are the u and v variables which can be left uninitialized when you are not using textures.

See also
ALLEGRO_PRIM_ATTR
Enumerates the types of vertex attributes that a custom vertex may have.

Overview

Fields

x: AL_FLOAT;
y: AL_FLOAT;
z: AL_FLOAT;
u: AL_FLOAT;
v: AL_FLOAT;
color: ALLEGRO_COLOR;

Description

Fields

x: AL_FLOAT;

Position of the vertex.

y: AL_FLOAT;

Position of the vertex.

z: AL_FLOAT;

Position of the vertex.

u: AL_FLOAT;

Texture coordinates measured in pixels.

v: AL_FLOAT;

Texture coordinates measured in pixels.

color: ALLEGRO_COLOR;

Color of the vertex.


Generated by PasDoc 0.15.0. Generated on 2024-11-10 15:15:06.