Coder Social home page Coder Social logo

Remove Legacy Code about engo HOT 9 CLOSED

paked avatar paked commented on August 19, 2024
Remove Legacy Code

from engo.

Comments (9)

EtienneBruines avatar EtienneBruines commented on August 19, 2024

Can I ask what's wrong with Drawable, and how it should look instead?

from engo.

paked avatar paked commented on August 19, 2024

@EtienneBruines It fulfils the same purpose as Renderable, although... Perhaps we should use it... Renderable is quite ugly and relies on moving state.

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

@paked Using either one of those would indeed be better; as they both sound like they're doing the same.

from engo.

paked avatar paked commented on August 19, 2024

@EtienneBruines I personally think Drawable is the better design (not sure why I wrote it down then...)

cc: @matiwinnetou

from engo.

matiwinnetou avatar matiwinnetou commented on August 19, 2024

very useful info, thx. Helps me to learn the current status of the project.

from engo.

paked avatar paked commented on August 19, 2024

@matiwinnetou Do you have any opinions on Drawable vs Renderable?

from engo.

matiwinnetou avatar matiwinnetou commented on August 19, 2024

@paked At the moment sadly no, as I understand still too little the difference. In general, however, from my experience I can say that one should avoid state like fire. It is not always possible though or complicates code a lot. You mentioned that Drawable has no state where as Renderable assumes state.

In our ECS app, which believe or not is actually a web application. (We created own ecs-web framework in Java 8 we have even various Worlds, like ImmutableWorld, RequestWorld (mutable world), to make this separation clear. In our design worlds form a chain, where a world can have a parent attached.

from engo.

paked avatar paked commented on August 19, 2024

@EtienneBruines What about you? (Drawable vs Renderable )

from engo.

EtienneBruines avatar EtienneBruines commented on August 19, 2024

I do think the Drawable is much clearer. Since there'll be a Shader for each PriorityLevel (which people can add themselves), all we need from whatever we want to draw, is the Texture, and size/location.

I have no idea what the View() (float32, float32, float32, float32) function is supposed to do though.

But I have no idea what's best-practice for ECS. I just think about what's easier to use/implement.

from engo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.