huh? how did you get that impression? (gl.Texture returns a boolean not a string!)Argh wrote:So, therefore, the answer would be...
Code: Select all
local sizex, sizey = gl.TextureInfo(gl.Texture(file))
Edit:
Code: Select all
local loaded = gl.Texture(textureString)
if (loaded) then
local texinfo = gl.TextureInfo(textureString)
Spring.Echo('Texture dims', texinfo.xsize, texinfo.ysize)
end