Closed
Description
Update:
Reopen for DrawNodeEx v1.0
FIRST:
Because of possible side effects with class DrawNode
the extension DrawNodeEx
aka DrawNode v2
is still in the experimental phase and may encounter bugs or stability or compatibility issues when used.
DrawNodeEx is not only a class for drawing primitives, it's more:
- It's
DrawNode v2
- It's a kind of sprite created from drawing primitives!
- Using primitive draw objects mostly free of copyrights (ideal for indie programmer)
- Smaller apps
Features:
Individual line width
setDNLineWidth();
getDNLineWidth();
Default value: `1.0f`
Scale/Rotation/Position
Scale:
setDNScale()
setDNScaleX()
setDNScaleY()
Rotation:
setDNRotation()
getDNRotation()
setDNCenter()
getDNCenter()
Position:
setDNPosition()
getDNPosition()
general
ensureDNValues()
restoreDNValues()
resetDNValues()
- Planed APIs:
enableDNTransform()
getDNObj()
explodeDNObj()
transformDNObj()
morphDNObj()
createAnimDNObj()
New drawMethods:
drawStar()
drawSolidStar()
- Add initial
DrawNode v2
as extensionDrawNodeEx
to axmol as experimental -
DrawNode
API compatible - Add individual line width for drawing primitives
- Scale drawing primitives without changing the individual line width.
- Rotate drawing primitives around a customized center
- Useful tests
- funktional
- performance/robustness
- compare
DrawNode
vsDrawNode v2
- Code Cleanup
- Remove/Add some comments
- Reduce compiler warnings
- Documentation, Uncyclo
- Info about AX_TRANSPARENT