Difference between revisions of "TextureBase"
From GiderosMobile
(removed language stuff) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
=== Methods === | === Methods === | ||
[[TextureBase:getHeight]] ''returns the height of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels--> | [[TextureBase:getHeight]] ''returns the height of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels--> | ||
+ | [[TextureBase:getSize]] ''returns the size of a texture''<br/><!--GIDEROSMTD:TextureBase:getSize() returns the size of a texture--> | ||
[[TextureBase:getTexelSize]] ''returns the size of a texel''<br/><!--GIDEROSMTD:TextureBase:getTexelSize() returns the size of a texel, 1/(gpu texture width), 1/(gpu texture height)--> | [[TextureBase:getTexelSize]] ''returns the size of a texel''<br/><!--GIDEROSMTD:TextureBase:getTexelSize() returns the size of a texel, 1/(gpu texture width), 1/(gpu texture height)--> | ||
[[TextureBase:getWidth]] ''returns the width of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getWidth() returns the width of the texture in pixels--> | [[TextureBase:getWidth]] ''returns the width of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getWidth() returns the width of the texture in pixels--> | ||
+ | [[TextureBase:update]] ''changes an existing texture content''<br/><!--GIDEROSMTD:TextureBase:update(pixels,width,height) changes an existing texture content--> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
+ | |||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
Line 28: | Line 31: | ||
[[TextureBase.RGBA5551]]<br/><!--GIDEROSCST:TextureBase.RGBA5551 rgba5551--> | [[TextureBase.RGBA5551]]<br/><!--GIDEROSCST:TextureBase.RGBA5551 rgba5551--> | ||
[[TextureBase.RGBA8888]]<br/><!--GIDEROSCST:TextureBase.RGBA8888 rgba8888--> | [[TextureBase.RGBA8888]]<br/><!--GIDEROSCST:TextureBase.RGBA8888 rgba8888--> | ||
+ | [[TextureBase.Y8]]<br/><!--GIDEROSCST:TextureBase.Y8 y8--> | ||
+ | [[TextureBase.A8]]<br/><!--GIDEROSCST:TextureBase.A8 a8--> | ||
+ | [[TextureBase.YA8]]<br/><!--GIDEROSCST:TextureBase.YA8 ya8--> | ||
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Latest revision as of 21:21, 5 September 2024
Supported platforms:
Available since: Gideros 2011.6
Inherits from: Object
Description
TextureBase is the base class for Texture and TexturePack classes. It provides a common functionaly to texture related classes.
- TextureBase.CLAMP = "clamp"
- TextureBase.REPEAT = "repeat"
MethodsTextureBase:getHeight returns the height of the texture in pixels |
EventsConstantsTextureBase.CLAMP |