- Documentation
- Client functions
- dxGetMaterialSize
Function
dxGetMaterialSize
Returns the width and height of a material: a texture, a render target, a browser or a shader.
Syntax
int, int dxGetMaterialSize(element material)Arguments
materialelement- The material.
Returns
Width and height or false.
Example
local w, h = dxGetMaterialSize(dxCreateTexture("img/logo.png"))