Original Post
if I put a function into a class, but the function will depend some other class. for example: class skinedmesh { } skinmesh should a resource class. it has not render function. now I add a new function draw, it will depend IDirect3DDevice9 (I know you can pass parameter) so I must add a member data IDirect3DDevice9 m_device to skinnedmesh. how to handle this problem?