GLTexture

GL Texture object from image

Constructors

this
this(string resourceId, int mipmapLevels)
Undocumented in source.
this
this(ColorDrawBuf buf, int mipmapLevels)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
uv
float[2] uv(int x, int y)

image coords to UV

uv
float[2] uv(Point pt)
Undocumented in source. Be warned that the author may not have intended to support it.
uv
float[2] uv()

return UV coords for bottom right corner

Properties

imageSize
Point imageSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Tex2D texture [@property getter]

returns texture object

textureId
uint textureId [@property getter]

returns texture id

Variables

_dx
int _dx;
Undocumented in source.
_dy
int _dy;
Undocumented in source.
_resourceId
string _resourceId;
Undocumented in source.
_tdx
int _tdx;
Undocumented in source.
_tdy
int _tdy;
Undocumented in source.
_texture
Tex2D _texture;
Undocumented in source.

Meta