texture_get_texel_height(texid)
Jump to navigation
Jump to search
Description
Gets the height of the given texture in pixels, or the height of a texel in the texture sampler, and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
texid | integer | index of the texture |
Return Values
integer: Returns the height of the texture in pixels.
Example Call
// demonstrates texturing a primitive with a non power of two texture
draw_vertex(texture_get_texel_width(mytexture), 0, texture_get_width(mytexture), 0);
draw_vertex(0, texture_get_texel_height(mytexture), 0, texture_get_height(mytexture));