Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

Wrapper Design Problem

Started by CloudNine May 20, 2003 at 2:00 AM 0 replies 250+ views
Original Post
CloudNine
CloudNine
Hi, I''ve been working on my wrapper again I have two main classes, CGOApp and CGOMesh. CGOApp holds the application details, including the D3D device. CGOMesh holds mesh details. The problem is that every time I want to alter something with the mesh, I have to do this:
mymesh.SetDevice(cApp.GetDevice());
//Alter the mesh
cApp.SetDevice(mymesh.GetDevice());
 
Should I make the classes friends, and how would I go about doing that?
CloudNine
CloudNine
How do other wrappers apporach this?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.