samedi 18 mai 2019

How to use a generic base class for different sub classes

I am trying to write a rendering software in opengl.

i have different classes for geometry like sphere , circle , rectangle with each class having different variables.

I want to make a base class with the name of geometry and make all these sub classes as part of geometry class.

I will read the Geometry type in the Tree structure and then pass appropriate commands to opengl.

Aucun commentaire:

Enregistrer un commentaire