I've been studying gamedev for 2 months now. We use RenderWare at school. RenderWare is written in C, but we use C++. I've now come to see how a mix like that don't always work out as one would like.
RenderWare uses there own types for vectors, matrices and so on. I would like to use my own classes for that, cuz seriously, how can some one stand doing complex math formulas with functions like RwV3dAdd, RwV3dSub, RwV3dCrossProduct, and RwV3dDotProduct, where all functions take a RwV3d pointer as its first argument as the target.
My classes uses operator overloads to do all of that in a clean fashion.
My question is now. In the end, i will always have to use a RenderWare function to do certain things. I wonder if its possible to give a function which needs the type 'RWType', a completely different type, which would be converted when passed to this function i cant change ?
I hope you understand what i meen =P