printing text issue

2 views
Skip to first unread message

Kevin

unread,
Mar 25, 2008, 10:07:44 PM3/25/08
to DXFramework
Howdy All. I'm trying to print text to the window but it doesn't ever
show up! In the debug console it keeps saying

D3DX: ID3DXSprite::Draw called outside a Begin/End pair

Any ideas? Here's my code for it.

std::wstring nothingInteresting(L"Test");
myFont.Render2D(nothingInteresting, D3DXVECTOR2(50, 50), WHITE,
D3DXVECTOR2(1, 1), false);

and this is how i load my font

myFont.Load(L"Times New Roman", 16, FW_NORMAL);

Thanks for any help!

voi...@gmail.com

unread,
Mar 25, 2008, 10:10:11 PM3/25/08
to DXFramework
What function are you making the Render2D call in? It needs to be in
GameState Render2D.
Reply all
Reply to author
Forward
0 new messages