Ignore:
Timestamp:
05/30/13 20:13:08 (12 years ago)
Author:
epyon
Message:
  • root class for object trees
  • revised exception throwing - now using NV_THROW macro
  • exceptions thrown are logged
  • formatting fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_context.cc

    r45 r64  
    4949        if ( viewport.z < 0 || viewport.w < 0 )
    5050        {
    51                 throw new logic_error("viewport width and height must be greater than zero!");
     51                NV_THROW( logic_error, "viewport width and height must be greater than zero!");
    5252        }
    5353
     
    126126        if ( scissor.dim.x < 0 || scissor.dim.y < 0 )
    127127        {
    128                 throw new logic_error("scissor_test.rect width and height must be greater than zero!");
     128                NV_THROW( logic_error, "scissor_test.rect width and height must be greater than zero!" );
    129129        }
    130130
     
    174174        if ( range.near < 0.0 || range.near > 1.0 )
    175175        {
    176                 throw new logic_error("render_state.depth_range.near must be between zero and one!");
     176                NV_THROW( logic_error, "render_state.depth_range.near must be between zero and one!");
    177177        }
    178178        if ( range.far < 0.0 || range.far > 1.0 )
    179179        {
    180                 throw new logic_error("render_state.depth_range.far must be between zero and one!");
     180                NV_THROW( logic_error, "render_state.depth_range.far must be between zero and one!");
    181181        }
    182182
Note: See TracChangeset for help on using the changeset viewer.