Profile

ALLEGRO_VERTEX(3alleg5)

ALLEGRO_VERTEX(3alleg5)

NAME

ALLEGRO_VERTEX - Allegro 5 API

SYNOPSIS

C]
#include <allegro5/allegro_primitives.h>
typedef struct ALLEGRO_VERTEX ALLEGRO_VERTEX;
]

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 when you must initialize all members of this struct when you[aq]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.

I]Fields:]

[bu]
x, y, z - Position of the vertex (float)
[bu]
color - ALLEGRO_COLOR(3alleg5) structure, storing the color of the vertex
[bu]
u, v - Texture coordinates measured in pixels (float)

SEE ALSO

ALLEGRO_PRIM_ATTR(3alleg5)

Latest Tech News
Your Notes

Sign in/Sign up

Signing in to our system allows you to post your contributions and vote on the contributions of others. It will also allow you to get extra perts like having your favorites in the cloud and having your persistent personal notes wherever you go. More will be added as we scale up our services.

By signing in to our system, you agree our Member Terms and Conditions


Sign-in with one of the following services

Almost finished!

Please select a screen name for NET SOUP.



 Please send me news and special offers from NET SOUP.

 I have read and accept the Terms of Use.

COMPLIMENTARY EXAMPLES

We have no example yet for this entry


Your Name
Now

Community Contributions and Discussions

Modify your search

View Documentation

Jobs from Indeed