Changeset 33

Show
Ignore:
Timestamp:
03/29/07 16:51:07 (2 years ago)
Author:
astraw
Message:

runs on OSG 1.2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pyosg/osg/CameraNode.cpp

    r28 r33  
    99// This software is provided "as is" without express or implied warranty, 
    1010// and with no claim as to its suitability for any purpose. 
     11#include <osg/Version> 
    1112#if (OSG_VERSION_MAJOR>=1) 
    1213#include <boost/python/module.hpp> 
  • trunk/pyosg/osg/Vec4ub.cpp

    r30 r33  
    99// This software is provided "as is" without express or implied warranty, 
    1010// and with no claim as to its suitability for any purpose. 
     11#include <osg/Version> 
    1112#if (OSG_VERSION_MAJOR>=1) 
    1213#include <boost/python/class.hpp> 
  • trunk/pyosg/osg/osg.cpp

    r24 r33  
    7878    void init_Vec3d(); 
    7979    void init_Vec4(); 
     80#if (OSG_VERSION_MAJOR>=1) 
    8081    void init_Vec4ub(); 
     82#endif 
    8183    void init_Quat(); 
    8284//    void init_UByte4(); 
     
    148150    void init_CollectOccludersVisitor(); 
    149151    void init_PointSprite(); 
     152#if (OSG_VERSION_MAJOR>=1) 
    150153    void init_CameraNode(); 
     154#endif 
    151155    void init_Shader(); 
    152156    void init_Program(); 
  • trunk/pyosg/osgProducer/osgProducer.cpp

    r3 r33  
    2222void init_OsgSceneHandler(); 
    2323void init_Viewer(); 
     24#if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 1)) 
    2425void init_EventAdapter(); 
     26#endif 
    2527 
    2628void __init_osgProducer() 
     
    3335    init_OsgCameraGroup(); 
    3436    init_Viewer(); 
     37#if ((OSG_VERSION_MAJOR==1) && (OSG_VERSION_MINOR < 1)) 
    3538    init_EventAdapter(); 
     39#endif 
    3640} 
    3741}