Cherrytree56567 / Drizzle3D

A Simple 3D Game Engine made in C++, GLFW, ImGui, GLM, Stb_Image and GLAD
Other
9 stars 2 forks source link

Hide and Show Functionality for Object Structs #9

Closed Cherrytree56567 closed 7 months ago

Cherrytree56567 commented 7 months ago

Is your feature request related to a problem? Please describe. Hide and Show functionality is essential for the performance and functionality of some games and while removing the object and then adding it back in as Hide and Show works, this complexity could be removed just by adding the Hide bool.

Describe the solution you'd like I would like to have a Hide bool in the Object Struct. Then, when the Object's are rendered, the render function can block out Object's that have true in the hide bool.

Describe alternatives you've considered I have considered removing the object and then adding it back in to act as Hide and Show but using a Hide bool would remove this complexity.

Additional context . -

Cherrytree56567 commented 7 months ago

Added Functionality in commit: 33be520 Fixed Hide and Show Functionality in commit: 485e70e