Ignore:
Timestamp:
Oct 17, 2010, 8:32:03 PM (14 years ago)
Author:
Torben Dannhauer
Message:

Silverlining integration updated on the road to Silverlining 2.0 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/sky_Silverlining/skySilverLining_skyDrawable.h

    r88 r134  
    3030
    3131#include <skySilverLining_cloudLayerSlot.h>
     32#include <visual_util.h>
    3233
    3334#include <SilverLining.h>
     
    3839
    3940class skySilverLining_atmosphereReference;
     41
     42struct cloudlayerOrder
     43{
     44        int slot;
     45        double lat;
     46        double lon;
     47        double baseLength;
     48        double baseWidth;
     49        double thickness;
     50        double baseHeight;
     51        double density;
     52        CloudTypes cloudtype;
     53        cloudLayerSlot* assocCloudLayerSlot;    // Pointer to the cloudlayerslot managed by visual_skySilverlining.
     54};
     55
    4056
    4157class skySilverLining_skyDrawable : public osg::Drawable
     
    6076    virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
    6177
    62         void addCloudLayer(cloudLayerSlot *cloudLayerSlot_);
     78        void addCloudLayerOrder(cloudlayerOrder newCL);
    6379
    6480        void shutdown();
     
    7591private:
    7692        OpenThreads::Mutex cloudLayersToAddMutex;
    77         mutable std::vector<cloudLayerSlot*> cloudLayerSlots;
     93        std::vector<cloudlayerOrder> pendingNewCloudLayers;
    7894        bool newCloudLayersToAdd;
    7995        osg::ref_ptr<osg::CoordinateSystemNode> sceneRoot;
Note: See TracChangeset for help on using the changeset viewer.