Sign in to follow this  
derek7

how to initialize ?

Recommended Posts

take a look: void f() { static D3DXMATRIX matrix; ZeroMemory(&matrix, sizeof(D3DXMATRIX)); .... } this way,every time the matrix will be zero. so how to have this way: static D3DXMATRIX matrix = ZeroMemroy(...); I know this not work,just give some tip. so how to do? I must do this way? int static i = 0;i++;if (i ==1)ZeroMemory(&matrix, sizeof(D3DXMATRIX));

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this