Class GLTexture

GL Texture object from image

class GLTexture
  : RefCountedObject;

Constructors

NameDescription
this (resourceId, mipmapLevels)
this (buf, mipmapLevels)

Fields

NameTypeDescription
_dx int
_dy int
_resourceId string
_tdx int
_tdy int
_texture GLObject!(2,3553)
_refCount intcount of references to this object from Ref

Properties

NameTypeDescription
imageSize[get] Point
texture[get] GLObject!(2,3553)returns texture object
textureId[get] uintreturns texture id
refCount[get] intreturns current value of reference counter

Methods

NameDescription
isValid ()
uv (x, y) image coords to UV
uv (pt)
uv () return UV coords for bottom right corner
addRef () increments reference counter
releaseRef () decrement reference counter, destroy object if no more references left

Aliases

NameDescription
~this