• <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>
            天地之靈學習小組
            我們學習小組的OpenGL學習筆記 大家一定要互相折磨呀~~
            posts - 150,  comments - 156,  trackbacks - 0
            很感謝許多學長的幫助。其實最近有些消極的。我想現在開始要重新做好自己。我要有飯吃。
            以后每天的日志都貼代碼,以代碼為主,以此督促自己每天保持代碼量。
            main.cpp
             1 #include <GL/glut.h>
             2 
             3 #include "global.h"
             4 
             5 int main( int argc, char* argv[] )
             6 {
             7     Init();
             8 
             9     glutInit( &argc, argv );
            10     glutInitDisplayMode( GLUT_RGBA| GLUT_DOUBLE );
            11     glutInitWindowPosition( 5050 );
            12     glutInitWindowSize( WindowWidth, WindowHeight );
            13     glutCreateWindow( "送給親愛的甜甜");
            14     glutDisplayFunc( Display );
            15     glutKeyboardFunc( Keyboard );
            16     glutSpecialFunc( Key );
            17     glutTimerFunc( 10, Timer, 0 );
            18     gluOrtho2D( 0, WindowWidth, WindowHeight, 0 );
            19     glutMainLoop();
            20 
            21     return 0;
            22 }
            23 
            global.h
             1 #ifndef _GLOBAL_H_
             2 #define _GLOBAL_H_
             3 
             4 #include "Init.h"
             5 #include "Display.h"
             6 #include "Key.h"
             7 #include "Keyboard.h"
             8 #include "Timer.h"
             9 #include "definition.h"
            10 #include "WelcomePage.h"
            11 #include "SelectPage.h"
            12 #include "GamePage.h"
            13 #include "ReadBMP24.h"
            14 #include <cstdlib>
            15 
            16 static const int WindowWidth = 640;
            17 static const int WindowHeight = 480;
            18 
            19 extern CWelcomePage*    welcome_page;
            20 extern CSelectPage*        select_page;
            21 extern CGamePage*        game_page;
            22 
            23 extern Page page;
            24 extern bool two_players;
            25 
            26 #endif
            27
            global.cpp
             1 #include "WelcomePage.h"
             2 #include "SelectPage.h"
             3 #include "GamePage.h"
             4 #include "definition.h"
             5 
             6 #include <cstdlib>
             7 
             8 CWelcomePage*    welcome_page    = NULL;
             9 CSelectPage*    select_page        = NULL;
            10 CGamePage*        game_page        = NULL;
            11 
            12 Page page = WelcomePage;
            13 bool two_players = false;
            今天先貼這么多,其實沒什么內容,呵呵,還請各位牛們批評指正,小牛奶妹感激不盡

            FeedBack:
            # re: 11月21日_重新站起來_By PureMilk[未登錄]
            2008-11-21 21:10 | missdeer
            別為了趕代碼量而失去了思考的時間。  回復  更多評論
              
            # re: 11月21日_重新站起來_By PureMilk[未登錄]
            2008-11-21 21:12 | missdeer
            那些啥 welcome_page 、game_page應該都是singleton吧  回復  更多評論
              
            # re: 11月21日_重新站起來_By PureMilk
            2008-11-22 10:13 | 正牌的天地之靈和他的徒兒們肖赫_王婷婷_王冠_鄭燚_孫婷
            @missdeer
            不知道什么是singleton,現在這水平也就能寫出這模樣的東西了……  回復  更多評論
              
            # re: 11月21日_重新站起來_By PureMilk[未登錄]
            2008-11-22 17:38 | missdeer
            所以說別為了代碼量而趕代碼,看看《設計模式:可復用面向對象軟件的基礎》,與市面上絕大多數講設計模式的書的一大區別是,它用C++來描述。  回復  更多評論
              
            # re: 11月21日_重新站起來_By PureMilk
            2008-11-22 17:56 | 正牌的天地之靈和他的徒兒們肖赫_王婷婷_王冠_鄭燚_孫婷
            @missdeer
            好的,不過要先把這個寫完再看,謝謝你啦~  回復  更多評論
              

            <2013年9月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            293012345

            常用鏈接

            留言簿(6)

            隨筆分類(149)

            隨筆檔案(150)

            同道中人

            搜索

            •  

            積分與排名

            • 積分 - 48584
            • 排名 - 467

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜

            91精品国产高清91久久久久久| 欧美精品一区二区精品久久| 久久亚洲天堂| 亚洲欧美国产精品专区久久| 亚洲综合熟女久久久30p| 久久99国产精品久久99| 伊人 久久 精品| 久久这里只精品国产99热| 久久精品中文字幕大胸| 久久婷婷五月综合色奶水99啪| 国产精品一区二区久久精品无码| 狠狠色丁香婷婷久久综合| 国产午夜久久影院| 亚洲综合伊人久久大杳蕉| 人妻无码久久精品| 国产精品激情综合久久| 久久天天躁狠狠躁夜夜96流白浆 | 久久99精品久久久久久齐齐| 久久亚洲精品无码VA大香大香| 国产叼嘿久久精品久久| 国产午夜免费高清久久影院| 人妻无码中文久久久久专区| 伊人精品久久久久7777| 日韩久久久久中文字幕人妻| A级毛片无码久久精品免费| 精品人妻久久久久久888| 色狠狠久久AV五月综合| 国产成年无码久久久免费| 要久久爱在线免费观看| 热久久国产欧美一区二区精品| 久久伊人五月丁香狠狠色| 久久激情五月丁香伊人| 久久99国产亚洲高清观看首页 | 久久综合伊人77777麻豆| 国产69精品久久久久9999| 精品精品国产自在久久高清| 精品伊人久久大线蕉色首页| 四虎国产精品成人免费久久| 三级三级久久三级久久| 国产成人精品综合久久久| 久久不见久久见免费视频7|