It doesn’t need to look like a progress bar.
All I need it to say is “Loading images…” while the texture is loading, then saying “Done” when it’s done loading.
I have no idea, how to do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve done something like this in a DirectX application I was working on.
The idea behind it is to use the
D3DXSPRITEinterface to draw text to the screen. Begin drawing the scene with the Direct3D device, begin drawing with the sprite, call the sprite’sDrawTextfunction, and then end the sprite and the device scene.NOTE: This requires that your Direct3D device and sprite be initialized before you start loading textures.
The way I did it was that I had a stack of
Dialog/Popupobjects that I drew to the screen every time myredrawfunction was called, so before I loaded the textures, I added aDialogwith the loading message, redrew the screen, then started loading, and then replaced/modified the dialog with the “Done!” message, and redrew again.Hope it helps!