mardi 6 avril 2021

What's the difference between Data Oriented and Data Driven Programs?

I know a bit about data oriented design, like rather than having a class for a single object, you have a class which contains multiple objects, like instead of:

struct Circle { int x, y; int radius;  };

You would have:

struct Circles { std::vector<int> xpos; std::vector<int> ypos; std::vector radii };

(I hope that this is a correct interpretation of data oriented design) However, is there like a data driven way of doing this or what?

Aucun commentaire:

Enregistrer un commentaire