erhsh 的另一个家

erhsh

走的不快,总比不走强!

2011年1月24日 #

摘要: 1. gluPerspective();  1.1 原型:void gluPerspective(GLdouble fovy, GLdouble aspect, GLdouble zNear,GLdouble zFar)   1.2 说明:设置 透视投影矩阵;  1.3 参数说明:fovy: 设置视场的角度(field of view), 以度为单位,在y轴方向的角度。         aspect: 视场的宽高比。         zNear/zFar: 最近视场距离/最远视场距离。2. glMatrixMode();  2.1 原型:void glMatrixMode(GLenum mod 阅读全文
posted @ 2011-01-24 20:46 erhsh 阅读(155) 评论(0) 推荐(0) 编辑

摘要: html中input标签有readonly的属性,使用时内容只可读取,不可修改。最近使用select,也想实现类似功能,网上找的的方法是加一条语句: onbeforeactivate = "return false" onfocus = "this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture() 阅读全文
posted @ 2011-01-24 10:30 erhsh 阅读(1084) 评论(0) 推荐(0) 编辑