Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualsimpler

Posted 17 November 2012 - 09:19 AM

You can change
[source lang="cpp"]camPosition = D3DXVec3TransformNormal(&DefaultForward,&DefaultForward, camRotationMatrix );[/source]
To
[source lang="cpp"]D3DXVec3TransformNormal(&camPosition,&DefaultForward, camRotationMatrix );[/source]
Since the first argument gets set to the result of the operation as well. Now camPosition don't have to be a pointer any more.

#3simpler

Posted 17 November 2012 - 09:19 AM

You can change
[source lang="cpp"]camPosition = D3DXVec3TransformNormal(&DefaultForward,&DefaultForward, camRotationMatrix );[/source]
To
[source lang="cpp"]D3DXVec3TransformNormal(&camPosition,&DefaultForward, camRotationMatrix );[/source]
Since the first argument gets set to the result of the operation as well. Now camPosition don't have to be a pointer any more.

#2simpler

Posted 17 November 2012 - 09:15 AM

You can change
[source lang="cpp"]camPosition = D3DXVec3TransformNormal(&DefaultForward,&DefaultForward, camRotationMatrix );[/source]
To
[source lang="cpp"]D3DXVec3TransformNormal(&camPosition,&DefaultForward, camRotationMatrix );[/source]
Since the first argument is the result of the operation as well. Now camPosition don't have to be a pointer any more.

#1simpler

Posted 17 November 2012 - 09:15 AM

You can change
[source lang="cpp"]camPosition = D3DXVec3TransformNormal(&DefaultForward,&DefaultForward, camRotationMatrix );[/source]
To

[source lang="cpp"]D3DXVec3TransformNormal(&camPosition,&DefaultForward, camRotationMatrix );[/source]

Since the first argument is the result of the operation as well. Now camPosition don't have to be a pointer any more.

PARTNERS