texture_get_height


描述

Returns the height of the texture with the given id, which is always a value within the range 0 - 1. This can then be used when mapping textures to models or primitives.


语法:

texture_get_height(tex);

参数 描述
tex The texture page asset pointer to use


返回:

Real(实数)


例如:

tex_h = texture_get_height(surface_get_texture(global.Surf));

The above code will get the height of the texture taken from a previously created surface.