Ignore:
Timestamp:
06/06/16 18:54:52 (9 years ago)
Author:
epyon
Message:
  • ecs work
  • particle engine rehaul
  • added map/unmap buffer to ::context
File:
1 edited

Legend:

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

    r492 r499  
    287287}
    288288
    289 
    290289unsigned int nv::output_slot_to_enum( output_slot slot )
    291290{
     
    307306}
    308307
     308
     309unsigned int nv::buffer_access_to_bitfield( buffer_access type )
     310{
     311        switch ( type )
     312        {
     313        case WRITE_UNSYNCHRONIZED     : return GL_MAP_WRITE_BIT | GL_MAP_UNSYNCHRONIZED_BIT;
     314        default: return 0; // TODO: throw!
     315        }
     316}
    309317
    310318unsigned int nv::datatype_to_gl_enum( datatype type )
Note: See TracChangeset for help on using the changeset viewer.