JSchpp12 / Starlight

A toy renderer utilizing Vulkan
0 stars 0 forks source link

CLEAN: InitRender #41

Open JSchpp12 opened 10 months ago

JSchpp12 commented 10 months ago

This is only prevalent right now in StarObjects but might extend to other classes as development continues. But the existence of the initRender() function in the starObject classes is a bit clunky. This requires that each object has knowledge of this function and properly uses it. It makes better sense to create a virtual class which provides these functions directly and stores the callbacks for these functions in a singular place. Similar to previous work done on the interaction system.

Use Cases

Register a callback function which is responsible for requesting space in descriptor pool.