Archived

This topic is now archived and is closed to further replies.

Zer0

cd3dfont

Recommended Posts

i tried using cd3dfont, whenever i tried to call its function drawtext the app wun start. does anione has the same prob or noes hw to solve mine ? thanx alot.

Share this post


Link to post
Share on other sites
font = new CD3DFont( _T("Arial"), 100, D3DFONT_BOLD );

hr = font->InitDeviceObjects(pID3DDevice);


and this is my code for drawing
hr = font->DrawText( 20, 20, D3DCOLOR_ARGB(255,255,255,0), _T("2D Text") );

i check the 1st hr and there wasn''t ani error.
however whenever i entered the code for drawing the app wun start
thanx.

Share this post


Link to post
Share on other sites
Thanx for the help from me too! I couldn''t figure out the problem, but a quick search in the Gamedev forums gave me this, so I just aprecieate all of the people here who answer questions.

Tazzel3d ~ Zach

Share this post


Link to post
Share on other sites