Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

nick5454

Testing if a D3DXMATRIX is NULL

This topic is 5527 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How would I do that, i guess I would do an operator overload but not sure. I just want to be able to see if it has been intialized with values

Share this post


Link to post
Share on other sites
Advertisement

D3DXMatrix Example;
if(D3DXMatrixIsIdentity(&Example))
// is an identity matrix, not sure if constructor initializes


Share this post


Link to post
Share on other sites
Well I have this

D3DXMATRIX test;

if ( m_bRotateX )
D3DXMatrixRotateX(&test,radAngle);

then later

...

if ( test != NULL )
... do something ...

but the problem is it doesn''t accept null because its numerical. Maybe I should do

if ( &test != NULL )

is that right

Share this post


Link to post
Share on other sites
umm no, local variables can''t be destroyed lke that. test is gaurenteed to exist when you check it for null, and passing the address will always pass because it always exists.

Share this post


Link to post
Share on other sites
I''m not trying to destroy them I just want to know if I have passed data to it yet. thats all

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!