Changeset 5375
- Timestamp:
- 08/02/06 12:43:26
- Files:
-
- OpenSceneGraph/trunk/Make/makedefs (modified) (2 diffs)
- OpenSceneGraph/trunk/include/osg/GLU (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Math (modified) (2 diffs)
- OpenSceneGraph/trunk/include/osg/NodeTrackerCallback (modified) (1 diff)
- OpenSceneGraph/trunk/include/osg/Texture (modified) (1 diff)
- OpenSceneGraph/trunk/include/osgDB/ReaderWriter (modified) (1 diff)
- OpenSceneGraph/trunk/include/osgGA/NodeTrackerManipulator (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ControlRecords.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/GeometryRecords.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/PaletteRecords.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Pools.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Record.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Record.h (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/bsp/BSPLoad.cpp (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/bsp/BSPLoad.h (modified) (1 diff)
- OpenSceneGraph/trunk/src/osgPlugins/lwo/ReaderWriterLWO.cpp (modified) (2 diffs)
- OpenSceneGraph/trunk/src/osgPlugins/net/sockstream.cpp (modified) (2 diffs)
- OpenThreads/trunk/Make/makedefs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/Make/makedefs
r5354 r5375 234 234 #### IRIX Specific definitions 235 235 ifeq ($(OS),IRIX) 236 INSTBINCMD = cp 237 INSTDEVCMD = cp 236 238 CXX = CC 237 239 ifeq ($(CXX),CC) … … 726 728 GDAL_LIBS = `gdal-config --libs` 727 729 730 INSTXCMD = install -c -m 755 731 INSTRCMD = install -c -m 644 732 733 INSTBINCMD = install -c -m 755 734 INSTDEVCMD = install -c -m 644 735 endif 736 737 738 ifeq ($(OS),AIX) 739 CXX = g++ 740 C++ = $(CXX) 741 DEPARG = -M 742 INC += 743 DEF += 744 OPTF = -O 745 DBGF = -g 746 SHARED = 747 ARCH = 32 748 LDFLAGS += 749 LINKARGS = -lpthread 750 LIB_EXT = sl 751 PLUGIN_EXT = sl 752 DYNAMICLIBRARYLIB = -ldld 753 754 755 OSG_LIBS = -losgGA -losgDB -losgUtil -losg 756 GL_LIBS = -lGLU -lGL 757 X_INC = 758 X_LIBS = -lXext -lXi -lX11 759 SOCKET_LIBS = 760 OTHER_LIBS = -lm -lOpenThreads 761 PNG_INCLUDE = -I/usr/local/include/libpng -I/usr/local/include/ 762 PNG_LIBS = -L/usr/local/lib -lpng -lz 763 JPEG_INCLUDE = -I/usr/local/include 764 JPEG_LIBS = -L/usr/local/lib -ljpeg 765 TIFF_INCLUDE = -I/usr/local/include 766 TIFF_LIB = -L/usr/local/lib -ltiff 767 GIF_INCLUDE = -I/opt/libungif/include 768 GIF_LIBS = -L/opt/libungif/lib -lungif 769 770 FREETYPE_INCLUDE = `freetype-config --cflags` 771 FREETYPE_LIB = `freetype-config --libs` 772 773 GDAL_INCLUDES = `gdal-config --cflags` 774 GDAL_LIBS = `gdal-config --libs` 775 728 776 endif 729 777 OpenSceneGraph/trunk/include/osg/GLU
r5328 r5375 15 15 #define OSG_GLU 1 16 16 17 #if def __APPLE__17 #if defined(__APPLE__) || defined (_AIX) 18 18 #include <OpenGL/glu.h> 19 19 #define GLU_TESS_CALLBACK GLvoid (CALLBACK*)(...) OpenSceneGraph/trunk/include/osg/Math
r5141 r5375 85 85 #endif 86 86 87 #ifndef tanf 88 inline float tanf(float value) { return static_cast<float>(tan(value)); } 89 #endif 90 87 91 #endif 88 92 … … 94 98 #ifndef floorf 95 99 inline float floorf(float value) { return static_cast<float>(floor(value)); } 100 #endif 101 102 #ifndef ceilf 103 inline float ceilf(float value) { return static_cast<float>(ceil(value)); } 96 104 #endif 97 105 OpenSceneGraph/trunk/include/osg/NodeTrackerCallback
r5328 r5375 29 29 typedef std::vector< observer_ptr<Node> > ObserveredNodePath; 30 30 31 void setTrackNodePath(const osg::NodePath& nodePath) { _trackNodePath.clear(); _trackNodePath.insert(_trackNodePath.begin(), nodePath.begin(),nodePath.end()); } 31 void setTrackNodePath(const osg::NodePath& nodePath) 32 { 33 _trackNodePath.clear(); 34 _trackNodePath.reserve(nodePath.size()); 35 std::copy(nodePath.begin(), nodePath.end(), std::back_inserter(_trackNodePath)); 36 } 37 32 38 void setTrackNodePath(const ObserveredNodePath& nodePath) { _trackNodePath = nodePath; } 33 39 ObserveredNodePath& getTrackNodePath() { return _trackNodePath; } OpenSceneGraph/trunk/include/osg/Texture
r5358 r5375 161 161 #endif 162 162 163 #ifndef GL_DEPTH_TEXTURE_MODE_ARB 164 #define GL_DEPTH_TEXTURE_MODE_ARB 0x884B 165 #endif 166 163 167 #ifndef GL_TEXTURE_COMPARE_MODE_ARB 164 #define GL_DEPTH_TEXTURE_MODE_ARB 0x884B165 168 #define GL_TEXTURE_COMPARE_MODE_ARB 0x884C 166 169 #define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D OpenSceneGraph/trunk/include/osgDB/ReaderWriter
r5328 r5375 23 23 24 24 #include <deque> 25 #include <iosfwd> 25 26 26 27 namespace osgDB { OpenSceneGraph/trunk/include/osgGA/NodeTrackerManipulator
r5328 r5375 32 32 typedef std::vector< osg::observer_ptr<osg::Node> > ObserveredNodePath; 33 33 34 void setTrackNodePath(const osg::NodePath& nodePath) { _trackNodePath.clear(); _trackNodePath.insert(_trackNodePath.begin(), nodePath.begin(),nodePath.end()); } 34 void setTrackNodePath(const osg::NodePath& nodePath) 35 { 36 _trackNodePath.clear(); 37 _trackNodePath.reserve(nodePath.size()); 38 std::copy(nodePath.begin(), nodePath.end(), std::back_inserter(_trackNodePath)); 39 } 40 35 41 void setTrackNodePath(const ObserveredNodePath& nodePath) { _trackNodePath = nodePath; } 36 42 ObserveredNodePath& getTrackNodePath() { return _trackNodePath; } OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ControlRecords.cpp
r5229 r5375 5 5 // 6 6 7 #include < cassert>7 #include <assert.h> 8 8 #include <osg/Geode> 9 9 #include <osg/Geometry> OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/GeometryRecords.cpp
r5229 r5375 5 5 // 6 6 7 #include < cassert>7 #include <assert.h> 8 8 #include <osg/Geode> 9 9 #include <osg/Billboard> OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/PaletteRecords.cpp
r5251 r5375 5 5 // 6 6 7 #include < cassert>7 #include <assert.h> 8 8 #include <osg/Texture2D> 9 9 #include <osg/TexEnv> OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Pools.cpp
r5229 r5375 5 5 // 6 6 7 #include < cassert>7 #include <assert.h> 8 8 #include "Pools.h" 9 9 #include "Document.h" OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Record.cpp
r5222 r5375 15 15 16 16 Record::Record() 17 { 18 } 19 20 Record::~Record() 17 21 { 18 22 } OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Record.h
r5222 r5375 50 50 protected: 51 51 52 virtual ~Record() {}52 virtual ~Record(); 53 53 54 54 virtual void readRecord(RecordInputStream& in, Document& document); OpenSceneGraph/trunk/src/osgPlugins/bsp/BSPLoad.cpp
r5228 r5375 5 5 6 6 #include "BSPLoad.h" 7 8 #include <fstream>9 10 11 7 12 8 OpenSceneGraph/trunk/src/osgPlugins/bsp/BSPLoad.h
r5204 r5375 11 11 #include <string> 12 12 13 #include <fstream> 13 14 14 15 //Directory entry in header OpenSceneGraph/trunk/src/osgPlugins/lwo/ReaderWriterLWO.cpp
r5187 r5375 38 38 39 39 #include "Converter.h" 40 #include "VertexMap.h" 40 41 41 42 #include "old_lw.h" … … 105 106 if (iss >> mapname >> unit) 106 107 { 107 conv_options.texturemap_bindings.insert( std::make_pair(mapname, unit));108 conv_options.texturemap_bindings.insert(lwosg::VertexMap_binding_map::value_type(mapname, unit)); 108 109 } 109 110 } OpenSceneGraph/trunk/src/osgPlugins/net/sockstream.cpp
r5344 r5375 65 65 #include <string> 66 66 67 #if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || defined (__sgi) || defined (__hpux)67 #if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || defined (__sgi) 68 68 typedef int socklen_t; 69 69 #endif … … 247 247 case EINTR: 248 248 case EWOULDBLOCK: 249 // On FreeBSD (and probably on Linux too) 250 // EAGAIN has the same value as EWOULDBLOCK 251 #if !defined(__CYGWIN__) && !defined( __sgi) && !defined(__linux__) && !defined(__sun) && !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) // LN 249 #if defined(EAGAIN) && (EAGAIN != EWOULDBLOCK) 252 250 case EAGAIN: 253 251 #endif OpenThreads/trunk/Make/makedefs
r5353 r5375 417 417 DYNAMICLIBRARYLIB = -ldld 418 418 OTHER_LIBS = -lm 419 INSTXCMD = install -c -m 755 420 INSTRCMD = install -c -m 644 421 endif 422 423 #### AIX Specific Additions 424 425 ifeq ($(OS),AIX) 426 CXX = g++ -D_REENTRANT 427 DEPARG = -M 428 INC += 429 DEF += 430 OPTF = -O 431 DBGF = -g 432 SHARED = 433 ARCH = 32 434 LDFLAGS = 435 LINKARGS = -lpthread 436 LIB_EXT = a 437 PLUGIN_EXT = a 438 DYNAMICLIBRARYLIB = -ldld 439 OTHER_LIBS = -lm 419 440 endif 420 441
