- Timestamp:
- 04/20/08 20:18:56 (8 months ago)
- Location:
- lang/d/koke/trunk
- Files:
-
- 2 modified
-
SDL/SDL_video.d (modified) (1 diff)
-
hell2.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/d/koke/trunk/SDL/SDL_video.d
r6329 r10006 209 209 SDL_GL_ACCUM_GREEN_SIZE, 210 210 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, 212 216 } 213 217 -
lang/d/koke/trunk/hell2.d
r6608 r10006 230 230 // スクリーン初期化 231 231 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 ); 233 234 if((g_screen = SDL_SetVideoMode(g_width, g_height, g_videoBpp, g_videoFlags)) is null) 234 235 { … … 356 357 { 357 358 dout.writeLine(e.toString()); 358 append(g_logname, e.toString() ~ " \n");359 append(g_logname, e.toString() ~ "¥n"); 359 360 } 360 361 … … 647 648 Mix_FreeMusic(g_music); 648 649 } 649 g_music = Mix_LoadMUS(cast(char*)(path ~ " \0"));650 g_music = Mix_LoadMUS(cast(char*)(path ~ "¥0")); 650 651 if(!g_music) 651 652 { … … 1302 1303 int[] _maskInfo; 1303 1304 SDL_Surface* _surface; 1305 1306 /** 1307 * バインド情報 1308 */ 1309 static GLuint _bindid = 0; 1310 static bool _isbind = false; 1311 1304 1312 public: 1305 1313 /** … … 1432 1440 void bind() 1433 1441 { 1442 if( _isbind && _bindid == id ) return; 1443 1444 _bindid = id; 1445 _isbind = true; 1434 1446 glBindTexture(GL_TEXTURE_2D, id); 1435 1447 glEnable(GL_TEXTURE_2D); … … 1440 1452 static void unbind() 1441 1453 { 1454 _isbind = false; 1442 1455 glDisable(GL_TEXTURE_2D); 1443 1456 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)