Changeset 11161
- Timestamp:
- 03/05/10 12:30:50 (3 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 3 modified
-
include/osg/Shader (modified) (2 diffs)
-
src/osgWrappers/introspection/osg/Shader.cpp (modified) (3 diffs)
-
src/osgWrappers/introspection/osgDB/DatabasePager.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Shader
r10766 r11161 185 185 static Shader::Type getTypeId( const std::string& tname ); 186 186 187 p rotected:187 public: 188 188 /** PerContextShader (PCS) is an OSG-internal encapsulation of glShader per-GL context. */ 189 189 class PerContextShader : public osg::Referenced … … 228 228 }; 229 229 230 PerContextShader* getPCS(unsigned int contextID) const; 231 230 232 protected: /*methods*/ 231 233 virtual ~Shader(); 232 234 233 PerContextShader* getPCS(unsigned int contextID) const;234 235 235 236 friend class osg::Program; -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osg/Shader.cpp
r10967 r11161 172 172 "Query InfoLog from a glShader. ", 173 173 ""); 174 174 175 I_StaticMethod2(osg::Shader *, readShaderFile, IN, osg::Shader::Type, type, IN, const std::string &, fileName, 175 176 __Shader_P1__readShaderFile__Type__C5_std_string_R1_S, … … 192 193 "", 193 194 ""); 194 195 195 I_ProtectedMethod1(bool, addProgramRef, IN, osg::Program *, program, 196 196 Properties::NON_VIRTUAL, … … 222 222 END_REFLECTOR 223 223 224 BEGIN_OBJECT_REFLECTOR(osg::Shader::PerContextShader) 225 I_DeclaringFile("osg/Shader"); 226 I_BaseType(osg::Referenced); 227 I_Constructor2(IN, const osg::Shader *, shader, IN, unsigned int, contextID, 228 ____PerContextShader__C5_Shader_P1__unsigned_int, 229 "", 230 ""); 231 I_Method0(GLuint, getHandle, 232 Properties::NON_VIRTUAL, 233 __GLuint__getHandle, 234 "", 235 ""); 236 I_Method0(void, requestCompile, 237 Properties::NON_VIRTUAL, 238 __void__requestCompile, 239 "", 240 ""); 241 I_Method1(void, compileShader, IN, osg::State &, state, 242 Properties::NON_VIRTUAL, 243 __void__compileShader__osg_State_R1, 244 "", 245 ""); 246 I_Method0(bool, needsCompile, 247 Properties::NON_VIRTUAL, 248 __bool__needsCompile, 249 "", 250 ""); 251 I_Method0(bool, isCompiled, 252 Properties::NON_VIRTUAL, 253 __bool__isCompiled, 254 "", 255 ""); 256 I_Method1(bool, getInfoLog, IN, std::string &, infoLog, 257 Properties::NON_VIRTUAL, 258 __bool__getInfoLog__std_string_R1, 259 "", 260 ""); 261 I_Method1(void, attachShader, IN, GLuint, program, 262 Properties::NON_VIRTUAL, 263 __void__attachShader__GLuint, 264 "Attach our glShader to a glProgram. ", 265 ""); 266 I_Method1(void, detachShader, IN, GLuint, program, 267 Properties::NON_VIRTUAL, 268 __void__detachShader__GLuint, 269 "Detach our glShader from a glProgram. ", 270 ""); 271 I_SimpleProperty(GLuint, Handle, 272 __GLuint__getHandle, 273 0); 274 END_REFLECTOR 275 224 276 BEGIN_OBJECT_REFLECTOR(osg::ShaderBinary) 225 277 I_DeclaringFile("osg/Shader"); -
OpenSceneGraph/trunk/src/osgWrappers/introspection/osgDB/DatabasePager.cpp
r11078 r11161 16 16 #include <osg/Group> 17 17 #include <osg/Node> 18 #include <osg/PagedLOD>19 18 #include <osg/Referenced> 20 19 #include <osg/State> … … 38 37 39 38 TYPE_NAME_ALIAS(OpenThreads::Thread::ThreadPriority, osgDB::DatabasePager::ThreadPriority) 40 41 TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::PagedLOD > >, osgDB::DatabasePager::PagedLODList)42 39 43 40 TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osg::StateSet > >, osgDB::DatabasePager::StateSetList) … … 406 403 "Iterate through the active PagedLOD nodes children removing children which havn't been visited since specified expiryTime. ", 407 404 "note, should be only be called from the update thread. "); 408 I_ProtectedMethod1(void, expiry_removeExpiredSubgraphs, IN, const osg::FrameStamp &, frameStamp,409 Properties::VIRTUAL,410 Properties::NON_CONST,411 __void__expiry_removeExpiredSubgraphs__C5_osg_FrameStamp_R1,412 "Old expiry delay based removeExpiredSubgraphs. ",413 "");414 I_ProtectedMethod1(void, capped_removeExpiredSubgraphs, IN, const osg::FrameStamp &, frameStamp,415 Properties::VIRTUAL,416 Properties::NON_CONST,417 __void__capped_removeExpiredSubgraphs__C5_osg_FrameStamp_R1,418 "New capped based removeExpiredSubgraphs. ",419 "");420 405 I_ProtectedMethod1(void, addLoadedDataToSceneGraph, IN, const osg::FrameStamp &, frameStamp, 421 406 Properties::NON_VIRTUAL, … … 599 584 END_REFLECTOR 600 585 601 BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PagedLOD >)602 I_DeclaringFile("osg/ref_ptr");603 I_Constructor0(____ref_ptr,604 "",605 "");606 I_Constructor1(IN, osg::PagedLOD *, ptr,607 Properties::NON_EXPLICIT,608 ____ref_ptr__T_P1,609 "",610 "");611 I_Constructor1(IN, const osg::ref_ptr< osg::PagedLOD > &, rp,612 Properties::NON_EXPLICIT,613 ____ref_ptr__C5_ref_ptr_R1,614 "",615 "");616 I_Method0(osg::PagedLOD *, get,617 Properties::NON_VIRTUAL,618 __T_P1__get,619 "",620 "");621 I_Method0(bool, valid,622 Properties::NON_VIRTUAL,623 __bool__valid,624 "",625 "");626 I_Method0(osg::PagedLOD *, release,627 Properties::NON_VIRTUAL,628 __T_P1__release,629 "",630 "");631 I_Method1(void, swap, IN, osg::ref_ptr< osg::PagedLOD > &, rp,632 Properties::NON_VIRTUAL,633 __void__swap__ref_ptr_R1,634 "",635 "");636 I_SimpleProperty(osg::PagedLOD *, ,637 __T_P1__get,638 0);639 END_REFLECTOR640 641 586 BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::DatabasePager >) 642 587 I_DeclaringFile("osg/ref_ptr"); … … 679 624 END_REFLECTOR 680 625 681 STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::PagedLOD > >)682 683 626 STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgDB::DatabasePager::DataToCompile >) 684 627
