So I'm a weird mix of new to C++ but been programming different(easier) languages for a while, so bare with me please.
I'm trying to make a program to draw in 3d, I created a class for a cube 3d model(as a test) and gave it data for verticies and polygons and gave it an origin xyz point and created an object from that, then did the same with a camera. So here's my thought, I want to be able to switch cameras as needed or have multiple cameras on stage for multiple players, so the projected values of these models will be different depending on what camera is viewing it(projected values being how the xyz coordinate transfers to the xy point on the screen)
so in short:
I need a function kind of like how SFML has
shape.getPosition().x
only in my case it's
3dModelA.model_getProjected(camera1,3).x
3dModelA.model_getProjected(camera1,3).y
3dModelA.model_getProjected(camera1,3).lightLevel
3dModelA.model_getProjected(camera1,3).etc
where 3dmodel is an object created from the 3dmodel class, and camera is also an object created from the camera class, and in this case it's using the values from 3dModelA and camera1 to calculate the projected x, y, z, lightLevel, among other things from verticiy #3
I realize I could just have a function that returns an 2d array and ask for the specific value of the array that coincides with the number I'm looking for, but
3dModelA.model_getProjected(camera1,3).x
is a lot more comprehensive than:
a = model_getProjected(3dModelA,camera1)
cout<<a[1][2]<<endl;