I am trying to develop a kind of graphics engine using OpenGL 4.3 and I am having difficulty designing it.
My goal is still simple: there is a set of values (coordinates of vertices, textures, normals) and a graphic primitive is drawn on them, for example a square. I almost managed to design everything, but when it came to textures, I had to sculpt a lot of crutches, which indicates design errors. I myself can not create a good project plan for the implementation of such a conclusion and I would like to ask for help. Perhaps someone already made a thread like this graph engine and could advise how to break all this, how to create a hierarchy of inheritances. I will use the similarity of the engine graph as a simple API for creating banal games such as snake, sapper, chess and others.
PS A big request not to advise ready-made solutions such as units and the like.