﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-zfree</title><link>http://www.cppblog.com/zfree/</link><description /><language>zh-cn</language><lastBuildDate>Wed, 15 Apr 2026 00:26:18 GMT</lastBuildDate><pubDate>Wed, 15 Apr 2026 00:26:18 GMT</pubDate><ttl>60</ttl><item><title>D3D设备创建</title><link>http://www.cppblog.com/zfree/archive/2012/04/06/170277.html</link><dc:creator>zfree</dc:creator><author>zfree</author><pubDate>Fri, 06 Apr 2012 08:14:00 GMT</pubDate><guid>http://www.cppblog.com/zfree/archive/2012/04/06/170277.html</guid><wfw:comment>http://www.cppblog.com/zfree/comments/170277.html</wfw:comment><comments>http://www.cppblog.com/zfree/archive/2012/04/06/170277.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zfree/comments/commentRss/170277.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zfree/services/trackbacks/170277.html</trackback:ping><description><![CDATA[<div>d3d设备创建:<br />创建参数结构体<br /><div>/* Resize Optional Parameters */</div><div>typedef struct _D3DPRESENT_PARAMETERS_</div><div>{</div><div>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BackBufferWidth;</div><div>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BackBufferHeight;<br />//后备&nbsp;缓存分辨率必须为显卡支持的分辨率 </div><div>&nbsp; &nbsp; D3DFORMAT &nbsp; &nbsp; &nbsp;BackBufferFormat;<br />//窗口模式下缓冲区格式可以和显示格式不同，d3d支持不同长度的像素格式转化。</div><div>//全屏模式下缓冲区格式必须和显示格式相同,alpha通道无视,。CheckDeviceType可以判断对应的显示格式和后备格式是否支持</div><div>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BackBufferCount;</div><div>//抗锯齿类型和质量。开启后SwapEffect必须为D3DSWAPEFFECT_DISCARD</div><div>&nbsp; &nbsp; D3DMULTISAMPLE_TYPE MultiSampleType;</div><div>&nbsp; &nbsp; DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MultiSampleQuality;</div><div></div><div>&nbsp; &nbsp; D3DSWAPEFFECT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SwapEffect;</div><div>&nbsp; &nbsp; HWND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hDeviceWindow;</div><div>&nbsp; &nbsp; BOOL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Windowed;</div><div>&nbsp; &nbsp; BOOL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EnableAutoDepthStencil;</div><div>&nbsp; &nbsp; D3DFORMAT &nbsp; &nbsp; &nbsp; AutoDepthStencilFormat;</div><div>&nbsp; &nbsp; DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Flags;</div><div></div><div>&nbsp; &nbsp; /* FullScreen_RefreshRateInHz must be zero for Windowed mode */</div><div>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FullScreen_RefreshRateInHz;<br />&nbsp; &nbsp;//提交间隔，设置D3DPRESENT_INTERVAL_DEFAULT则垂直同步，D3DPRESENT_INTERVAL_IMMEDIATE立即提交</div><div>&nbsp; &nbsp; UINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PresentationInterval;</div><div>} D3DPRESENT_PARAMETERS;</div></div><div>后备缓冲区可以用的像素格式有：<br /><div>A2R10G10B10</div><div>A8R8G8B8&nbsp;</div><div>X8R8G8B8&nbsp;</div><div>A1R5G5B5&nbsp;</div><div>X1R5G5B5&nbsp;</div><div>R5G6B5<br />显示格式可以用的像素有:</div></div><div>A2R10G10B10(full-screen mode only)&nbsp;</div><div>X8R8G8B8</div><div>X1R5G5B5</div><div>R5G6B5</div><img src ="http://www.cppblog.com/zfree/aggbug/170277.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zfree/" target="_blank">zfree</a> 2012-04-06 16:14 <a href="http://www.cppblog.com/zfree/archive/2012/04/06/170277.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Irrlicht的Skin网格笔记</title><link>http://www.cppblog.com/zfree/archive/2012/03/13/167784.html</link><dc:creator>zfree</dc:creator><author>zfree</author><pubDate>Tue, 13 Mar 2012 08:37:00 GMT</pubDate><guid>http://www.cppblog.com/zfree/archive/2012/03/13/167784.html</guid><wfw:comment>http://www.cppblog.com/zfree/comments/167784.html</wfw:comment><comments>http://www.cppblog.com/zfree/archive/2012/03/13/167784.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zfree/comments/commentRss/167784.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zfree/services/trackbacks/167784.html</trackback:ping><description><![CDATA[<div><font style="background-color: #cce8cf">&nbsp;&nbsp;&nbsp;&nbsp;在Irrlicht的代码中搜了D3DFVF_XYZB4 下居然木有，他的顶点类型很简单就是位置，法向量，纹理坐标。后来发现原来他只实现了Software Skinning，所有顶点pos和normal将实时计算更新。<br /></font></div> <img src ="http://www.cppblog.com/zfree/aggbug/167784.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zfree/" target="_blank">zfree</a> 2012-03-13 16:37 <a href="http://www.cppblog.com/zfree/archive/2012/03/13/167784.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>