Shader开发工具: PVRShaman
摘要:1. A PVRShaman (.POD) workspace is provided as an example in the Chapter_10/PVR_LinearFog folder that demonstrates the fog computation. Figure 10-4 is
阅读全文
posted @
2017-08-31 15:27
今夜太冷
阅读(387)
推荐(0) 编辑
创建压缩纹理的工具
摘要:Once a texture has been loaded as a compressed texture, it can be used for texturing in exactly the same way as an uncompressed texture. The details of the ETC2/EAC formats are beyond our scope here...
阅读全文
posted @
2017-08-31 09:52
今夜太冷
阅读(171)
推荐(0) 编辑
Andriod NDK编译的时候无法使用math.h的函数。
摘要:编译NDK项目的时候,当用到sinf的时候,编译报错: 选中sinf函数,右键Go to declaration, 发现math.h的文件路径是: c:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b\platforms\android-21\arch-arm64\usr\include\math.h 试了很多种方法,包括在library...
阅读全文
posted @
2017-08-27 18:11
今夜太冷
阅读(1378)
推荐(0) 编辑
mongodb自动关闭:页面文件太小,无法完成操作
摘要:在一台两G内存的win server 2008电脑上运行一个程序,一段时间后mongod自动停止,发现日志文件最后有这样的错误: 2014-11-30T00:32:32.914+0800 [conn30751] command taskdb.$cmd command: count { count:
阅读全文
posted @
2017-08-26 11:35
今夜太冷
阅读(1279)
推荐(0) 编辑
通读cheerio API
摘要:所谓工欲善其事,必先利其器,所以通读了cheerio的API,顺便翻译了一遍,有些地方因为知道的比较少,不知道什么意思,保留了英文,希望各位不吝告诉我,然后一起把这个翻译完成。 ###cheerio 为服务器特别定制的,快速、灵活、实施的jQuery核心实现. ###Introduction 将HTML告诉你的服务器 var cheerio = require('che...
阅读全文
posted @
2017-08-24 15:32
今夜太冷
阅读(283)
推荐(0) 编辑
How to skip to next iteration in jQuery.each() util?
摘要:[问] I'm trying to iterate through an array of elements. jQuery's documentation says: jquery.Each() documentation Returning non-false is the same as a continue statement in a for loop, it will skip...
阅读全文
posted @
2017-08-23 14:33
今夜太冷
阅读(184)
推荐(0) 编辑
在javascript中substr和substring的区别是什么
摘要:1.substring 用于提取字符串中介于两个指定下标之间的字符 substring(start,end) 开始和结束的位置,从零开始的索引 substring 方法返回的子串包括 start 处的字符,但不包括 end 处的字符。 如果 start 与 end 相等,那么该方法返回的就是一个空串(即长度为 0 的字串)。...
阅读全文
posted @
2017-08-23 11:10
今夜太冷
阅读(317)
推荐(0) 编辑
运行代码时报linker command failed with exit code 1 错误
摘要:一个c语言项目,在.h文件中原来只有一些方法的声明,后来我加入了一些变量声明后,编译的时候报错: 运行代码时报linker command failed with exit code 1 错误 怎么回事那? 【解决方法】 将变量的声明都移到.c文件中去就好了。
阅读全文
posted @
2017-08-22 19:52
今夜太冷
阅读(400)
推荐(0) 编辑
Windows系统内存分析工具的介绍
摘要:Windows系统内存分析工具的介绍(进程管理器,资源管理器,性能监视器, VMMap, RamMap,PoolMon) 微软官方提供多种工具来分析Windows 的内存使用情况,除了系统自带的任务管理器(Task Manager), 资源监视器(Resource Manager), 性能监视器(Performance Monitor), 还有SysInternals工具, RamMa...
阅读全文
posted @
2017-08-20 20:24
今夜太冷
阅读(15833)
推荐(0) 编辑
colspan width issue
摘要:【问】 I'm having trouble setting fixed widths on columns which usecolspan. It seems that neither IE8, Firefox or Chrome can figure out how to correctly size columns with colspan. Try the following code...
阅读全文
posted @
2017-08-19 15:48
今夜太冷
阅读(176)
推荐(0) 编辑
OpenGL ES3 非常好的系列文章
摘要:OpenGL ES3 非常好的系列文章: OpenGL-ES 3.0学习指南(五)——EGL基础 NDK开发OpenGL ES 3.0(二)——初见GLES,第一个三角形 NDK开发OpenGL ES 3.0(三)——着色器基础 NDK开发OpenGL ES 3.0(四)——旋转的彩色方块 其他的文章可以点击上面的链接继续看。
阅读全文
posted @
2017-08-19 00:51
今夜太冷
阅读(263)
推荐(0) 编辑
'Newtonsoft.Json' already has a dependency defined for 'NETStandard.Library'
摘要:安装NEST的时候报了如下的错误: PM> Install-Package NEST Attempting to resolve dependency 'Elasticsearch.Net (≥ 5.5.0 && < 6.0.0)'. Attempting to resolve dependency 'Newtonsoft.Json (≥ 10.0.0 && < 11.0.0)'. Install...
阅读全文
posted @
2017-08-17 11:46
今夜太冷
阅读(898)
推荐(0) 编辑
glGetString(GL_VERSION) returns “OpenGL ES-CM 1.1” but my phone supports OpenGL 2
摘要:【问】 I'm trying to make an NDK based OpenGL application. At some point in my code, I want to check the OpenGL version available on the device. I'm using the following code : const char *version =...
阅读全文
posted @
2017-08-16 20:17
今夜太冷
阅读(682)
推荐(0) 编辑
如何获取当前应用程序所用的OpenGL ES的版本
摘要:如何获取当前应用程序所用的OpenGL ES的版本? 【答案】 char* glVersion = (char*)glGetString(GL_VERSION); LOGW("GL Version: %s", glVersion);
阅读全文
posted @
2017-08-16 20:16
今夜太冷
阅读(1384)
推荐(0) 编辑
How to Build a Search Page with Elasticsearch and .NET
摘要:Although SQL Server's Full-Text search is good for searching text that is within a database, there are better ways of implementing search if the text is less-well structured, or comes from a wide vari...
阅读全文
posted @
2017-08-16 16:52
今夜太冷
阅读(276)
推荐(0) 编辑
Windows server 2008 R2如何预览图片而不是显示图标?
摘要:Previews of media files are disabled by default in Windows Server 2008. In this article we will enable it so we get the small previews back again! 1. Open theStartmenu and clickRun. Now enterSys...
阅读全文
posted @
2017-08-12 13:05
今夜太冷
阅读(268)
推荐(0) 编辑
CSS中的图片路径问题
摘要:CSS中的背景图片写了相对路径,为什么不显示那? 【解决方法】 CSS中的背景图片路径应该写成相对于当前CSS文件的路径,而不是针对网站根目录的相对路径。
阅读全文
posted @
2017-08-12 11:32
今夜太冷
阅读(409)
推荐(0) 编辑
ElasticSearch无法启动
摘要:安装了ElasticSearch5.5.1后,每次启动服务的时候,都是启动了一下就自动停止了。查看了一下EventViewer, 错误信息如下: Application: elasticsearch.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled except...
阅读全文
posted @
2017-08-07 11:41
今夜太冷
阅读(1574)
推荐(0) 编辑
手机中如何让图片不把容器撑开?
摘要:If themax-widthproperty is set to 100%, the image will scale down if it has to, but never scale up to be larger than its original size: img{ max-width:100%; height:auto;} 来自: https://...
阅读全文
posted @
2017-08-03 13:51
今夜太冷
阅读(179)
推荐(0) 编辑