- Timestamp:
- 05/28/13 12:21:27 (12 years ago)
- Location:
- trunk/src/gl
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r38 r42 7 7 #include "nv/gl/gl_window.hh" 8 8 #include "nv/gl/gl_program.hh" 9 #include "nv/gl/gl_vertex_buffer.hh" 9 10 #include "nv/logging.hh" 10 11 #include "nv/lib/sdl12.hh" … … 50 51 } 51 52 53 vertex_buffer* gl_device::create_vertex_buffer( buffer_hint hint, int size, void* source /*= nullptr */ ) 54 { 55 return new gl_vertex_buffer( hint, size, source ); 56 } 52 57 53 58 gl_device::~gl_device() … … 55 60 SDL_Quit(); 56 61 } 62 -
trunk/src/gl/gl_enum.cc
r40 r42 123 123 } 124 124 125 unsigned int nv::buffer_hint_to_enum( buffer_hint hint ) 126 { 127 switch( hint ) 128 { 129 case STATIC_DRAW : return GL_STATIC_DRAW; 130 case STREAM_DRAW : return GL_STREAM_DRAW; 131 case DYNAMIC_DRAW : return GL_DYNAMIC_DRAW; 132 default : return 0; // TODO: throw! 133 } 134 } 135 125 136 unsigned int nv::type_to_gl_enum( type type ) 126 137 {
Note: See TracChangeset
for help on using the changeset viewer.