Original Post
I am having a bit of a trouble with setting up a vertex format. Here I what I want to do: 1) Have a base vertex structure of just locations (tVertexBase). Then derive more advanced vertex structures from that, such as one with texture coordinates. (tVertexLTEX) 2) Have a base shape class (CShapeBase), which holds an array of tVertexBase. I have a seperate class (CPlane) which derives from CShapeBase that will then use tVertexBase. The problem is though, if I wanted to have a "tVertexBase *m_pShapeVerticies" in CShapeBase, then later in CPlane have "tVertexBase *m_pShapeVerticies = tVertlexLTEX[size];" it will throw off the real size of the vert structure and it will make my rendering look incorrectly. Does anyone know how to do what I am trying to do? I have tried templating, but that will cause a problem with the initialization ( http://www.gamedev.net/community/forums/topic.asp?topic_id=527126 )