Add four unsigned byte values to a vertex.


GML Code Example

vertex_float4(buffer, byte, byte, byte, byte);

Argument Description
buffer The buffer to write the information to.
byte The first input value.
byte The second input value.
byte The third input value.
byte The fourth input value.

Returns: N/A


This function will add four unsigned byte values (0 - 255) to the vertex data. The vertex must have been formatted correctly to accept this using the vertex_format_add_custom function.


GML Code Example

vertex_ubyte4(buff, irandom(255), irandom(255), irandom(255), 127);

The above code will add four values to the vertex data 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