by Structure » Mar 29, 2005 @ 11:56am
Ok, ive not really been exploring the intricacies of the cross platform approach as ive only been developing on the desktop so far,
But if CommonApplication was derived from myapplication, you could still call CMyApplication::InitInstance()first from CCommonApplication::InitInstance()
If you don’t implement CreateSysMemSurfaces in CCommonApplication it will still call the platform dependent function in CMyApplication,
And doing this will save the pointer reference in all of the callbacks as this will be sorted out in the vtable.
Im not saying this is a better way to do it as im sure ive probably missed something important (as always, till it bytes you on the ass!) im just interested in your opinion of the validity of this approach
A float, A float, My kingdom for a float