Changeset 739
- Timestamp:
- 05/30/07 01:25:22 (2 years ago)
- Files:
-
- trunk/Tutorials/05geometry.cpp (modified) (1 diff)
- trunk/Tutorials/10loading.cpp (modified) (1 diff)
- trunk/Tutorials/13ClusterClientShader.cpp (added)
- trunk/Tutorials/22Shader.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Tutorials/05geometry.cpp
r637 r739 203 203 // note that this is the abstract parent class, it doesn't have a specific 204 204 // type 205 Geo PositionsPtr pos = geo->getPositions();205 GeoVectorPropertyPtr pos = geo->getPositions(); 206 206 207 207 for(UInt32 i = 0; i < pos->getSize(); i++) trunk/Tutorials/10loading.cpp
r618 r739 33 33 // helper class to find a named node 34 34 // names are handled as simple attachments, get the header for that 35 #include <OpenSG/OSG SimpleAttachments.h>35 #include <OpenSG/OSGNameAttachment.h> 36 36 37 37 // There are two convenience functions for name access: getName() and trunk/Tutorials/22Shader.cpp
r637 r739 21 21 #include <OpenSG/OSGSimpleMaterial.h> 22 22 #include <OpenSG/OSGImage.h> 23 #include <OpenSG/OSGTextureChunk.h> 23 #include <OpenSG/OSGTextureObjChunk.h> 24 #include <OpenSG/OSGTextureEnvChunk.h> 24 25 #include <OpenSG/OSGGradientBackground.h> 25 26 #include <OpenSG/OSGSHLChunk.h> … … 152 153 bottom_img->set(Image::OSG_RGB_PF, 2, 2, 1, 1, 1, 0, imgdata); 153 154 154 TextureChunkPtr bottom_tex = TextureChunk::create(); 155 TextureObjChunkPtr bottom_tex = TextureObjChunk::create(); 156 TextureEnvChunkPtr bottom_tex_env = TextureEnvChunk::create(); 157 155 158 bottom_tex->setImage(bottom_img); 156 159 bottom_tex->setMinFilter(GL_LINEAR); … … 158 161 bottom_tex->setWrapS(GL_REPEAT); 159 162 bottom_tex->setWrapT(GL_REPEAT); 160 bottom_tex ->setEnvMode(GL_MODULATE);163 bottom_tex_env->setEnvMode(GL_MODULATE); 161 164 162 165 SimpleMaterialPtr bottom_mat = SimpleMaterial::create(); … … 164 167 bottom_mat->setDiffuse(Color3f(1.0,1.0,1.0)); 165 168 bottom_mat->addChunk(bottom_tex); 169 bottom_mat->addChunk(bottom_tex_env); 166 170 167 171 GeometryPtr bottom_geo = cast_dynamic<GeometryPtr>(bottom->getCore());
