会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chengtalent
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2008年5月7日
glActiveTextureARB — select active texture unit
摘要: C Specification void glActiveTextureARB ( GLenum texture ); Parameters texture Specifies which texture unit to make active. T...
阅读全文
posted @ 2008-05-07 11:13 江 城 子
阅读(764)
评论(0)
推荐(0)
2008年4月28日
#pragma pack
摘要: 为了能使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 江 城 子
阅读(1665)
评论(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 江 城 子
阅读(122)
评论(0)
推荐(0)
2008年4月20日
编译时错误:warning LNK4076: invalid incremental
摘要: 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 江 城 子
阅读(1067)
评论(0)
推荐(0)