void Render( ) { if( NULL = g_pD3DDevice) //IDirect3DDevice9 가 없다면 그릴 수 없으므로 그냥 리턴한다. return; //후면버퍼 채우기 g_pD3DDevice->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, D3DCOLOR_XRGB(0,0,255), 1.f, 0 ); if(SUCCEED(g_pD3DDevice->BeginScene())) //BeginScene 함수가 성공했다면 { //렌더 명령 //BeginScene의 Scene 을 끝낸다. g_pD3DDevice->EndScene( ); } //후면버퍼를 현재의 화면으로 g_pD3DDevice->Present(NULL,NULL,NULL,NULL); }
Getting Started with DirectX Graphics. Microsoft DirectX graphics provedes a set of APIs that you can use to create games and other high-performance multimedia applications. DirectX graphics includes support for high-performance 2-D and 3-D graphics. For 3-D graphics, use the Microsoft Direct3D 11 API. Even if you have Microsoft Direct3D 9-level or Microsoft Direct3D 10-level hardware, you can u..
Posted to the installing thread's message queue when a timer expires. The message is posted by the GetMessage or PeekMessage function. c++ #define WM_TIMER 0x0113 Parameters wParam The timer identifier. lParam A pointer to an application-defined callback function that was passed to the SetTimer function when the timer was installed. Return value Type : LRESULT An application should return zero i..
윈도우 프로그램은 이런 식으로 만들 수 있다 1. 윈도우 헤더를 인클루드하고 #include cf) windows.h : 윈도우 개발자들에게 필요한 매크로들,함수, 데이터타입들, API 함수들을 위한 정의를 포함하는 윈도우의 c 및 c++ 헤더파일 ( c에서도 사용될 수 있는 윈도우용 수많은 함수들을 정의하고 있다.) 2. 윈도우즈 프로그램 시작점(WinMain) 을 정의 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { 3. 윈도우를 만들고 -만들 윈도우특성 정의 -정의 한 윈도우 등록 ( 메모리에 생성 ) 4.화면에 출력하고 4.메세지를 처리하다가 ( 메세지루프) - ..
Windows API = WinAPI = Win32Api ....윈도우 운영체제 에서 사용 가능한 마이크로소프트의 Application Programming Interfaces 모든 윈도우 프로그램은 Windows api와 상호작용을 한다. Developer support is available in the form of a software development kit, Micorsoft Windows SDK cf) Microsoft Windows SDK and its predecessors Platform SDK, and .NET FrameworkSDK, are software development kits(SDKs) from Microsoft that contain documentation, head..