DDex3

所属分类:Windows Phone
开发工具:Visual C++
文件大小:1157KB
下载次数:43
上传日期:2008-03-10 11:41:43
上 传 者greathemin
说明:  Windows Mobile6 DDraw案例3
(Windows Mobile6 DDraw Case 3)

文件列表:
DDex3\ddex3.cpp (15310, 2007-03-30)
DDex3\ddex3.rc (893, 2007-03-30)
DDex3\DDEx3.sln (1624, 2007-03-30)
DDex3\DDEx3.vcproj (6068, 2007-03-30)
DDex3\ddutil.cpp (10004, 2007-03-30)
DDex3\ddutil.h (1870, 2007-03-30)
DDex3\directx.ico (1078, 2007-03-30)
DDex3\frntback.bmp (615478, 2007-03-30)
DDex3\resource.h (897, 2007-03-30)
DDex3\stdafx.cpp (921, 2007-03-30)
DDex3\stdafx.h (2589, 2007-03-30)
DDex3\DDEx3.ncb (6130688, 2008-03-05)
DDex3\DDEx3.vcproj.AARON.new.user (1835, 2008-03-07)
DDex3\DDEx3.suo (11776, 2008-03-05)
DDex3 (0, 2008-03-03)
DDex3\ddex3.aps (617640, 2008-03-06)

Code Sample Name: DDEx3 Feature Area: Direct Draw Description: DDEx3 demonstrates the use of off-screen surfaces. This program shows how to initialize DirectDraw and create a DirectDraw surface. It creates a back surface and uses page flipping to alternately display the contents of the front and back surfaces. Other techniques demonstrated include color fills and using GDI functions on a DirectDraw surface. The DDEx3 sample is an extension of DDEx2. In addition to the front and back surfaces, the program creates two off-screen surfaces and loads bitmaps into them. It calls the IDirectDrawSurface4::BltFast method to copy the contents of an off-screen surface to the back surface, alternating the source surface on each frame. After it blits the bitmap to the back surface, DDEx3 flips the front and back surfaces. Relevant APIs: DirectDraw Usage: Load the project from Visual Studio 2005, and build and deploy normally. DDEx3 requires no user input. Press the ACTION button to quit the program. Assumptions: The device supports hardware flipping support. Requirements: Visual Studio 2005, Windows Mobile 6 Professional SDK Activesync 4.5. This sample requires hardware flipping support. If the display driver doesn't support page flipping the sample will exit during initialization. Requires at least 1.2 MB of video RAM. ** For more information about this code sample, please see the Windows Mobile SDK help system. **

近期下载者

相关文件


收藏者