c++ - DirectX Overlay - Font Wrapper Error -
i'm trying overlay text directx game , found fontwrapper on internet. link : https://fw1.codeplex.com/
i included header file fw.h
, made main.cpp
code inside main.cpp :
#include "fw.h" void drawtext(id3d11device *pdevice, id3d11devicecontext *pcontext) { ifw1factory *pfw1factory; hresult hresult = fw1createfactory(fw1_version, &pfw1factory); ifw1fontwrapper *pfontwrapper; hresult = pfw1factory->createfontwrapper(pdevice, l"arial", &pfontwrapper); pfontwrapper->drawstring( pcontext, l"hello world",// string 128.0f,// font size 100.0f,// x position 50.0f,// y position 0xff0099ff,// text color, 0xaabbggrr 0// flags (for example fw1_restorestate keep context states unchanged) ); pfontwrapper->release(); pfw1factory->release(); }
after i'm getting these errors : error get
ps:i'm using visual studio 2012 , code inside main.cpp , copied official website show sample. if don't know how fix , please tell me how overlay text on directx game , little text , rest.
thanks in advance. :)
Comments
Post a Comment