xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 7KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-04
  • 標(biāo)簽: 圖形學(xué)??

資源簡介

江蘇科技大學(xué)計(jì)科專業(yè)計(jì)算機(jī)圖形學(xué)實(shí)驗(yàn)旋轉(zhuǎn)茶壺代碼,列表應(yīng)該還有實(shí)驗(yàn)報(bào)告

資源截圖

代碼片段和文件信息

/**************************
?*?Includes
?*
?**************************/

#include?
#include?
#include???
#include
#pragma?comment(lib?“glut32.lib“)??
#include???

using?namespace?std;
GLfloat?roate?=?0.0;//?set?rote?of?roate?ying?yu?bu?hao??bu?zhuang?le?設(shè)置旋轉(zhuǎn)速率
GLfloat?rote?=?0.0;//shezhi旋轉(zhuǎn)角度
GLfloat?anglex?=?0.0;//X?軸旋轉(zhuǎn)
GLfloat?angley?=?0.0;//Y?軸旋轉(zhuǎn)
GLfloat?anglez?=?0.0;//Z?軸旋轉(zhuǎn)
GLint?WinW?=?400;
GLint?WinH?=?400;
GLfloat?oldx;//當(dāng)左鍵按下時(shí)記錄鼠標(biāo)坐標(biāo)??
GLfloat?oldy;
void?init(void)
{
glClearColor(1.0?1.0?1.0?1.0);?//背景黑色??
}
void?display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0?0.0?0.0);?//畫筆紅色
glLoadIdentity();??//加載單位矩陣??
gluLookAt(0.0?0.0?5.0?0.0?0.0?0.0?0.0?1.0?0.0);
glRotatef(rote?0

評(píng)論

共有 條評(píng)論