Original Post
Hi, I recently coded a Object factory where in you can pass objects and it will automatically render everything. My question is should I pass the device object into the Object factory and have that pass into the objects render method. Or should I have a device for every object and pass the device object into the constructor and have it throughout the entire class object. I was thinking I only need when Im rendering so I could just pass it into the render method. What do you guys think?