Mercurial > hg > octave-nkf
comparison src/graphics/opengl/gl-render.cc @ 7866:35e8d6199455
Add hggroup support in OpenGL renderer.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 26 Apr 2008 22:53:12 +0200 |
parents | 002b1d8460d2 |
children | b1823dfd6ec7 |
comparison
equal
deleted
inserted
replaced
7865:b74039822fd2 | 7866:35e8d6199455 |
---|---|
526 draw (dynamic_cast<const line::properties&> (props)); | 526 draw (dynamic_cast<const line::properties&> (props)); |
527 else if (go.isa ("surface")) | 527 else if (go.isa ("surface")) |
528 draw (dynamic_cast<const surface::properties&> (props)); | 528 draw (dynamic_cast<const surface::properties&> (props)); |
529 else if (go.isa ("patch")) | 529 else if (go.isa ("patch")) |
530 draw (dynamic_cast<const patch::properties&> (props)); | 530 draw (dynamic_cast<const patch::properties&> (props)); |
531 else if (go.isa ("hggroup")) | |
532 draw (dynamic_cast<const hggroup::properties&> (props)); | |
531 else | 533 else |
532 warning ("opengl_renderer: cannot render object of type `%s'", | 534 warning ("opengl_renderer: cannot render object of type `%s'", |
533 props.graphics_object_name ().c_str ()); | 535 props.graphics_object_name ().c_str ()); |
534 } | 536 } |
535 | 537 |
2480 draw_marker (v(idx,0), v(idx,1), (has_z ? v(idx,2) : 0), lc, fc); | 2482 draw_marker (v(idx,0), v(idx,1), (has_z ? v(idx,2) : 0), lc, fc); |
2481 } | 2483 } |
2482 | 2484 |
2483 end_marker (); | 2485 end_marker (); |
2484 } | 2486 } |
2487 } | |
2488 | |
2489 void | |
2490 opengl_renderer::draw (const hggroup::properties &props) | |
2491 { | |
2492 draw (props.get_children ()); | |
2485 } | 2493 } |
2486 | 2494 |
2487 void | 2495 void |
2488 opengl_renderer::set_viewport (int w, int h) | 2496 opengl_renderer::set_viewport (int w, int h) |
2489 { | 2497 { |