Adding too many includes

I have many individual classes for components. Some are Buttons some are Windows and so on. Each class has a function to render its own self on its own private OpenGL texture. Problem is that if it does render itself in that class, it needs to have the #include OPENGl BLAH BLAH BLAH. Is it bad that every class or many classes have those libraries extended to them? Maybe, should there be one ComponentRender class that renders for those classes to avoid this problem?
closed account (o1vk4iN6)
It's your choice, no one can tell you to do it one way or the other, other then your own reasoning to.
It's difficult to say. Design decisions are never "once size fits all".

That said... it's not uncommon for all files in a project to include a small set of common headers.
Topic archived. No new replies allowed.