BRL-CAD
osg_bob.cpp File Reference
#include "common.h"
#include "ged.h"
#include "tk.h"
#include "solid.h"
#include "dm.h"
#include "dm_xvars.h"
#include "dm-ogl.h"
#include <assert.h>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgUtil/Optimizer>
#include <osg/CoordinateSystemNode>
#include <osg/Switch>
#include <osgText/Text>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osgGA/StandardManipulator>
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightManipulator>
#include <osgGA/DriveManipulator>
#include <osgGA/KeySwitchMatrixManipulator>
#include <osgGA/StateSetManipulator>
#include <osgGA/AnimationPathManipulator>
#include <osgGA/TerrainManipulator>
#include <osgGA/SphericalManipulator>
#include <iostream>
#include <osg/TexGen>
#include <osg/Texture2D>
#include <osgViewer/api/X11/GraphicsWindowX11>
#include <osg/MatrixTransform>
#include <osg/ShapeDrawable>
Include dependency graph for osg_bob.cpp:

Go to the source code of this file.

Data Structures

struct  osg_stuff
 
class  Teapot
 

Functions

void dm_osgInit (struct dm *dmp)
 
void dm_osgReshape (struct dm *dmp)
 
void dm_osgPaint (struct dm *dmp)
 
void dm_osgLoadMatrix (struct dm *dmp, matp_t mp)
 
osg::Geode * createTeapot ()
 

Function Documentation

void dm_osgInit ( struct dm dmp)

Definition at line 338 of file osg_bob.cpp.

References bu_calloc(), bu_log(), dm_internal::dm_height, dm_internal::dm_perspective, dm_internal::dm_vars, dm_internal::dm_width, and dm_vars::pub_vars.

Here is the call graph for this function:

void dm_osgReshape ( struct dm dmp)

Definition at line 414 of file osg_bob.cpp.

References bu_log(), dm_internal::dm_height, dm_internal::dm_width, and osg_stuff::viewer.

Here is the call graph for this function:

void dm_osgPaint ( struct dm dmp)

Definition at line 437 of file osg_bob.cpp.

References dm_internal::dm_perspective, and osg_stuff::viewer.

void dm_osgLoadMatrix ( struct dm dmp,
matp_t  mp 
)

Definition at line 453 of file osg_bob.cpp.

References bn_mat_inv(), bn_mat_mul(), osg_stuff::bottom, bu_log(), dm_internal::dm_perspective, osg_stuff::far, osg_stuff::left, osg_stuff::near, osg_stuff::prev_pflag, quat_mat2quat(), quat_quat2mat(), osg_stuff::right, osg_stuff::top, osg_stuff::viewer, X, Y, and Z.

Here is the call graph for this function:

osg::Geode* createTeapot ( )

Definition at line 308 of file osg_bob.cpp.