Changeset 365 for trunk/src/sdl
- Timestamp:
- 05/16/15 17:40:16 (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:global-ignores
set to
vs2012
vs2013
gmake
gmake-clang
-
Property
svn:global-ignores
set to
-
trunk/src/sdl/sdl_audio.cc
r330 r365 21 21 if ( SDL_Init( SDL_INIT_AUDIO ) == -1 ) 22 22 { 23 NV_LOG ( LOG_CRITICAL, "SDL_AUDIO failed to load -- " <<SDL_GetError() );23 NV_LOG_CRITICAL( "SDL_AUDIO failed to load -- ", SDL_GetError() ); 24 24 return; 25 25 } … … 27 27 if( Mix_OpenAudio( 44100, MIX_DEFAULT_FORMAT, 2, 1024 ) == -1 ) 28 28 { 29 NV_LOG ( LOG_CRITICAL, "SDL_mixer failed to load -- " <<Mix_GetError() );29 NV_LOG_CRITICAL( "SDL_mixer failed to load -- ", Mix_GetError() ); 30 30 return; 31 31 } … … 40 40 if ( channel == -1 ) 41 41 { 42 NV_LOG ( LOG_WARNING, "SDL_mixer failed to play -- " <<Mix_GetError() );42 NV_LOG_WARNING( "SDL_mixer failed to play -- ", Mix_GetError() ); 43 43 } 44 44 else … … 67 67 if ( channel == -1 ) 68 68 { 69 NV_LOG ( LOG_WARNING, "SDL_mixer failed to play -- " <<Mix_GetError() );69 NV_LOG_WARNING( "SDL_mixer failed to play -- ", Mix_GetError() ); 70 70 } 71 71 else … … 91 91 if ( Mix_LoadWAV_RW == nullptr || SDL_RWFromFile == nullptr ) 92 92 { 93 NV_LOG ( LOG_ERROR,"SDL_mixer not loaded!" );93 NV_LOG_ERROR( "SDL_mixer not loaded!" ); 94 94 } 95 95 Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path.c_str(), "rb"), 1); 96 96 if ( sample == nullptr ) 97 97 { 98 NV_LOG ( LOG_ERROR, "SDL_mixer failed to load sample '" << a_path << "' -- " <<Mix_GetError() );98 NV_LOG_ERROR( "SDL_mixer failed to load sample '", a_path, "' -- ", Mix_GetError() ); 99 99 return sound(); 100 100 } -
trunk/src/sdl/sdl_window.cc
r343 r365 38 38 if ( m_handle == 0 ) 39 39 { 40 NV_LOG ( LOG_CRITICAL, "Video mode set failed: " <<SDL_GetError( ) );40 NV_LOG_CRITICAL( "Video mode set failed: ", SDL_GetError( ) ); 41 41 return; // TODO: Error report 42 42 } … … 56 56 if ( ctx_handle == 0 ) 57 57 { 58 NV_LOG ( LOG_CRITICAL, "GL Context creation failed: " <<SDL_GetError( ) );58 NV_LOG_CRITICAL( "GL Context creation failed: ", SDL_GetError( ) ); 59 59 return; // TODO: Error report 60 60 } 61 61 62 62 nv::load_gl_library(); 63 NV_LOG ( LOG_INFO, "OpenGL Vendor : " <<glGetString(GL_VENDOR) );64 NV_LOG ( LOG_INFO, "OpenGL Renderer : " << glGetString(GL_RENDERER) );65 NV_LOG ( LOG_INFO, "OpenGL Version : " << glGetString(GL_VERSION) );66 NV_LOG ( LOG_INFO, "OpenGL GLSL Version : " << glGetString(GL_SHADING_LANGUAGE_VERSION) );63 NV_LOG_INFO( "OpenGL Vendor : ", (const char*)glGetString(GL_VENDOR) ); 64 NV_LOG_INFO( "OpenGL Renderer : ", (const char*)glGetString( GL_RENDERER ) ); 65 NV_LOG_INFO( "OpenGL Version : ", (const char*)glGetString( GL_VERSION ) ); 66 NV_LOG_INFO( "OpenGL GLSL Version : ", (const char*)glGetString( GL_SHADING_LANGUAGE_VERSION ) ); 67 67 SDL_GL_SetSwapInterval(1); 68 68 -
trunk/src/sdl/sdl_window_manager.cc
r336 r365 19 19 if ( SDL_Init(0) < 0 ) 20 20 { 21 NV_LOG ( LOG_CRITICAL, "SDL initialization failed: " <<SDL_GetError( ) );21 NV_LOG_CRITICAL( "SDL initialization failed: ", SDL_GetError( ) ); 22 22 return; // TODO: Error report 23 23 }
Note: See TracChangeset
for help on using the changeset viewer.