본문 바로가기

Direct2D5

"Hello, World" by Direct2D http://msdn.microsoft.com/en-us/library/windows/desktop/dd756692(v=vs.85).aspx 1. Include Direcr2D Header d2d1.h header를 incude 한다. #include "d2d1.h" 2. load library file d2d1.lib 파일을 load 한다. #pragma comment(lib, "d2d1.lib") 3. Create an ID2D1Factory ID2D1Factory를 생성한다. ID2D1Factory* pD2DFactory = NULL; HRESULT hr = D2D1CreateFactory( D2D1_FACTORY_TYPE_SINGLE_THREADED, &pD2DFactory ); 4. Create.. 2014. 7. 9.
Improving the performance of Direct2D apps http://msdn.microsoft.com/en-us/library/windows/desktop/dd372260(v=vs.85).aspx Improving the performance of Direct2D appsAlthough Direct2D is hardware accelerated and is meant for high performance, you must use the features correctly to maximize throughput. The techniques we show here are derived from studying common scenarios and might not apply to all app scenarios. Therefore, careful understa.. 2014. 6. 24.
Creating a Simple Direct2D Application (Direct2D 프로그램 만들기) Creating a Simple Direct2D Application http://msdn.microsoft.com/en-us/library/windows/desktop/dd370994(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/windows/desktop/dd317121(v=vs.85).aspx 1. include header, dll or lib load Direct2D 헤더 파일과 DLL을 load 한다. Windows Vista SP2 부터 Direct2D가 정상적으로 지원된다. 그 이전 OS 특히 XP는 지원하지 않는 것을 잊지 말자. #include #include #pragma comment(lib, "d2d1.lib") 2. Create.. 2014. 6. 24.
About Direct2D (Direct2D란?) 1. Graphics APIs in Windows http://msdn.microsoft.com/en-us/library/windows/desktop/ee417756(v=vs.85).aspx#application_compatibility__gdi__and_older_versions_of_direct3d 초기 Windows의 Graphic API는 GDI(Graphic Device Interface)였다. 이 API는 2D를 처리하기 위해서 설계되었고, 윈도우의 사용자 인터페이스 경험(user interface experience)에 대한 기초를 형성했다. DirectDraw와 Direct3D는 하드웨어의 확장으로 Game과 3D 렌더링을 처리하기 위한 API로 도입되었다.Windows XP는 GDI와 D.. 2014. 6. 24.
Direct2D API Overview http://msdn.microsoft.com/en-us/library/windows/desktop/dd317121(v=vs.85).aspx#direct2d_header_files Direct2D API OverviewDirect2D provides an API, similar to Direct3D, for use with C or C++. The API exposes a variety of drawing-related functionality:Render targets for display and off-screen rendering using Direct2D, Direct3D, or GDI.Objects for managing drawing state such as coordinate space tr.. 2014. 6. 12.
LIST