IWebGLTexture interface

Ashley's avatar
Medal
Construct Team Founder
Published 14 Nov, 2017
63 words
<1 min

The IWebGLTexture interface represents a texture in the WebGL renderer.

This interface cannot be directly constructed. It is only available through other APIs.

Methods

GetWidth()

GetHeight()

Return the width or height of the texture. Note this refers to the source texture. Construct's in-editor spritesheeting engine means the texture could be significantly larger than an object's image to be rendered from it.