📄 introduction.txt
字号:
设置点的位置的函数是:nehe44
void glRasterPos3s(
GLshort x,
GLshort y,
GLshort z
);
Remarks
OpenGL maintains a 3-D position in window coordinates. This position, called the raster position, is maintained with subpixel accuracy. It is used to position pixel and bitmap write operations. See glBitmap, glDrawPixels, and glCopyPixels.
The current raster position consists of three window coordinates (x, y, z), a clip coordinate w value, an eye coordinate distance, a valid bit, and associated color data and texture coordinates. The w coordinate is a clip coordinate, because w is not projected to window coordinates. The glRasterPos4 function specifies object coordinates x, y, z, and w explicitly. The glRasterPos3 function specifies object coordinates x, y, and z explicitly, while w is implicitly set to one. The glRasterPos2 function uses the argument values for x and y while implicitly setting z and w to zero and one.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -