Changeset 10006 for lang/d

Show
Ignore:
Timestamp:
04/20/08 20:18:56 (8 months ago)
Author:
omega
Message:

SDL_video.dのSDL_GL_attr定数増やした

Location:
lang/d/koke/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/d/koke/trunk/SDL/SDL_video.d

    r6329 r10006  
    209209    SDL_GL_ACCUM_GREEN_SIZE, 
    210210    SDL_GL_ACCUM_BLUE_SIZE, 
    211     SDL_GL_ACCUM_ALPHA_SIZE 
     211    SDL_GL_ACCUM_ALPHA_SIZE, 
     212    SDL_GL_STEREO, 
     213    SDL_GL_MULTISAMPLEBUFFERS, 
     214    SDL_GL_MULTISAMPLESAMPLES, 
     215    SDL_GL_SWAP_CONTROL, 
    212216} 
    213217 
  • lang/d/koke/trunk/hell2.d

    r6608 r10006  
    230230        // スクリーン初期化 
    231231        SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );  // ダブルバッファ 
    232         //SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); 
     232        //SDL_GL_SetAttribute( SDL_GL_SWAP_CONTROL , 0 );       // Vsyncなし 
     233        SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 ); 
    233234        if((g_screen = SDL_SetVideoMode(g_width, g_height, g_videoBpp, g_videoFlags)) is null) 
    234235        { 
     
    356357{ 
    357358        dout.writeLine(e.toString()); 
    358         append(g_logname, e.toString() ~ "\n"); 
     359        append(g_logname, e.toString() ~ "¥n"); 
    359360} 
    360361 
     
    647648                Mix_FreeMusic(g_music); 
    648649        } 
    649         g_music = Mix_LoadMUS(cast(char*)(path ~ "\0")); 
     650        g_music = Mix_LoadMUS(cast(char*)(path ~ "¥0")); 
    650651        if(!g_music) 
    651652        { 
     
    13021303        int[] _maskInfo; 
    13031304        SDL_Surface* _surface; 
     1305         
     1306        /** 
     1307         * バインド情報 
     1308         */ 
     1309        static GLuint _bindid = 0; 
     1310        static bool _isbind = false; 
     1311         
    13041312public: 
    13051313        /** 
     
    14321440        void bind() 
    14331441        { 
     1442                if( _isbind && _bindid == id ) return; 
     1443                 
     1444                _bindid = id; 
     1445                _isbind = true; 
    14341446                glBindTexture(GL_TEXTURE_2D, id); 
    14351447                glEnable(GL_TEXTURE_2D); 
     
    14401452        static void unbind() 
    14411453        { 
     1454                _isbind = false; 
    14421455                glDisable(GL_TEXTURE_2D); 
    14431456        }