Category Archives: DirectX
Particle System 예제
Terrain 예제
Camera 예제
xfile converter
Pandasoft – 3D Max object를 .x 파일로 export 해주는 plug-in tool http://www.andytather.co.uk/Panda/directxmax_downloads.aspx
Conv3ds의 옵션 인수의 지정
http://telnet.or.kr/sec_directx/index.html?init_mode=api_contents_read&api_no=86
DirectX에서 한글 사용하기
-Visual Studio .NET2005에서
Project->Properties->General 에서 프로젝트 “문자집합”을 “유니코드 문자 집합 사용”
-main.cpp에서
#include <TCHAR.h> // 한글을 위해서 UNICODE를 쓴다 – Kyoung Shin Park (5/2/2007)
ID3DXMesh* Text = 0;
char str[] = “게임프로그래밍”;
// … 중간 생략
 LOGFONT lf;
 ZeroMemory(&lf, sizeof(LOGFONT));
 lf.lfHeight         = 50;    // in logical units
 lf.lfWidth          = 1;    // in logical units
 lf.lfEscapement     = 0;        
 lf.lfOrientation    = 0;     
 lf.lfWeight         = 500;   // boldness, range 0(light) – 1000(bold)
 lf.lfItalic         = false;   
 lf.lfUnderline      = false;    
 lf.lfStrikeOut      = false;    
 lf.lfCharSet        = HANGEUL_CHARSET;
 lf.lfOutPrecision   = 0;              
 lf.lfClipPrecision  = 0;          
 lf.lfQuality        = 0;           
 lf.lfPitchAndFamily = 0;    
 //strcpy(lf.lfFaceName, “Times New Roman”); // font style
 _tcscpy(lf.lfFaceName, L”Gulim”); // font style
// 또는  _tcscpy(lf.lfFaceName, TEXT(“Gulim”));
// … 중간 생략
D3DXCreateText(Device, hdc, L”게임프로그래밍”, 0.001f, 0.4f, &Text, 0, 0); // create text
// 또는 D3DXCreateText(Device, hdc, TEXT(“게임프로그래밍”), 0.001f, 0.4f, &Text, 0, 0);
// … 중간 생략
Text->DrawSubset(0);
Mesh 예제
D3D Font
D3D Font – DSound 예제에 cfont를 추가한 예제
1284106747.zip
D3D Font – cfont, d3dxfont, id3dxfont 예제
http://dis.dankook.ac.kr/lectures/game070/entry/font-예제