04 2013 档案
01、Direct3D 11 Basics
摘要:1、配置D3D11 设备首要是创建三个对象: 设备,立即上下文,交换链;其中立即上下文是DX11新对象。在DX10中,设备对象用作渲染和资源创建。在DX11中,立即上下文用作渲染,设备用作创建资源。交换链负责将设备渲染后的BUFF,显示到实现显示器中。交换包含二到多个BUFF.通过配置DXGI_SWAPCHAIN_DESC交换链描述,进而创建交换链;留意,BackBufferUsage是一个用于指示后台BUFF如何使用的。例如,如果我们想渲染到后台BUFF,因而我们指定为DXGI_USAGE_RENDER_TARGET_OUTPUT。 OutputWindow是用于指定,交换链将要把BUFF提 阅读全文
posted @ 2013-04-30 18:08 陈峰 阅读(425) 评论(0) 推荐(0)
free falling
摘要:She's a good girl, loves her mamaLoves Jesus and America tooShe's a good girl, crazy 'bout ElvisLoves horses and her boyfriend tooIt's a long day livin' in ResedaThere's a freeway runnin' through the yardAnd I'm a bad boy, 'cause I don't even miss herI'm a 阅读全文
posted @ 2013-04-16 14:01 陈峰 阅读(198) 评论(0) 推荐(0)
XMLSerializer例子
摘要:using System;using System.Xml;using System.Xml.Serialization;using System.IO;using System.Collections;using System.Collections.Generic;/* The XmlRootAttribute allows you to set an alternate name (PurchaseOrder) of the XML element, the element namespace; by default, the XmlSerializer uses the class n 阅读全文
posted @ 2013-04-11 11:14 陈峰 阅读(265) 评论(0) 推荐(0)
unity3d 正交 相机尺寸
摘要:1.相机显示范围尺寸依赖于 size参数,size表示相机中心点,到上边边缘和下边缘的高度。例如:size:1; 表示相机纵向刚好可以显示2个单位;size:2;表示相机纵向可以显示4个单位2.屏幕比例:有(3:2)(5:4)(16:9)(16:10)(960*600)这些比例,只会影响宽度, 它是相对于纵向的比值, 但不会影响纵向值 阅读全文
posted @ 2013-04-02 10:37 陈峰 阅读(2867) 评论(0) 推荐(0)