Canvas sandbox: Difference between revisions

Jump to navigation Jump to search
Line 176: Line 176:


== CanvasPDF ==
== CanvasPDF ==
[[File:Osgpdf-showing-getstart.png|right|thumb|Screenshot showing the unmodified osgpdf example which loads a pdf file, renders it to a surface and adds it to the osgviewer scene]]


Checking the examples in the osg source tree, the demo rendering a PDF to a osg::Node is fairly compelling and extremely compact, requiring only ~15 lines of code {{OSG example|example=osgpdf}}:
Checking the examples in the osg source tree, the demo rendering a PDF to a osg::Node is fairly compelling and extremely compact, requiring only ~15 lines of code {{OSG example|example=osgpdf}}:

Navigation menu