代码改变世界

阅读排行榜

glClearDepthf与glDepthFunc

2012-12-13 10:05 by 三戒1993, 470 阅读, 收藏,
摘要: glClearDepthf函数名:glClearDepthf — 指定深度缓冲区的清除值函数原型:void glClearDepthf( GLclampf depth );参数含义:depth ——指定一个深度值。该值将被用于glClear函数清理深度缓冲区,初始值为1。描述:glClearDept... 阅读全文

C++ vector 用法汇总

2013-03-18 12:25 by 三戒1993, 467 阅读, 收藏,
摘要: 标准库Vector类型使用需要的头文件:#include Vector:Vector 是一个类模板。不是一种数据类型。 Vector是一种数据类型。一、 定义和初始化Vector v1; //默认构造函数v1为空Vector v2(v1);//v2是v1的一个副本Vector v3(n,i);//v... 阅读全文

NDK note: the mangling of 'va_list' has changed in GCC 4.4

2012-11-19 13:54 by 三戒1993, 467 阅读, 收藏,
摘要: 每次ndk-build都会提示:In file included from jni/fskmodule.cpp:7:0:/xxxx/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4解决办法... 阅读全文

locationManager 回调方法不调用问题?

2013-10-09 15:58 by 三戒1993, 462 阅读, 收藏,
摘要: 当locationManager都设置好了后开始定位服务后回调方法didUpdateToLocation不调用[_locationManager setDelegate:self];[_locationManagerstartUpdatingLocation];结果花了几个小时发现我是在非主线程里调... 阅读全文

Android 系统字体和颜色样式

2013-08-15 15:28 by 三戒1993, 462 阅读, 收藏,
摘要: Android 字体和颜色对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。java代码:"?android:attr/textAppea... 阅读全文
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 368 下一页