Ignore:
Timestamp:
05/12/14 16:49:24 (11 years ago)
Author:
epyon
Message:
  • polygon_mode added to context and gl context implementation
File:
1 edited

Legend:

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

    r121 r233  
    3333        }
    3434}
     35
     36unsigned int nv::polygon_mode_fill_to_enum( polygon_mode::fill_type type )
     37{
     38        switch( type )
     39        {
     40        case polygon_mode::FILL           : return GL_FILL;
     41        case polygon_mode::LINE           : return GL_LINE;
     42        case polygon_mode::POINT          : return GL_POINT;
     43        NV_RETURN_COVERED_DEFAULT( 0 );
     44        }
     45}
     46
     47
    3548
    3649unsigned int nv::blending_factor_to_enum( blending::factor type )
Note: See TracChangeset for help on using the changeset viewer.