VEGO-Engine / Engine

2 stars 0 forks source link

Add flexible render order #81

Open Nanogamer7 opened 1 hour ago

Nanogamer7 commented 1 hour ago

The render order is currently defined by a hard-coded order of list: https://github.com/VEGO-Engine/Engine/blob/e493960fe0c1107662df6446f2f8a12cae27f681/src/GameInternal.cpp#L169-L188 This is sub-optimal, as it restricts the game dev to use our defined groups for objects, and they are always in the same fixed order. A better approach would be to either allow arbitrary orders, perhaps using a z-index.

Nanogamer7 commented 1 hour ago

Required for #53

ineslelin commented 1 hour ago

Yeah, z-index seems pretty useful for that if i understood it correctly