摘要:
常见的不不能声明为虚函数的有:普通函数(非成员函数);静态成员函数;内联成员函数;构造函数;友元函数。 1、为什么C++不支持普通函数为虚函数? 普通函数(非成员函数)只能被overload,不能被override,声明为虚函数也没有什么意思,因此编译器会在编译时邦定函数。 2、为什么C++不支持构 阅读全文
posted @ 2011-10-19 10:54
小 楼 一 夜 听 春 雨
阅读(341)
评论(0)
推荐(0)
摘要:
设置纹理采样属性HRESULT SetSamplerState( DWORD Sampler, //指定纹理采样属性的纹理层ID(0~7) D3DSAMPLERSTATETYPE Type, //纹理过滤类型 DWORD Value //设置纹理采样属性值);第二个参数D3DSAMPLERSTATETYPE Type取值:D3DSAMP_MAGFILTER //处理放大过滤D3DSAMP_MINFILTER //处理缩小过滤D3DSAMP_MIPFILTER //多纹理过滤D3DSAMP_MIPMAPLODBIAS //多级纹理级数偏移值,初始值为0D3DSAMP... 阅读全文
posted @ 2011-10-19 10:39
小 楼 一 夜 听 春 雨
阅读(2926)
评论(0)
推荐(0)
摘要:
IDirect3DDevice9::SetVertexDeclarationSets a Vertex Declaration (Direct3D 9).HRESULT SetVertexDeclaration( IDirect3DVertexDeclaration9 * pDecl);ParameterspDecl[in] Pointer to an IDirect3DVertexDeclaration9 object, which contains the vertex declaration.Return ValuesIf the method succeeds, the return. 阅读全文
posted @ 2011-10-19 10:27
小 楼 一 夜 听 春 雨
阅读(2578)
评论(0)
推荐(0)
摘要:
http://blog.csdn.net/cay22/article/details/5613625 这种错误的原因是:原因是该文件的代码页为英文,而我们系统中的代码页为中文。 解决方案: 1. 启动Microsoft Visual Studio 2005,文件->打开->选择该cpp,然后保存。从 阅读全文
posted @ 2011-10-19 10:19
小 楼 一 夜 听 春 雨
阅读(40253)
评论(0)
推荐(0)

浙公网安备 33010602011771号