Hi everyone,
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
dear beginner ?
1/ where did u find this tutorial ?
2/ u should move these out of the Render ( ) function :
orangecoding said:
HRESULT hResult = FW1CreateFactory(FW1_VERSION, &pFW1Factory);hResult = pFW1Factory->CreateFontWrapper(g_pd3dDevice, L"roatingcube", &pFontWrapper);
move them to your initdevice( ) at the end of it… for example.
look at tutorial 14 here (and the others, it has good tutes in there):
https://www.braynzarsoft.net/viewtutorial/q16390-braynzar-soft-directx-11-tutorials
all the best ?
found this at github: https://github.com/mindaptiv/Hello-Cube-Windows/tree/master/Tutorial04
orangecoding said:
however moving those lines to initDevice() does not solve my problems..
correct, it was not going to solve your problem, i asked u to move it because you were recreating the font object on every render call; no need ?
orangecoding said:
I will take a look at the tutorial that you provided!
ok
Hi There, were you able to draw the test with spinning cube, can you please provided me the sample code. When the drawText() is called cube is not drawn. how to make both working?