November version of Gideros is ready.
Here is what's new:
Improvements
[core/urlloader] Report error message in corresponding event
[core/application] Handle application:set("statusBar") for Android and iOS
[core/gfx] Allow specifying stencil clear value
[gfx/sprite] Make stencil op inheritable from parents
[plugin/ads] Implement AdReady on Android (for ApplovinMax and AdMob)
[Library] Update ui and 3d libs
Fixes
[gfx/metal] Recreate texture on update if necessary
[gfx/metal] Avoid using too many buffers
[export/apple] Fix render target depth orientation for Metal
[gfx/pixel] Fix extra texture allocation
Download it from here:http://giderosmobile.com/download
Comments
My issue is with Pixel and setTexture:
-when I call setNinePatch the image covers the whole Pixel and reflects the correct size of the Pixel
-when I don't call setNinePatch the image is letterboxed and doesn't cover the whole Pixel which makes the Pixel look smaller than it actually is
To me it seems a little bit misleading as the dimensions of the Pixel are correct but the way the image is letterboxed makes it look smaller than it really is.
Here is some code to demonstrate the effect:
Hope this make sense, thank you
Pixel can draw its texture in three ways:
- letterbox (the default)
- stretched (texture will take all the pixel size)
- nine patch (only center part is stretched)
Switching to nine patch mode is obvious, you just call setNinePatch.
Switching to stretched mode can be done in two ways:
- At creation:
Note that there is no way to return back to letterbox mode
Likes: MoKaLux