摘要:
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 阅读全文
2011年1月24日 #
摘要:
html中input标签有readonly的属性,使用时内容只可读取,不可修改。最近使用select,也想实现类似功能,网上找的的方法是加一条语句: onbeforeactivate = "return false" onfocus = "this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture() 阅读全文