chengtalent

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2008年5月7日

摘要: C Specification void glActiveTextureARB ( GLenum texture ); Parameters texture Specifies which texture unit to make active. T... 阅读全文
posted @ 2008-05-07 11:13 江 城 子 阅读(751) 评论(0) 推荐(0) 编辑

2008年4月28日

摘要: 为了能使CPU对变量进行高效快速的访问,变量的起始地址应该具有某些特性,即所谓的“对齐”。例如对于4字节的int类型变量,其起始地址应位于4字节边界上,即起始地址能够被4整除。变量的对齐规则如下(32位系统): Type Alignment char 在字节边界上对齐 short (16-bit) 在双字节边界上对齐 int and long (32-bit) 在4字节边界上对齐 float 在4... 阅读全文
posted @ 2008-04-28 09:27 江 城 子 阅读(1648) 评论(0) 推荐(0) 编辑

2008年4月21日

摘要: 声明double (*p)[4] = new double[5][4]; 可以直接 delete[] p; 要是这样声明 double *p[5]; 好像就得这样 int i; for(i=0;i<5;i++) p[i]=new double [4]; for(i=0;i<5;i++) delete[] p[i]; int **a=new [n][3];delete []a;内存释放了,也不能... 阅读全文
posted @ 2008-04-21 19:29 江 城 子 阅读(119) 评论(0) 推荐(0) 编辑

2008年4月20日

摘要: VS2005编译时出现这样的错误: : Compiling... : Image.cpp : Linking... : LINK : warning LNK4076: invalid incremental status file "Debug/code.ilk"; : linking nonincrementally : code.exe - 0 error(s), 1... 阅读全文
posted @ 2008-04-20 21:18 江 城 子 阅读(1052) 评论(0) 推荐(0) 编辑