Sign in to follow this  
Medo Mex

Scaling sprite to be the same size as the screen size

Recommended Posts

I have a sprite, rendering it like the following:

D3DXVECTOR2 scale(1.0f, 1.0f);

D3DXMatrixTransformation2D(&mat, NULL, 0.0f, &scale, NULL, NULL, NULL);
sprite->Draw(sprite_texture, NULL, NULL, NULL, sprite_color);

I need to set the scale to make the sprite size the same as the screen width and height.

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