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.
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.