| Property | Value |
|---|---|
| Native Name | DRAW_TEXTURED_POLY |
| Hash | 0x29280002282F1928 |
| Return Type | void |
| Parameters | x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), x3 (float), y3 (float), z3 (float), red (int), green (int), blue (int), alpha (int), textureDict (char*), textureName (char*), u1 (float), v1 (float), w1 (float), u2 (float), v2 (float), w2 (float), u3 (float), v3 (float), w3 (float) |
Description: This native draws a textured polygon between three vectors in the game world. It's commonly utilized for rendering deadline trailing lights, with additional details available in the deadline.ytd file. UVW mapping details (u,v,w parameters) can be found on various internet resources. This native is specifically used for drawing textured polygons on the screen, where UV coordinates define the texture mapping and color/alpha parameters define the appearance of the polygon. This native should be called every frame for continuous rendering.
NativeDB Introduced: v877
Parameters
x1(float) — The x-coordinate of the first vector.y1(float) — The y-coordinate of the first vector.z1(float) — The z-coordinate of the first vector.x2(float) — The x-coordinate of the second vector.y2(float) — The y-coordinate of the second vector.z2(float) — The z-coordinate of the second vector.x3(float) — The x-coordinate of the third vector.y3(float) — The y-coordinate of the third vector.z3(float) — The z-coordinate of the third vector.red(int) — The red color component of the polygon (0 - 255).green(int) — The green color component of the polygon (0 - 255).blue(int) — The blue color component of the polygon (0 - 255).alpha(int) — The alpha value of the polygon (0 - 255).textureDict(char*) — The name of the texture dictionary.textureName(char*) — The name of the texture.u1(float) — The u-coordinate of the first UV mapping.v1(float) — The v-coordinate of the first UV mapping.w1(float) — The w-coordinate of the first UV mapping.u2(float) — The u-coordinate of the second UV mapping.v2(float) — The v-coordinate of the second UV mapping.w2(float) — The w-coordinate of the second UV mapping.u3(float) — The u-coordinate of the third UV mapping.v3(float) — The v-coordinate of the third UV mapping.w3(float) — The w-coordinate of the third UV mapping.