graphics.drawTriangle3D

From GTA Connected
Revision as of 12:02, 14 December 2019 by Mex (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |type = function |name = graphics.drawTriangle3D |usage = draw a triangle in 3D space |parameters = Vec3 position1, Vec3 position2, Vec3 positi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

void graphics.drawTriangle3D(Vec3 position1, Vec3 position2, Vec3 position3, int colour1, int colour2, int colour3, Vec2 uv1, Vec2 uv2, Vec2 uv3)

The graphics.drawTriangle3D function is used to draw a triangle in 3D space.

Parameters

1) Vec3 position1 The position of vertex 1 for the triangle.
2) Vec3 position2 The position of vertex 2 for the triangle.
3) Vec3 position3 The position of vertex 3 for the triangle.
4) int colour1 The colour of vertex 1 for the triangle.
5) int colour2 The colour of vertex 2 for the triangle.
6) int colour3 The colour of vertex 3 for the triangle.
7) Vec2 uv1 The UV coordinates of vertex 1 for the triangle.
8) Vec2 uv2 The UV coordinates of vertex 2 for the triangle.
9) Vec2 uv3 The UV coordinates of vertex 3 for the triangle.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.