Moved #include <osg/State> from header into .cpp to clean up build.
This commit is contained in:
@@ -353,8 +353,8 @@ ifeq ("$(COMPILE_OSG_OP_OT_WITH_SONAMES)","YES")
|
||||
LDFLAGS += -Wl,-soname -Wl,$@.0
|
||||
endif
|
||||
|
||||
LDFLAGS += `getconf LFS_LDFLAGS`
|
||||
DEF += `getconf LFS_CFLAGS`
|
||||
# LDFLAGS += `getconf LFS_LDFLAGS`
|
||||
# DEF += `getconf LFS_CFLAGS`
|
||||
|
||||
LIBS = -lstdc++
|
||||
DEF += -W -Wall -fPIC -pipe
|
||||
|
||||
@@ -24,16 +24,16 @@ SRC_DIRS = \
|
||||
osgFX\
|
||||
osgProducer\
|
||||
|
||||
ifeq ($(GDAL_INSTALLED),yes)
|
||||
SRC_DIRS += osgTerrain
|
||||
endif
|
||||
|
||||
ifeq ($(COMPILE_INTROSPECTION),yes)
|
||||
SRC_DIRS += \
|
||||
osgIntrospection\
|
||||
osgWrappers
|
||||
endif
|
||||
|
||||
ifeq ($(GDAL_INSTALLED),yes)
|
||||
SRC_DIRS += osgTerrain
|
||||
endif
|
||||
|
||||
SRC_DIRS += \
|
||||
osgPlugins\
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
#ifndef OSG_BUFFEROBJECT
|
||||
#define OSG_BUFFEROBJECT 1
|
||||
|
||||
#include <osg/State>
|
||||
#include <osg/GL>
|
||||
#include <osg/Object>
|
||||
#include <osg/buffered_value>
|
||||
|
||||
#ifndef GL_ARB_vertex_buffer_object
|
||||
@@ -77,6 +78,8 @@
|
||||
namespace osg
|
||||
{
|
||||
|
||||
class State;
|
||||
|
||||
class SG_EXPORT BufferObject : public Object
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
#define OSG_DRAWABLE 1
|
||||
|
||||
#include <osg/BoundingBox>
|
||||
#include <osg/NodeVisitor>
|
||||
#include <osg/Shape>
|
||||
#include <osg/BufferObject>
|
||||
#include <osg/PrimitiveSet>
|
||||
#include <osg/State>
|
||||
|
||||
|
||||
#ifndef GL_NV_occlusion_query
|
||||
@@ -51,6 +51,7 @@ class Vec3f;
|
||||
class Vec4f;
|
||||
class UByte4;
|
||||
class Geometry;
|
||||
class NodeVisitor;
|
||||
|
||||
// this is defined to alter the way display lists are compiled inside the
|
||||
// the draw method, it has been found that the NVidia drivers fail completely
|
||||
|
||||
@@ -192,24 +192,6 @@ class SG_EXPORT StateAttribute : public Object
|
||||
/** Simple pairing between an attribute type and the member within that attribute type group.*/
|
||||
typedef std::pair<Type,unsigned int> TypeMemberPair;
|
||||
|
||||
/*
|
||||
struct TypeMember
|
||||
{
|
||||
inline TypeMember(Type type, unsigned int member=0):
|
||||
_type(type),
|
||||
_member(member) {}
|
||||
|
||||
inline bool operator < (const TypeMember& tm) const
|
||||
{
|
||||
return (_type<tm._type) ? true : ( (tm._type<_type) ? false : (_member<tm._member) );
|
||||
}
|
||||
|
||||
Type _type;
|
||||
unsigned int _member;
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
StateAttribute() { setDataVariance(STATIC); }
|
||||
|
||||
StateAttribute(const StateAttribute& sa,const CopyOp& copyop=CopyOp::SHALLOW_COPY):
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <osg/GLExtensions>
|
||||
#include <osg/Timer>
|
||||
#include <osg/Image>
|
||||
#include <osg/State>
|
||||
|
||||
#include <OpenThreads/ScopedLock>
|
||||
#include <OpenThreads/Mutex>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
#include <osg/PrimitiveSet>
|
||||
#include <osg/BufferObject>
|
||||
#include <osg/State>
|
||||
|
||||
using namespace osg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user