- 博客(12)
- 资源 (5)
- 收藏
- 关注
原创 perl-opengl键盘事件与色彩
按空格键变换色彩 二、 关于色彩1. glShadeModel :选择平面明暗模式或光滑明暗模式C语言描述void glShadeModel( GLenum mode )参数mode 指定表示明暗模式的符号值,可以选择GL_FLAT(平面明暗模式)和GL_SMOOTH(光滑明暗模式),缺省值为GL_SMOOTH。说明
2013-11-22 17:06:13 1752
转载 perl-lwp笔记
perl的LWP模块介绍一 LWP::Simple 功能1. 如何在Perl中使用该模块?use LWP::Simple;2. 如何获取一个页面内容?my $content = get(’http://www.yahoo.com.cn’);get函数把从www.yahoo.com.cn上获取得页面内容全部赋给$content这个变量,如果获取失败将返回一
2013-11-22 17:05:13 1698
原创 perl-opengl-glutMotionFunc鼠标事件
按下鼠标按钮时,球体会随着鼠标的操作而转动 7.6 glutMotionFunc, glutPassiveMotionFunc glutMotionFunc and glutPassiveMotionFunc set the motion and passive motion callbacks respectively for the cu
2013-11-22 17:04:46 2935
原创 perl-opengl-鼠标事件与球体视角
#!/usr/bin/perl -wuse strict;use warnings;use OpenGL qw/ :all /;use OpenGL::Config; #!/usr/bin/perl -wuse strict;use warnings;use OpenGL qw/ :all /;use OpenGL::Config; my $a=rand(1);
2013-11-22 17:03:20 1632
转载 PostgreSQL学习手册(常用数据类型)
一、数值类型: 下面是PostgreSQL所支持的数值类型的列表和简单说明:名字存储空间描述范围smallint2 字节小范围整数-32768 到 +32767integer4 字节常用的整数-2147483648 到 +2147483647bi
2013-11-22 17:00:09 1137
原创 perl-opengl几何变换函数
#!/usr/bin/perl -wuse strict;use warnings;use OpenGL qw/ :all /;use OpenGL::Config; glutInit();glutInitDisplayMode(GLUT_RGB|GLUT_SINGLE);glutInitWindowPosition(100,100);glutInitWindowSize(4
2013-11-18 17:15:13 1283
原创 perl-opengl基本图形操作-缩放,二维旋转,二维平移
#!/usr/bin/perl -wuse strict;use warnings;use OpenGL qw/ :all /;use OpenGL::Config; glutInit();glutInitDisplayMode(GLUT_RGB|GLUT_SINGLE);glutInitWindowPosition(100,100);glutInitWindowSize(
2013-11-18 17:13:19 1639
原创 netbsd源码(5)
/*- * Background information: * * When converting between timestamps on parallel timescales of differing * resolutions it is historical and scientific practice to round down rather * than do
2013-11-11 22:18:52 1575
原创 netbsd源码(3)
/* Operations on timevals. */将时间结构数据归0,0L表示长整型的0,在此注意到秒、微秒等都是长整型。 #define timerclear(tvp)(tvp)->tv_sec = (tvp)->tv_usec = 0L时间是否已经设置成功(是否为0),如果成功则,返回1(逻辑真)#define timerisset(tvp)((tvp)->tv
2013-11-11 10:35:36 1788
原创 netbsd源码分析(2)
/* * Structure returned by gettimeofday(2) system call, * and used in other calls. */系统时间timeval的结构由2部分组成,一部分是秒tv_sec,另一个部分是微秒 tv_usec;struct timeval { time_t tv_sec; /*
2013-11-10 21:38:16 2212
原创 netbsd源码分析(1)
今天想开始一个工程,分析NETBSD~,工程比我想像的浩大,希望能在n个月内完成。NetBSD是一个免费的,具有高度移植性的 UNIX-like 操作系统,是现行可移植平台最多的操作系统,可以在许多平台上执行,从 64bit alpha 服务器到手持设备和嵌入式设备。NetBSD计划的口号是:"Of course it runs NetBSD"。它设计简洁,代码规范,拥有众多先进特性,使得它在
2013-11-10 21:13:51 4074
python线性神经网络库mplannliner
2013-07-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人