Help~~
there is no time or number of sprites showing on my screen.
problem in lesson 21
problem in lesson 21
- Attachments
-
- font.rar
- (6.96 MiB) Downloaded 148 times
Re: problem in lesson 21
i'd help but for some reason i can download everyone else code but everytime i download yours the whole things fails
What you call a bug...I call a new feature!
Re: problem in lesson 21
because i used vs 2012 ?XxWalKaxX wrote:i'd help but for some reason i can download everyone else code but everytime i download yours the whole things fails
Re: problem in lesson 21
i dont think my messages are sending
What you call a bug...I call a new feature!
Re: problem in lesson 21
@XxWalKaxX
Open the project settings, go to "Configuration Properties->General" and change the platform toolset from "v110" to "v100" or select "inherit from...."
You might also need to reimport the directx includes and libraries.
@hugebaozi
I think the problem is that you are loading the font on a separate surface, but when you draw a character you are using the fonts own surface, which in this case has no size nor any pixels on it.
Are you sure you followed the tutorials?
Well, what ever.
What you need to do is, on your load font function, allocate the font->surface and then when you send the load font on bitmap, send the fonts surface and get rid of your separate font surface. You don't need it.
Open the project settings, go to "Configuration Properties->General" and change the platform toolset from "v110" to "v100" or select "inherit from...."
You might also need to reimport the directx includes and libraries.
@hugebaozi
I think the problem is that you are loading the font on a separate surface, but when you draw a character you are using the fonts own surface, which in this case has no size nor any pixels on it.
Are you sure you followed the tutorials?
Well, what ever.
What you need to do is, on your load font function, allocate the font->surface and then when you send the load font on bitmap, send the fonts surface and get rid of your separate font surface. You don't need it.
ʕ •ᴥ•ʔ