본문 바로가기
728x90
반응형

전체 글71

std::to_wstring(int), _tow_s(int, wchar_t, 2 or 10); wchar_t buffer[256] = {}; GetWindowText(g_tow_in, buffer, sizeof(buffer)); ::TextOut(hdc, 100, 100, buffer, lstrlen(buffer)); int i_Value = _wtoi(buffer); std::wstring temp_str = std::to_wstring(i_Value); ::TextOut(hdc, 200, 100, temp_str.c_str(), temp_str.size()); wchar_t buffer[256] = {}; GetWindowText(g_tow_in, buffer, sizeof(buffer)); ::TextOut(hdc, 100, 100, buffer, lstrlen(buffer)); int i_.. 2023. 11. 16.
class static, function static class UserManager { public: static UserManager um; static UserManager* GetInstance() { static UserManager um; std::cout 2023. 10. 5.
github open source rpg *https://github.com/SurajSharma90/SFML_RPG * https://github.com/Paul-Wortmann/Grume/tree/master * https://github.com/piotrek-szczygiel/newland * https://youtu.be/ssJde6l7mrM?si=2VqV3p6LS6H_Hbtz * https://github.com/etorth/mir2x * https://github.com/JIghtuse/cavestory-sdl2/tree/master * https://github.com/srmeier/KnightOnline * https://github.com/i-bardinov/bomberman-sdl2 2023. 10. 3.
SFML CMAKE 결론만 먼저 말하면 https://github.com/piotrek-szczygiel/newland 의 소스 코드를 다운 받아 CMakeLists.txt를 열었을 때 아래와 같이 작성되어 있다. cmake_minimum_required(VERSION 3.1) project(newland) set(SFML_STATIC_LIBRARIES TRUE) find_package( SFML 2.5 COMPONENTS graphics audio REQUIRED) add_definitions(-DTMX_STATIC) include_directories(libraries) file(GLOB_RECURSE SOURCE_FILES ${PROJECT_SOURCE_DIR}/newland/*.cpp ${PROJECT_SOURCE_.. 2023. 10. 2.
728x90
반응형