Changes required for SUN Solaris port...
This commit is contained in:
@@ -243,7 +243,7 @@ class SG_EXPORT GeoSet : public Drawable
|
||||
/** set the colors and color indices of the geoset.*/
|
||||
void setColors( Vec4 *cp, IndexPointer& ip );
|
||||
/** set the color binding to the vertices/primitives/overall.*/
|
||||
void setColorBinding( BindingType binding );
|
||||
void setColorBinding( const BindingType binding );
|
||||
inline BindingType getColorBinding() const { return _color_binding; }
|
||||
|
||||
/** get the number of texture coords required by the defined primitives and textures binding.*/
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#if defined(WIN32) || defined (macintosh)
|
||||
#if defined(WIN32) || defined (macintosh)|| defined (sun)
|
||||
|
||||
#include <float.h>
|
||||
|
||||
|
||||
@@ -116,14 +116,18 @@ class SG_EXPORT State : public Referenced
|
||||
/** Get the DisplaySettings */
|
||||
inline const DisplaySettings* getDisplaySettings() const { return _displaySettings.get(); }
|
||||
|
||||
typedef std::pair<const StateAttribute*,StateAttribute::OverrideValue> AttributePair;
|
||||
typedef std::vector<AttributePair> AttributeVec;
|
||||
typedef std::vector<StateAttribute::GLModeValue> ValueVec;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
unsigned int _contextID;
|
||||
ref_ptr<FrameStamp> _frameStamp;
|
||||
ref_ptr<Camera> _camera;
|
||||
ref_ptr<DisplaySettings> _displaySettings;
|
||||
|
||||
typedef std::vector<StateAttribute::GLModeValue> ValueVec;
|
||||
|
||||
struct ModeStack
|
||||
{
|
||||
@@ -141,8 +145,6 @@ class SG_EXPORT State : public Referenced
|
||||
};
|
||||
|
||||
|
||||
typedef std::pair<const StateAttribute*,StateAttribute::OverrideValue> AttributePair;
|
||||
typedef std::vector<AttributePair> AttributeVec;
|
||||
|
||||
struct AttributeStack
|
||||
{
|
||||
|
||||
@@ -92,6 +92,7 @@ class OSGGLUT_EXPORT Viewer : public Window, public osgUtil::GUIActionAdapter
|
||||
osg::DisplaySettings* getDisplaySettings() { return _displaySettings.get(); }
|
||||
const osg::DisplaySettings* getDisplaySettings() const { return _displaySettings.get(); }
|
||||
|
||||
typedef std::vector<osg::ref_ptr<osgUtil::CameraManipulator> > CameraManipList;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -109,7 +110,6 @@ class OSGGLUT_EXPORT Viewer : public Window, public osgUtil::GUIActionAdapter
|
||||
|
||||
static Viewer* s_theViewer;
|
||||
|
||||
typedef std::vector<osg::ref_ptr<osgUtil::CameraManipulator> > CameraManipList;
|
||||
|
||||
struct ViewportDef
|
||||
{
|
||||
|
||||
@@ -63,12 +63,12 @@ class OSGUTIL_EXPORT Optimizer
|
||||
|
||||
void removeTransforms();
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
typedef std::vector<osg::Transform*> TransformStack;
|
||||
typedef std::vector<osg::Matrix> MatrixStack;
|
||||
|
||||
protected:
|
||||
|
||||
struct TransformStruct
|
||||
{
|
||||
typedef std::set<osg::Object*> ObjectSet;
|
||||
|
||||
@@ -34,7 +34,7 @@ Matrix::Matrix( const Matrix& other) : Object()
|
||||
set( (const float *) other._mat );
|
||||
}
|
||||
|
||||
Matrix::Matrix( const float * def )
|
||||
Matrix::Matrix( const float * const def )
|
||||
{
|
||||
set( def );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user