glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(.0f, .0f, -10.0f); glRotatef(rot,1.0f,0.0f,0.0f); // Rotate On The X Axis glRotatef(rot*1.5f,0.0f,1.0f,0.0f); // Rotate On The Y Axis glRotatef(rot*1.4f,0.0f,0.0f,1.0f); glColor3f(1.0f * (float)cos(rot / 20.0f), 1.0f * (float)sin(rot / 25.0f), 1.0f - .5f * (float)cos(rot / 17.0f)); glPrint("Active opengl outline f 是ont text with NeHe - %7.2f", rot / 50);
2021-12-20 23:17:05 8KB 3d opengl 文字
1
Qt版的OpenGLDemo,其中包含透视投影,纹理贴图,文字显示,反锯齿。
2021-12-20 13:51:17 4KB Qt3D 透视投影 纹理贴图 OpenGL文字
1
OpenGl文字显示c++类,包括*.h和*.cpp,可显示中英文,已优化,速度很快。
2019-12-21 18:58:56 2KB OpenGL 文字 中文 C++
1