• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Shuffy

            不斷的學習,不斷的思考,才能不斷的進步.Let's do better together!
            posts - 102, comments - 43, trackbacks - 0, articles - 19
            Transformations - Translation, Rotation and Scaling

            Translation is nothing but moving along an arbitrary axis. Rotation is spinning about an arbitrary axis. Scaling is increase or decrease in size along an arbitrary axis. One important point to remember is that OpenGL uses a right hand coordinate system where Z-ve goes into the Screen. An object said to be undergoing a transformation could be undergoing a translation, rotation and/or scaling. Understanding how different types of transformations work together is very important.

            本文將對地球進行建模,讓其圍繞著太陽,此外它還會有月球伴隨,而在下文中將會加入對鼠標和鍵盤的事件響應機制。

            繪制代碼

            void CCY457OpenGLView::RenderScene ()
            {
            //繪制函數
                    
            //Draw Sun
                glTranslatef(0.0f,0.0f,-5.0f);
                glRotatef(
            6,1.0f,0.0f,0.0f);
                glutWireSphere(
            1.0f,20,20);
                
            //Draw Planet
                glPushMatrix();
                    glTranslatef(
            -1.2f,-0.5f,-2.0f);
                    glRotatef(
            6,1.0f,0.0f,0.0f);
                    glutWireSphere(
            0.5f,20,20);
                    
            //Draw Moon
                    glPushMatrix();
                        glTranslatef(
            -1.2f,-0.5f,-2.0f);
                        glRotatef(
            6,1.0f,0.0f,0.0f);
                        glutWireSphere(
            0.05f,20,20);
                    glPopMatrix();
                glPopMatrix();
            }

             

            作者:洞庭散人

            出處:http://phinecos.cnblogs.com/    

            本文版權歸作者和博客園共有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接,否則保留追究法律責任的權利。
            原文鏈接:http://www.cnblogs.com/phinecos/archive/2008/11/05/1327417.html
            国产精品禁18久久久夂久| 怡红院日本一道日本久久| 久久精品国产99国产精品导航| 久久九色综合九色99伊人| 热久久最新网站获取| 久久99热只有频精品8| 久久e热在这里只有国产中文精品99| 国产精品99久久久久久董美香| 久久人妻AV中文字幕| 久久综合久久综合久久| 国产成人综合久久精品红| 2021久久精品国产99国产精品| 久久青青国产| 久久99精品国产麻豆婷婷| 狠狠88综合久久久久综合网 | 免费精品久久天干天干| 亚洲天堂久久精品| 亚洲综合精品香蕉久久网97| 久久亚洲国产精品成人AV秋霞| 精品久久久久久久久久中文字幕 | 一极黄色视频久久网站| 国产精品一区二区久久精品无码| 久久亚洲中文字幕精品有坂深雪 | 久久人爽人人爽人人片AV| 中文国产成人精品久久亚洲精品AⅤ无码精品 | 久久国产精品一区二区| 亚洲av日韩精品久久久久久a| 大蕉久久伊人中文字幕| 久久噜噜电影你懂的| 国产A级毛片久久久精品毛片| 久久久久亚洲AV成人网人人网站| 久久久精品视频免费观看| 一级a性色生活片久久无| 久久AV高清无码| 久久夜色精品国产| 97久久超碰国产精品2021| 精品国产乱码久久久久久浪潮| 国产成年无码久久久免费| 亚洲欧洲日产国码无码久久99| 亚洲一区二区三区日本久久九| 久久午夜电影网|