Home   Notes   Contact Me

OpenSceneGraph

Local

External


Header File Table

HeaderSymbols
osg/ReadFile readImageFile
osg/Texture2D
Texture2D

cmakeConfig

Here is stuff I pasted into the top level CMakeLists.txt file.
SET (LIBXML2_BASE "D:/jbp/libxml2-2.7.8.win32") SET (LIBXML2_INCLUDE_DIR "${LIBXML2_BASE}/include") SET (LIBXML2_LIBRARIES "${LIBXML2_BASE}/lib/libxml2.lib") SET (CURL_BASE "D:/jbp/libcurl-7.18.0.win32") SET (CURL_LIBRARY "${CURL_BASE}/libcurl.lib") SET (CURL_INCLUDE_DIR "${CURL_BASE}/include")
Inside of the cmake gui I set these:
NameValue
FREETYPE_INCLUDE_DIR_freetype2D:/jbp/freetype-2.4.4/include/freetype
FREETYPE_INCLUDE_DIR_ft2buildD:/jbp/freetype-2.4.4/include
FREETYPE_LIBRARYD:/jbp/freetype-2.4.4/objs/win32/vc2008/freetype244MT_D.lib

osgViewer Windowed

osg::ref_ptr<osg::Node> root = osgDB::readNodeFile("cow.osg"); osgViewer::Viewer viewer; viewer.setUpViewInWindow(20, 20, 500, 500, 1); viewer.setSceneData( root.get() ); return viewer.run();