- Timestamp:
- 06/05/13 17:19:34 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/gui/gui_common.hh
r69 r108 33 33 { 34 34 public: 35 ~render_data(){}35 virtual ~render_data(){} 36 36 }; 37 37 38 38 class element; 39 39 class environment; 40 class renderer; 40 41 41 42 } // namespace gui -
trunk/nv/position.hh
r97 r108 59 59 rectangle& operator-=( const position& pos ) { ul -= pos; lr -= pos; return (*this); } 60 60 rectangle operator-( const position& pos ) const { rectangle r(*this); return r -= pos; } 61 bool operator==( const rectangle& r ) { return r.ul == ul && r.lr == lr; }62 bool operator!=( const rectangle& r ) { return r.ul != ul || r.lr != lr; }61 bool operator==( const rectangle& r ) const { return r.ul == ul && r.lr == lr; } 62 bool operator!=( const rectangle& r ) const { return r.ul != ul || r.lr != lr; } 63 63 64 64 bool contains( const position& r ) const{ return y2 >= r.y && y1 <= r.y && x2 >= r.x && x1 <= r.x; } -
trunk/src/gl/gl_context.cc
r64 r108 351 351 gl_context::gl_context() 352 352 { 353 // TODO: do we really need this? 354 glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ); 353 355 force_apply_render_state( m_render_state ); 354 356 } … … 357 359 { 358 360 apply_render_state( rs ); 359 p->bind(); 360 va->bind(); 361 glDrawArrays( primitive_to_enum(prim), 0, count); 362 va->unbind(); 363 p->unbind(); 364 } 361 if ( count > 0 ) 362 { 363 p->bind(); 364 va->bind(); 365 glDrawArrays( primitive_to_enum(prim), 0, count); 366 va->unbind(); 367 p->unbind(); 368 } 369 }
Note: See TracChangeset
for help on using the changeset viewer.