opengl 3d文字
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(.0f, -10.0f); glRotatef(rot,1.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,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);
8.44KB
文件大小:
评论区