书法字典:https://www.shufadict.com

05 2010 档案

关于清单文件
摘要:来自网上,在此感谢作者。 那么到底什么是 .manifest 文件呢?他有什么用,以前为什么没有?后来,经过艰苦努力,终于得知,原来这一切都是Windows 的Assembly Manifest搞的鬼。这个东东的作用就是为了解决 以前windows上的“Dll 地狱” 问题才产生的新的DLL管理解决方案。大家知道,Dll是动态加载共享库,同一个Dll可能被多个程序所使用,而所谓“Dll 地狱”就... 阅读全文

posted @ 2010-05-21 10:50 翰墨小生 阅读(2257) 评论(0) 推荐(0) 编辑

Visual Studio Auto-expand Information for DirectX 9
摘要:The original page of this article is: http://www.inframez.com/papers/d3d_autoexp.htm Visual Studio comes with a nice debugging feature called Auto-expand. With this feature, you are able to inspect im... 阅读全文

posted @ 2010-05-20 09:26 翰墨小生 阅读(451) 评论(0) 推荐(1) 编辑

Error Checking in DX
摘要:from http://nexe.gamedev.net/directKnowledge/default.asp?p=Debugging When you're trying to find out why a specific function is failing - and the debug output isn't helping - you need to work with retu... 阅读全文

posted @ 2010-05-20 09:04 翰墨小生 阅读(654) 评论(0) 推荐(1) 编辑

算法-求一个二进制数的长度
摘要:任意给定一个32位无符号整数n,求其对应的二进制数长度。先举几个例子解释一下什么是二进制数的长度,比如8 = 1000,则长度是4, 7 = 0111,长度为3。所以一个二进制数的长度也即最高位1的下标值+1(下标从0开始)。题目很简单,下面提供三种方法普通方法递归法二分搜索+查表普通法移位+计数,每移位一次,计数器加1,直到n为0int BitLength(unsigned int n){ int c = 0 ; // counter while (n) { ++c ; n >>= 1 ; } return c ;}运算次数,如果n的二进制长度为k,那么共有k次循环,最多循环32 阅读全文

posted @ 2010-05-19 15:32 翰墨小生 阅读(11960) 评论(15) 推荐(4) 编辑

解决代码中多余的空行
摘要:有时候VS代码文件在网页中显示时会多出许多空行,比如上传到google code上的文件,有时候会出现这种情况,形如: if(n <= 0) return ; else { int i = x; int j = y ; 这是由于源文件的编码格式不当造成的,可以重新保存源文件为适当的编码格式,比如 UTF-8 with signature格式,方法如下 File-Save xxx as-... 阅读全文

posted @ 2010-05-18 22:22 翰墨小生 阅读(816) 评论(0) 推荐(2) 编辑

Visual Studio中删除所有空行
摘要:此文转载自博客园,原文链接:http://www.cnblogs.com/k-sharp/archive/2010/05/18/1738264.htmlEnter: Ctrl+H Find what: ^:b*$\n Replace with: [Empty] Look in: Current Document Find Option: Use Regular Expressions Click:... 阅读全文

posted @ 2010-05-18 22:12 翰墨小生 阅读(7259) 评论(0) 推荐(3) 编辑

First Chance Exception
摘要:When you run DX program in debug mode and enable debug setttings in DX control panel, you may get the First Chance Exceptions, like the following: First-chance exception at 0x75ac9617 in Sura.exe: Mic... 阅读全文

posted @ 2010-05-18 17:15 翰墨小生 阅读(5270) 评论(0) 推荐(1) 编辑

rendering order of skybox
摘要:if you program involve a skybox, you’d better render it first, since other object may need blending, if you render these objects before the skybox, you object will not show the correct order like code... 阅读全文

posted @ 2010-05-17 11:00 翰墨小生 阅读(490) 评论(0) 推荐(0) 编辑

Build OGRE with CMake
摘要:Make sure you have downloaded, extracted and built the dependencies packageDownload CMake. You want the 'Win32 installer' release in the binary distribution sectionRun the CMake installer, install wherever you likeLaunch CMake via Start > Program Files > CMake 2.8 > CMakeIn the &quo 阅读全文

posted @ 2010-05-07 18:45 翰墨小生 阅读(1092) 评论(0) 推荐(0) 编辑

声音走样
摘要:用DirectSound播放声音时发生声音走样,和MediaPlayer播放的效果完全不同,搞了半天,发现原来是声音的采样频率不同所致// insert picture再查看了声音文件的属性以后,应该正确的填充WAVEFORMATEX结构,只有这样才能正确的播放声音文件WAVEFORMATEX wfx; // Set up WAV format structure. memset(&wfx... 阅读全文

posted @ 2010-05-03 22:33 翰墨小生 阅读(492) 评论(0) 推荐(0) 编辑

注意变换的顺序
摘要:注意一下三种变换的顺序 平移,旋转,缩放 下面的代码可以正常显示模型 // Set scalem_pWeapon->SetScale(0.01f, 0.01f, 0.01f) ; // Set positionm_pWeapon->SetPosition(0.0f, 15.0f, 0.0f) ; 而下面的代码却什么都不显示 // Set positionm_pWeapon->S... 阅读全文

posted @ 2010-05-01 20:53 翰墨小生 阅读(587) 评论(0) 推荐(0) 编辑

关于D3D中的颜色
摘要:1. 当模型自带颜色时,使用白色光照即可显示出模型的本色,如果禁用光照,那么模型就是黑色2. 当模型自带颜色时,要通过设置Material来设置模型的颜色,然后用白色光照之即可代码Code highlighting produced by Actipro CodeHighlighter (freew... 阅读全文

posted @ 2010-05-01 20:06 翰墨小生 阅读(869) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
书法字典:https://www.shufadict.com
点击右上角即可分享
微信分享提示