Directx 9 with 나우캠퍼스
-
3D 게임 1강. Direct3D 기본 환경 만들기Directx 9 with 나우캠퍼스 2022. 8. 25. 16:26
우선 Visual Studio에서 Win API 환경의 프레임워크를 생성해준다. 1. Win32 API 기본 코드 생성 1) 엑셀레이더 코드 제거 - 불필요한 변수인 hAccelTable변수를 제거하고 관련된 코드도 제거한다. HACCEL hAccelTable; - WinMain에 있는 GetMessage 루프문에서도 hAccelTable관련 내용을 지운다. 변경 전) while (GetMessage(&msg, nullptr, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } 변경 후) while (GetMessage(&msg, nullptr, ..
-
Directx 9 설정Directx 9 with 나우캠퍼스 2022. 8. 22. 15:41
1. Directx 9 설치하기 https://darkcatgame.tistory.com/6 Visual studio2017 DirectX9 SDK 세팅 세팅 환경 윈도우10 레드스톤5 Visual Studio 2017 DirectX9 SDK(June 2010) DirectX9 SDK(June 2010) 다운로드 : https://www.microsoft.com/en-us/download/details.aspx?id=6812 D.. darkcatgame.tistory.com 참고로, 현재 글 작성일. 2022-08-22 기준 Visual Studio 2022에 적용해도 문제없음. 참고로 플랫폼은 Win32으로 설정해야함. (x86 = Win32) 이거 때문에 작성자 개고생함. 2. MSDN 이용하기 함수..