Changeset 322
- Timestamp:
- 08/25/14 04:27:26 (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/core/common.hh
r319 r322 82 82 #define NV_DEBUG 0 83 83 #endif 84 #endif 85 86 #if NV_DEBUG 87 #ifndef NV_PROFILER 88 #define NV_PROFILER 89 #endif 90 #endif 91 92 #ifdef NV_PROFILER 93 #undef NV_PROFILER 94 #define NV_PROFILER 1 95 #else 96 #define NV_PROFILER 0 84 97 #endif 85 98 -
trunk/nv/core/profiler.hh
r319 r322 18 18 #include <unordered_map> 19 19 20 #if NV_PROFILER 20 21 #define NV_PROFILE( tag ) nv::profiler_guard __profile( tag ) 22 #else 23 #define NV_PROFILE( tag ) 24 #endif 21 25 22 26 namespace nv -
trunk/nv/interface/render_state.hh
r319 r322 95 95 96 96 blending() : 97 enabled( false ), 97 98 src_rgb_factor( ONE ), src_alpha_factor( ONE ), 98 99 dst_rgb_factor( ZERO ), dst_alpha_factor( ZERO ), … … 199 200 nv::polygon_mode polygon_mode; 200 201 bool depth_mask; 202 render_state() : depth_mask( true ) {} 201 203 }; 202 204 -
trunk/src/gui/gui_renderer.cc
r319 r322 11 11 #include "nv/interface/device.hh" 12 12 #include "nv/interface/context.hh" 13 #include "nv/core/logging.hh" 13 14 14 15 static const char *nv_gui_vertex_shader = … … 123 124 , m_reupload( true ) 124 125 { 126 NV_LOG( LOG_TRACE, "Creating GUI renderer..." ); 125 127 m_context = w->get_context(); 126 128 m_area.dim( dimension( w->get_width(), w->get_height() ) ); … … 133 135 delete[] wfill; 134 136 137 NV_LOG( LOG_TRACE, "Creating render data..." ); 135 138 screen_render_data* sr = new screen_render_data( w->get_context(), 1024 ); 136 139 m_render_data = sr; … … 152 155 m_render_state.blending.src_alpha_factor = blending::SRC_ALPHA; 153 156 m_render_state.blending.dst_alpha_factor = blending::ONE_MINUS_SRC_ALPHA; 157 NV_LOG( LOG_TRACE, "GUI Renderer created" ); 154 158 } 155 159 -
trunk/src/sdl/sdl_audio.cc
r319 r322 43 43 nv::sound* nv::sdl::audio::load_sound( const std::string& a_path ) 44 44 { 45 Mix_Chunk *sample = Mix_LoadWAV( a_path.c_str() ); 45 // TODO: this is a really wierd error - if we remove this check, all hell gets loose 46 if ( Mix_LoadWAV_RW == nullptr || SDL_RWFromFile == nullptr ) 47 { 48 NV_LOG( LOG_ERROR, "SDL_mixer not loaded!" ); 49 } 50 Mix_Chunk *sample = Mix_LoadWAV_RW(SDL_RWFromFile(a_path.c_str(), "rb"), 1); 46 51 if ( sample == nullptr ) 47 52 {
Note: See TracChangeset
for help on using the changeset viewer.