摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are 阅读全文
posted @ 2013-04-17 23:56 冰点猎手 阅读(164) 评论(0) 推荐(0)
摘要: 最近做raycasting,由于体数据比较大,超过了3D纹理的限制,所以需要查询3d纹理(GL_MAX_3D_TEXTURE_SIZE)范围限制。使用了以下函数: glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE, &maxsize ); 这里有对于OpenGL 参数以及极限等等查询函数的详解 http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml 阅读全文
posted @ 2013-04-17 20:32 冰点猎手 阅读(356) 评论(0) 推荐(0)