vertex_texcoord

Set UV coordinates for the texture being used for the vertex.

Syntax:

GML Code Example

vertex_texcoord(buffer, u, v);


Argument Description
buffer The buffer to write the information to.
u The first texture coordinate to use (0 - 1).
v The second texture coordinate to use (0 - 1).


Returns: N/A


Description

This function will set the texture coordinates to use for the vertex currently being defined for the custom primitive. You supply the buffer to write the data into as well as the UV position within the texture to use.


Example:

GML Code Example

vertex_texcoord(buff, 0, 0);

The above code will set the UV values of the vertex being defined.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here