From Daniel Trstenjak, build fixes for Hpux 11.11, Irix 6.5, Solaris 8 and Aix
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#ifndef OSG_GLU
|
||||
#define OSG_GLU 1
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__) || defined (_AIX)
|
||||
#include <OpenGL/glu.h>
|
||||
#define GLU_TESS_CALLBACK GLvoid (CALLBACK*)(...)
|
||||
#else
|
||||
|
||||
@@ -84,6 +84,10 @@
|
||||
inline float atan2f(float value1, float value2) { return static_cast<float>(atan2(value1,value2)); }
|
||||
#endif
|
||||
|
||||
#ifndef tanf
|
||||
inline float tanf(float value) { return static_cast<float>(tan(value)); }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -95,6 +99,10 @@
|
||||
inline float floorf(float value) { return static_cast<float>(floor(value)); }
|
||||
#endif
|
||||
|
||||
#ifndef ceilf
|
||||
inline float ceilf(float value) { return static_cast<float>(ceil(value)); }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
namespace osg {
|
||||
|
||||
@@ -28,7 +28,13 @@ class OSG_EXPORT NodeTrackerCallback : public NodeCallback
|
||||
|
||||
typedef std::vector< observer_ptr<Node> > ObserveredNodePath;
|
||||
|
||||
void setTrackNodePath(const osg::NodePath& nodePath) { _trackNodePath.clear(); _trackNodePath.insert(_trackNodePath.begin(), nodePath.begin(),nodePath.end()); }
|
||||
void setTrackNodePath(const osg::NodePath& nodePath)
|
||||
{
|
||||
_trackNodePath.clear();
|
||||
_trackNodePath.reserve(nodePath.size());
|
||||
std::copy(nodePath.begin(), nodePath.end(), std::back_inserter(_trackNodePath));
|
||||
}
|
||||
|
||||
void setTrackNodePath(const ObserveredNodePath& nodePath) { _trackNodePath = nodePath; }
|
||||
ObserveredNodePath& getTrackNodePath() { return _trackNodePath; }
|
||||
|
||||
|
||||
@@ -160,8 +160,11 @@
|
||||
#define GL_TEXTURE_BINDING_3D 0x806A
|
||||
#endif
|
||||
|
||||
#ifndef GL_TEXTURE_COMPARE_MODE_ARB
|
||||
#ifndef GL_DEPTH_TEXTURE_MODE_ARB
|
||||
#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
|
||||
#endif
|
||||
|
||||
#ifndef GL_TEXTURE_COMPARE_MODE_ARB
|
||||
#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C
|
||||
#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D
|
||||
#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <osgDB/Export>
|
||||
|
||||
#include <deque>
|
||||
#include <iosfwd>
|
||||
|
||||
namespace osgDB {
|
||||
|
||||
|
||||
@@ -31,7 +31,13 @@ class OSGGA_EXPORT NodeTrackerManipulator : public MatrixManipulator
|
||||
|
||||
typedef std::vector< osg::observer_ptr<osg::Node> > ObserveredNodePath;
|
||||
|
||||
void setTrackNodePath(const osg::NodePath& nodePath) { _trackNodePath.clear(); _trackNodePath.insert(_trackNodePath.begin(), nodePath.begin(),nodePath.end()); }
|
||||
void setTrackNodePath(const osg::NodePath& nodePath)
|
||||
{
|
||||
_trackNodePath.clear();
|
||||
_trackNodePath.reserve(nodePath.size());
|
||||
std::copy(nodePath.begin(), nodePath.end(), std::back_inserter(_trackNodePath));
|
||||
}
|
||||
|
||||
void setTrackNodePath(const ObserveredNodePath& nodePath) { _trackNodePath = nodePath; }
|
||||
ObserveredNodePath& getTrackNodePath() { return _trackNodePath; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user