thanks for everybodys help here! i have having some issue at the moment deciding which direction i should go for GUI!
i tried to integrate with win32, and i got a window up and i can draw into a box in the win 32 window, but sfml is not firing any event commands for key press events and stuff now. (instead of me showing code, image me taking the event and keypress code from the tutorial and adding it to the win32 tutorial). do i maybe have to proccess events throught win32 api now
??
GetEvent(); is returning that the event stack is empty i presume.
second
i tried cpGUI with all the elements.
first i tried to link with cpGUI.lib and all goes fine. when i JUST declare cpGuiContainer... and nothing else ... i get linker errors....
Error 1 error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj) MSVCRT.lib 2dtile
and more
so i have included cpGUI.cpp and cpGUI.h into my project and tried to build them, but when i do, i get these linker errors...
Error 1 error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::White" (?White@Color@sf@@2V12@B) cpGUI.obj 2dtile
Error 2 error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Black" (?Black@Color@sf@@2V12@B) cpGUI.obj 2dtile
and a few more...
so i thought maybe it wasnt linking with the graphics library because i use #pragma comment to link, so i added #pragma comment(lib, "sfml-graphics.lib") to cpGUI.h but it didnt help at all..
( i also tried linking through build properties... no luck)
any ideas?
i thought i should mention i like the idea of cpGUI better than using win32 so that is top priority.