Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / c++ question

Author
Message
RomuluS85
18
Years of Service
User Offline
Joined: 10th Apr 2006
Location:
Posted: 19th Jan 2011 16:54
i have a struct sVect3D (basically a structure holding x,y,z coordinates. i also have a camera class (basically used for all the info on the camera, and some different ways of manipulating the camera position, most of which isn't implemented (yet - mainly because i ran to a snag...)

i want to return sVect3D from GetAngle();

been 4 years since i last touched c++ compiler so i have like no idea what i'm doing atm





so how should i define the GetAngle()?
what i want to do, is instead of writing


i want to write something like



i hope someone understands half of what i'm trying to do
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 19th Jan 2011 20:53 Edited at: 19th Jan 2011 21:03
Make sure you #include the header that declares the struct where you want to use it.

Then use it like any other type:


“C++ : Where friends have access to your private members.”
-Gavin Russell Baker

Login to post a reply

Server time is: 2024-11-19 14:42:33
Your offset time is: 2024-11-19 14:42:33