Ignore:
Timestamp:
02/01/10 17:37:44 (2 years ago)
Author:
ddangelo
Message:

osg 1D texture wrapped. Added function to create an av::osg::Image node by loading an image file. TexturedQuad? now supports 1D and 2D texturing. Old functionality should not be affected. The textured quad node should definitively be refactored into multiple nodes (or a script.container node).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/include/avango/osg/TexturedQuad.h

    r338 r341  
    3434#include <avango/osg/Geometry.h> 
    3535#include <osg/Texture2D> 
     36#include <avango/osg/Texture1D.h> 
    3637#include <avango/osg/Texture2D.h> 
    3738#include <osgDB/ReadFile> 
     
    7273      SFVec4 Color; 
    7374      SFVec3 Position; 
    74       SFTexture2D Texture; 
    75       //Due to backwards compatibility, thie flag indicates if the field Filename can be used to load a texture directly. 
     75      SFTexture1D Texture1D; 
     76      SFTexture2D Texture2D; 
     77      //Due to backwards compatibility, this flag indicates if the field Filename can be used to load a texture directly. 
    7678      //If this is set to False, the Texture field must be used directly. Default is True 
    7779      SFBool UseFilename; 
     
    99101      bool mColorChanged; 
    100102      bool mFilenameChanged; 
    101       bool mTextureChanged; 
     103      bool mTextureChanged1D; 
     104      bool mTextureChanged2D; 
    102105      bool mTexCoordsChanged; 
    103106 
Note: See TracChangeset for help on using the changeset viewer.