正在加载图片...
Contents 2./Memory Management ..... 31 2.1./The Referenced Class..... 33 2.1.2 The ref_ptr<>Template Class 34 2.1.3 Memory Management Examples............... 34 2.2 Geodes and Geometry...... .36 2.2.1 An Overview of Geometry Classes. 40 2.3 Group Nodes.. .44 2.3./The Child Interface 44 2.3.2The Parent Interface 45 2.3.3Transform Nodes............. .46 2.3.4The LOD Node............. 50 2.3.5The Switch Node.... 51 2.4 Rendering State.… 53 2.4./Attributes and Modes ............. 54 2.4.2State Inheritance..... 56 2.4.3 Example Code for Setting State 57 2Texture Mapping..... 61 2.4.51 ighting… 64 2.5 File I/O.. 69 2.5.1 Interface… …70 2.5.2 Plugin Discovery and Registration .71 2.6 NodeKits and osgText............ 72 2.6./osgText Components..... 73 2.6.2 Using osgText.… 73 2.6.3 Text Example Code... 77 2.6.4 The .osg File Format.... 78 3 Using OpenSceneGraph in Your Application......................83 3./Rendering... 83 3.1./The Viewer Class.................. 84 3.1.2 SimpleViewer and CompositeViewer. 87 3.2 Dynamic Modification............ 88 3.2.1 Data Variance..… 88 322Cabacks89 3.2 NOde ViSitOrS94 3.2.4 Picking.… .95 Appendix:Where to Go From Here............103ii Contents 2.1 Memory Management ............................................................................................................ 31 2.1.1 The Referenced Class..................................................................................................... 33 2.1.2 The ref_ptr<> Template Class .................................................................................... 34 2.1.3 Memory Management Examples.................................................................................. 34 2.2 Geodes and Geometry ........................................................................................................... 36 2.2.1 An Overview of Geometry Classes.............................................................................. 40 2.3 Group Nodes........................................................................................................................... 44 2.3.1 The Child Interface ........................................................................................................ 44 2.3.2 The Parent Interface ...................................................................................................... 45 2.3.3 Transform Nodes........................................................................................................... 46 2.3.4 The LOD Node.............................................................................................................. 50 2.3.5 The Switch Node............................................................................................................ 51 2.4 Rendering State ....................................................................................................................... 53 2.4.1 Attributes and Modes .................................................................................................... 54 2.4.2 State Inheritance............................................................................................................. 56 2.4.3 Example Code for Setting State ................................................................................... 57 2.4.4 Texture Mapping ............................................................................................................ 61 2.4.5 Lighting............................................................................................................................ 64 2.5 File I/O.................................................................................................................................... 69 2.5.1 Interface........................................................................................................................... 70 2.5.2 Plugin Discovery and Registration............................................................................... 71 2.6 NodeKits and osgText ........................................................................................................... 72 2.6.1 osgText Components..................................................................................................... 73 2.6.2 Using osgText ................................................................................................................. 73 2.6.3 Text Example Code ....................................................................................................... 77 2.6.4 The .osg File Format...................................................................................................... 78 3 Using OpenSceneGraph in Your Application.................................83 3.1 Rendering................................................................................................................................. 83 3.1.1 The Viewer Class............................................................................................................ 84 3.1.2 SimpleViewer and CompositeViewer .......................................................................... 87 3.2 Dynamic Modification............................................................................................................ 88 3.2.1 Data Variance.................................................................................................................. 88 3.2.2 Callbacks.......................................................................................................................... 89 3.2.3 NodeVisitors................................................................................................................... 94 3.2.4 Picking.............................................................................................................................. 95 Appendix: Where to Go From Here .....................................................103
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有