Difference between revisions of "TextureBase"
From GiderosMobile
(added getTexelSize method) |
(removed language stuff) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<!-- GIDEROSOBJ:TextureBase --> | <!-- GIDEROSOBJ:TextureBase --> | ||
− | ''' | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> |
− | ''' | + | '''Available since:''' Gideros 2011.6<br/> |
− | ''' | + | '''Inherits from:''' [[Object]]<br/> |
=== Description === | === Description === | ||
Line 13: | Line 13: | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
− | [[ | + | [[TextureBase:getHeight]] ''returns the height of the texture in pixels''<br/><!--GIDEROSMTD:TextureBase:getHeight() returns the height of the texture in pixels--> |
− | [[ | + | [[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--> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
− | === | + | === Constants === |
− | [[ | + | [[TextureBase.CLAMP]]<br/><!--GIDEROSCST:TextureBase.CLAMP clamp--> |
− | [[ | + | [[TextureBase.REPEAT]]<br/><!--GIDEROSCST:TextureBase.REPEAT repeat--> |
− | [[ | + | [[TextureBase.RGB565]]<br/><!--GIDEROSCST:TextureBase.RGB565 rgb565--> |
− | [[ | + | [[TextureBase.RGB888]]<br/><!--GIDEROSCST:TextureBase.RGB888 rgb888--> |
− | [[ | + | [[TextureBase.RGBA4444]]<br/><!--GIDEROSCST:TextureBase.RGBA4444 rgba4444--> |
− | [[ | + | [[TextureBase.RGBA5551]]<br/><!--GIDEROSCST:TextureBase.RGBA5551 rgba5551--> |
− | [[ | + | [[TextureBase.RGBA8888]]<br/><!--GIDEROSCST:TextureBase.RGBA8888 rgba8888--> |
|} | |} | ||
{{GIDEROS IMPORTANT LINKS}} | {{GIDEROS IMPORTANT LINKS}} |
Revision as of 20:05, 11 June 2021
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 |