Sign in to follow this  

What does ID3DXFont::OnReset do?

This topic is 4840 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

I have my font up and running using ID3DXFont. MSDN says to call ID3DXFont::OnReset after the device has been reset. What does this function actually do? Because my program works the same with and without this function call.

Share this post


Link to post
Share on other sites
I'd imagine it would refresh any sort of internal surface ID3DXFont uses, similar to the release and restore needed by other DX surfaces require when the device gets reset.

Share this post


Link to post
Share on other sites
When you lose the device and recover it, you should reset your resources and buffers. OnReset allows D3DXFont to recreate its internal buffer in this case.

Luck!
Guimo

Share this post


Link to post
Share on other sites

This topic is 4840 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.

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