Vulkan

2012年7月13日

法二:获得ModelMatrix

摘要: Everything you do, matrix multiplication included, looks good, except this : glGetFloatv(GL_MODELVIEW_MATRIX, mvMatrix), which returns ViewMatrix * Mo... 阅读全文

posted @ 2012-07-13 23:17 Vulkan 阅读(131) 评论(0) 推荐(0) 编辑

#pragma once与 #ifndef的区别

摘要: 为了避免同一个文件被include多次1 #ifndef方式2 #pragma once方式在能够支持这两种方式的编译器上,二者并没有太大的区别,但是两者仍然还是有一些细微的区别。 方式一: #ifndef __SOMEFILE_H__ #define __SOMEFILE... 阅读全文

posted @ 2012-07-13 14:07 Vulkan 阅读(87) 评论(0) 推荐(0) 编辑

使用动态数组

摘要: #include #include using namespace std;void Test(vector & ve){int *tem=new int[ve.size()];for (int j=0;jvev;for (int i=0;i<10;i++){vev.push_back(i*2+1)... 阅读全文

posted @ 2012-07-13 10:35 Vulkan 阅读(133) 评论(0) 推荐(0) 编辑

导航