05 2015 档案

摘要:书中HillsDemo 关键是类的结构,GeometryGenerator的组成和应用;MeshData的构成,来存储Mesh的vertex和index数据;class GeometryGenerator{public: struct Vertex { Vertex(){}... 阅读全文
posted @ 2015-05-27 15:02 dust_fly 阅读(201) 评论(0) 推荐(0)
摘要:先看BoxDemo的前几节,1.vertex input Layout2.vertexBuffer3.IndexBuffer4.vertexShader5.constant Buffer6.pixelShader7.renderState8.effect1.vertex input LayoutOn... 阅读全文
posted @ 2015-05-25 19:02 dust_fly 阅读(414) 评论(0) 推荐(0)
摘要:4.1.3 纹理数据格式 2D纹理即一个数据矩阵,每个元素可以是color值,也可是float3向量值 格式例子:DXGI_FORMAT_R32G32B32_FLOAT(每个纹素为3个32位的float型,可存储3D vector) DXGI_FORMAT_R8G8B... 阅读全文
posted @ 2015-05-23 05:53 dust_fly 阅读(404) 评论(0) 推荐(0)
摘要:如何计算设备的Adapter数?主要参考MSDN: EnumAdapters在d3dApp.cpp文件InitDirect3D()接口中: HR(dxgiFactory->CreateSwapChain(md3dDevice, &sd, &mSwapChain)); //begin 检测... 阅读全文
posted @ 2015-05-23 04:32 dust_fly 阅读(237) 评论(0) 推荐(0)
摘要:看龙书DX11,首先是第四章,本文对GameTime类进行解释问:此类主要实现了什么功能?答:Returns the total time elapsed since Reset() was called, NOT counting anytime when the clock is stopped... 阅读全文
posted @ 2015-05-23 04:13 dust_fly 阅读(274) 评论(0) 推荐(0)