Jump to content

Accessing window or context by another class in CPP


ErhanK
 Share

Go to solution Solved by SpiderPig,

Recommended Posts

Hello, I created a C++ project and I have "Game" class and "Player" class..App class is creating game class.Game class is creating Player class and player class is creating camera etc..

How i can access or reference context or window class in the player class? For example : i want to call window->GetMousePosition() in the player class.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...