Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension DrawNodeEx ‐ a new kind of sprite class (*experimental phase*) #1579

Closed
5 of 13 tasks
aismann opened this issue Jan 4, 2024 · 4 comments
Closed
5 of 13 tasks
Labels
wontfix This will not be worked on

Comments

@aismann
Copy link
Contributor

aismann commented Jan 4, 2024

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 extension DrawNodeEx 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 vs DrawNode v2
  • Code Cleanup
    • Remove/Add some comments
    • Reduce compiler warnings
  • Documentation, Wiki
    • Info about AX_TRANSPARENT
@aismann
Copy link
Contributor Author

aismann commented Jan 5, 2024

Add test: Picture
image
image

Copy link

stale bot commented Mar 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 7, 2024
@aismann
Copy link
Contributor Author

aismann commented Mar 11, 2024

No time at the moement.
Close it (can working also with closed item)

@aismann
Copy link
Contributor Author

aismann commented May 7, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant