d3d_model_draw(id,x,y,z,texid)

From ENIGMA

Jump to: navigation, search

Overloads

d3d_model_draw(id)
d3d_model_draw(id,texid)
d3d_model_draw(id,x,y,z)
d3d_model_draw(id,x,y,z,texid)

Description

Draws the given model at the given coordinates using the given texture. The texture and coordinate parameters are overloads and do not have to be passed allowing you to bind multi-textures with texture_set_stage for use with shaders since texture binding calls are expensive.

Parameters

Parameter Description
id Index of the model
x X coordinate of the translation to draw at
y Y coordinate
z Z coordinate
texid Index of the texture

Return Values

void: This function does not return anything.

Example Call

// demonstrates drawing a model
d3d_model_draw(mymod, 0, 0, 0, mytex);
// with no texture
d3d_model_draw(mymod, 0, 0, 0);
// with no translation
d3d_model_draw(mymod, mytex);
// with no texture or transformation
d3d_model_draw(mymod);
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox