文章分类 -  游戏设计

Tutorial 17: Multitexturing and Texture Arrays
摘要:地址 http://www.rastertek.com/dx11tut17.html This tutorial will cover how to do multitexturing in DirectX 11 as well as how to implement texture arrays 阅读全文

posted @ 2019-05-17 16:19 guanxi0808 阅读(345) 评论(0) 推荐(0)

PSSetShaderResources 数组
摘要:上一节对我们所绘制的物体设置了纹理,但主要对其中一个函数有些疑问: ID3D11DeviceContext :: PSSetShaderResource()当我们对一个物体想设置多个纹理,或者想同时传入两个纹理进行混合时该怎么办? 第一种方法: 针对上面这个函数,第一个参数是穿入shader的槽。 阅读全文

posted @ 2019-05-17 16:15 guanxi0808 阅读(1554) 评论(0) 推荐(0)

DirectX11 With Windows SDK--09 纹理映射与采样器状态 学习
摘要:阅读目录 前言 纹理坐标系 纹理读取 DDS位图和WIC位图 DDSTextureLoader和WICTextureLoader库 CreateDDSTextureFromFile函数--从文件读取DDS纹理 CreateWICTextureFromFile函数--从文件读取WIC纹理 过滤器 图片 阅读全文

posted @ 2019-05-17 16:12 guanxi0808 阅读(392) 评论(0) 推荐(0)

HSSetShaderResources
摘要:Very cool explanation! I also got confused, and after your questions and explanations it's clear for me! But I found a good example for this post, whi 阅读全文

posted @ 2019-05-17 16:10 guanxi0808 阅读(201) 评论(0) 推荐(0)

DirectInputDevice8 :: Acquire返回E_ACCESSDENIED
摘要:当我设置如下的合作级别时Acquire()返回E_ACCESSDENIED,但是如果我跳过合作级别,它可以正常工作。怎么了? if(FAILED(hr = g_pKeyboard-> SetCooperativeLevel(hWnd,DISCL_FOREGROUND | DISCL_NONEXCLU 阅读全文

posted @ 2019-05-17 15:29 guanxi0808 阅读(446) 评论(0) 推荐(0)

导航