GM: d3d vertex color texture

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is d3d_vertex_texture_color(x,y,z,xtex,ytex,col,alpha). It appears incorrectly here because of technical restrictions.
The correct title of this article is d3d_vertex_texture_color(). It appears incorrectly here because of technical restrictions.


Arguments

x = x coordinate of the vertex to add

y = y coordinate of the vertex to add

z = z coordinate of the vertex to add

xtex = horisontal component of the texture coordinate

ytex = vertical component of the texture coordinate

col = colour of the point to be drawn

alpha = alpha of the point to be drawn

Limitations

Registered

Note: Please remove limitations and port them in the "Remarks" section at the end of the article.

This function adds a vertex with a texture to the primitive currently being drawn. It will be drawn with its own colour and alpha, specified in the function parameters. The parameters xtex and ytex will usually lie between 0 and 1. 0 being the left/top of the texture and 1 being right/bottom of the texture. All points in between can be represented using a number between 0 and 1. You can however put a number greater than 1 if you want the texture to repeat along the surface. You must set texture_set_repeat(true) to achieve this effect.

[edit] See Also

This article was originally found at the Game Maker Knowledge Base, contributed by monkey dude.
See the talk page for details
Personal tools