Changeset 45 for trunk/src/gl/gl_enum.cc


Ignore:
Timestamp:
05/28/13 17:55:52 (12 years ago)
Author:
epyon
Message:
  • temporary draw for context (and implementation)
  • cleaned up warnings
  • general cleanups
File:
1 edited

Legend:

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

    r44 r45  
    181181}
    182182
     183unsigned int nv::primitive_to_enum( primitive p )
     184{
     185        switch( p )
     186        {
     187        case POINTS         : return GL_POINTS;
     188        case LINES          : return GL_LINES;
     189        case LINE_LOOP      : return GL_LINE_LOOP;
     190        case LINE_STRIP     : return GL_LINE_STRIP;
     191        case TRIANGLES      : return GL_TRIANGLES;
     192        case TRIANGLE_STRIP : return GL_TRIANGLE_STRIP;
     193        case TRIANGLE_FAN   : return GL_TRIANGLE_FAN;
     194        default : return 0; // TODO: throw!
     195        }
     196}
    183197
    184198unsigned int nv::type_to_gl_enum( type type )
Note: See TracChangeset for help on using the changeset viewer.