Changeset 9961

Show
Ignore:
Timestamp:
03/23/09 18:08:58 (4 years ago)
Author:
robert
Message:

From Luc Frauciel, You'll find attached a modification in ive plugin for POLYGONSTIPPLE read/write.

Location:
OpenSceneGraph/trunk/src/osgPlugins/ive
Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/ive/CMakeLists.txt

    r9033 r9961  
    7979    PolygonMode.cpp 
    8080    PolygonOffset.cpp 
     81    PolygonStipple.cpp 
    8182    PositionAttitudeTransform.cpp 
    8283    PrimitiveSet.cpp 
     
    195196    PolygonMode.h 
    196197    PolygonOffset.h 
     198    PolygonStipple.h 
    197199    PositionAttitudeTransform.h 
    198200    PrimitiveSet.h 
  • OpenSceneGraph/trunk/src/osgPlugins/ive/DataInputStream.cpp

    r9527 r9961  
    5757#include "Fog.h" 
    5858#include "Light.h" 
     59#include "PolygonStipple.h" 
    5960 
    6061 
     
    14121413        ((ive::Light*)(attribute))->read(this); 
    14131414    } 
     1415    else if(attributeID == IVEPOLYGONSTIPPLE){ 
     1416        attribute = new osg::PolygonStipple(); 
     1417        ((ive::PolygonStipple*)(attribute))->read(this); 
     1418    } 
    14141419    else{ 
    14151420        throw Exception("Unknown StateAttribute in StateSet::read()"); 
  • OpenSceneGraph/trunk/src/osgPlugins/ive/DataOutputStream.cpp

    r9475 r9961  
    6060#include "Fog.h" 
    6161#include "Light.h" 
     62#include "PolygonStipple.h" 
    6263 
    6364#include "Group.h" 
     
    10901091            ((ive::Light*)(attribute))->write(this); 
    10911092        } 
     1093        // This is a PolygonStipple 
     1094        else if(dynamic_cast<const osg::PolygonStipple*>(attribute)){ 
     1095            ((ive::PolygonStipple*)(attribute))->write(this); 
     1096        } 
    10921097 
    10931098        else{ 
  • OpenSceneGraph/trunk/src/osgPlugins/ive/ReadWrite.h

    r8817 r9961  
    8888#define IVEFOG                          0x00001133 
    8989#define IVELINESTIPPLE                  0x00001134 
     90#define IVEPOLYGONSTIPPLE               0x00001135 
    9091 
    9192// Drawables