Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 디자인 패턴
- 디자인패턴
- 빌더 패턴
- 브릿지 패턴
- 동적 데코레이터
- 팩터리 메서드
- 싱글톤 패턴
- 브릿지
- 빌더
- 프로토타입
- 단순한 빌더
- 팩터리
- 컴포지트 빌더
- 프로토타입 중복처리
- 동적 데커레이터
- 그루비 스타일 빌더
- 흐름식 빌더
- 함수형 팩터리
- 추상 팩터리
- 프로토타입 패턴
- 팩터리 패턴
- 싱글턴 패턴
- 싱글턴
- 컴포지트 패턴
- 싱글톤
- 데커레이터 패턴
- 내부 팩터리
- 데커레이터
- 모던C++디자인패턴
- 컴포지트
Archives
- Today
- Total
GGym's Practice Notes
DirectX Setup / stdafx.h 구성하기 본문
1. DirectX SDK 설치
https://www.microsoft.com/en-us/download/details.aspx?id=6812
DirectX SDK - (June 2010)
Download the complete DirectX SDK, which contains the DirectX Runtime and all DirectX software required to create DirectX compliant applications.
www.microsoft.com
S1023에러시 참조 https://support.microsoft.com/en-ca/help/2728613/s1023-error-when-you-install-the-directx-sdk-june-2010
https://support.microsoft.com/en-ca/help/2728613/s1023-error-when-you-install-the-directx-sdk-june-2010
Cookies are disabled Please enable cookies and refresh the page
support.microsoft.com
2. 프로젝트 생성 후 SDK 경로로 사용자 매크로 등록 (폴더 include, lib/x86)
3. VC++디렉터리에 등록한 매크로 라이브러리 추가
4. 미리 컴파일된 헤더파일 작성
#pragma once
// Window
#include <Windows.h>
#include <assert.h>
// STL
#include <string>
#include <vector>
#include <bitset>
#include <list>
#include <map>
#include <functional>
#include <mutex>
using namespace std;
// DirectX Library
#include <d3d11.h>
#include <D3DX11.h>
#include <D3DX10.h>
#include <D3DX10math.h>
#include <d3dx11effect.h>
#include <d3dcompiler.h>
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "d3dx11.lib")
#pragma comment(lib, "d3dx10.lib")
#pragma comment(lib, "Effects11d.lib")
#pragma comment(lib, "d3dcompiler.lib")
// ImGui
#include <imgui.h>
#include <imguiDx11.h>
#pragma comment(lib, "imgui.lib")
// FrameWork
// Macro
#define SAFE_DELETE(p) { if(p) {delete(p); (p) = NULL;}}
#define SAFE_DELETE_ARRAY(p) { if(p) {delete[] (p); (p) = NULL;}}
#define SAFE_RELEASE(p) { if(p) {(p)->Release(); (p) = NULL;}}
typedef D3DXVECTOR3 Vector3;
typedef D3DXVECTOR2 Vector2;
typedef D3DXMATRIX Matrix;
typedef D3DXCOLOR Color;
typedef D3DXQUATERNION Quaternion;
// Extern Global
extern UINT Width;
extern UINT Height;
extern HWND Hwnd;
extern wstring Title;
// DXGI(DirectX Graphic Infrastructure) 그래픽스에 관련한 기초적인 기능 제공
// SwapChain 버퍼 포인터가 서로 교체되면서 화면을 구성
extern IDXGISwapChain* SwapChain;
// PC 자원 생성, CPU와 RAM의 영역 기능, 지원 점검과 자원 할당
extern ID3D11Device* Device;
// 실제 도화지 RTV -> HDC 의 역할
extern ID3D11RenderTargetView* RTV;
extern ID3D11Device* Device;
'DirectX' 카테고리의 다른 글
DirectX 12을 시작하기 전에 알아야 할 기본 지식 (1) | 2022.12.24 |
---|---|
DirectX 초기화 / 삼각형 그리기 (0) | 2020.08.13 |
DirectX 쓰기 전 WinAPI 준비 (0) | 2020.08.12 |