Class GLTexture
GL Texture object from image
Constructors
| Name | Description |
|---|---|
this
(resourceId, mipmapLevels)
|
|
this
(buf, mipmapLevels)
|
Fields
| Name | Type | Description |
|---|---|---|
_dx
|
int | |
_dy
|
int | |
_resourceId
|
string | |
_tdx
|
int | |
_tdy
|
int | |
_texture
|
GLObject!(2,3553) | |
_refCount
|
int | count of references to this object from Ref |
Properties
| Name | Type | Description |
|---|---|---|
imageSize[get]
|
Point | |
texture[get]
|
GLObject!(2,3553) | returns texture object |
textureId[get]
|
uint | returns texture id |
refCount[get]
|
int | returns current value of reference counter |
Methods
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
~this
|