Why are you so desperate to get rid of the entire STL? I mean, a 3D engine is nice, but why not simply use the STL rather than re-write all you need? In some cases it may be faster, but I wouldn't bother with it until you can actually proof it's faster. I think these is merely premature optimization.
Also, have you drawn out the design of the engine yet? Like a UML diagram?



1Likes
LinkBack URL
About LinkBacks




Mind you, I didn't make vector3 inherit from vector2, that's an interesting idea. But I think it will still backfire. What if you want a function like length(), which is different for vector2 and vector3? If you have a vector3 which you pass to a function expecting a vector2, the length() might report something unexpected. And you wouldn't want to make the function virtual because virtualness is a bad idea for something as primitive as a vector.
