Hello,
A new Gideros version is available, mainly focused on performance improvements in specific cases.
Full change log:
Improvements[gfx/sprite] new 'addChildrenAt' call to add several children to specific positions inside a sprite in one call (faster)
[gfx/particles] addParticles is much more efficient with a lot of particles
[export/html5] Change code to support WASM64 (not yet enabled)
[layout] getLayoutContsraints, getLayoutParameters and getLayoutInfo now accept a mask of needed values in return for faster processing
[styling] More color operations in styles
Fixes[export/html5] Fix some existing files not replaced on export
[plugin/tts] Use correct lua context in callbacks
[Library] Fix 3D library shader
Download it from here:http://giderosmobile.com/download
Comments
will update the wiki to the best of my ability asap, God's willing!
Sprite:addChildrenAt() takes a single argument, a table with keys indicating the position where to add a new child, and values the children themselves.
Exemple:
Likes: MoKaLux
Likes: MoKaLux
Likes: MoKaLux
Sorry right syntax was probably:
Likes: MoKaLux
Likes: MoKaLux
Likes: MoKaLux
- Sprite:setHiddenChildren
- Sprite:isOnStage
- Sprite:setStyle
- Sprite:resolveStyle
- Sprite:addChildrenAt
Those are missing because I couldn't wrap my head around them
- sprite:setWorldAlign
- sprite:updateStyle (is this one actually really easy?)
- sprite:spriteToLocalMatrix
Viva Gideros!
Likes: hgy29
Sprite:spriteToLocalMatrix(otherSprite) returns a Matrix that transforms a coordinate in otherSprite space into a coordinate in current sprite space.
Sprite:updateStyle() performs what need to be done when the style table of a Sprite has changed. It is called automatically by Gideros or when application:applyStyles() is called.
It can be overriden by your own classes if needed, so it is lua visible so that you can call it in such cases.
Likes: MoKaLux