OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

getTextureObjectManager not found


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
shane_maclaughlin
Newbie


Joined: 25 Jan 2013
Posts: 6

PostPosted: Fri Mar 15, 2019 9:51 am    Post subject:
getTextureObjectManager not found
Reply with quote

Hi,

I'm rebuilding some older code from the OpenSceneGraph Cookbook, and while I've had a number of minor build errors, most are easy enough to correct. One I'm having difficulty with is

osg::Texture::getTextureObjectManager(0)->setMaxTexturePoolSize( 64000 );

which reports

error C2039: 'getTextureObjectManager': is not a member of 'osg::Texture'

Going back to OpenSceneGraph 3.4.0 it is there, but not 3.6.3. Just wondering if there is a work around or am I better sticking to OSG 3.4.0 for the older code?

Thank you!

Cheers,
Shane
Back to top
View user's profile Send private message
Voerman, L.
Guest





PostPosted: Fri Mar 15, 2019 11:02 am    Post subject:
getTextureObjectManager not found
Reply with quote

Hi Shane,
maybe this can help you:
//from State::setMaxTexturePoolSize(unsigned int size)
osg::get<TextureObjectManager>(_contextID)->setMaxTexturePoolSize(size)

I have no idea why you are doing this, as I don't know the Cookbook at all. So dropping the line and leave the default might be an option too.


Laurens.




On Fri, Mar 15, 2019 at 10:50 AM Shane MacLaughlin < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi,

I'm rebuilding some older code from the OpenSceneGraph Cookbook, and while I've had a number of minor build errors, most are easy enough to correct.  One I'm having difficulty with is

osg::Texture::getTextureObjectManager(0)->setMaxTexturePoolSize( 64000 );

which reports

 error C2039: 'getTextureObjectManager': is not a member of 'osg::Texture'

Going back to OpenSceneGraph 3.4.0 it is there, but not 3.6.3.  Just wondering if there is a work around or am I better sticking to OSG 3.4.0 for the older code?

Thank you!

Cheers,
Shane

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75716#75716





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
shane_maclaughlin
Newbie


Joined: 25 Jan 2013
Posts: 6

PostPosted: Fri Mar 15, 2019 11:48 am    Post subject:
Re: getTextureObjectManager not found
Reply with quote

Thanks Laurens,

I haven't used OSG for quite a few years so was planning on getting back up to speed by working through the beginners guide and cookbook again, with the first task of making sure everything compiles. I'm not actually sure what the code does myself. I'll try your suggestion and post back,

Shane

Voerman, L. wrote:
Hi Shane,
maybe this can help you:
//from State::setMaxTexturePoolSize(unsigned int size)
osg::get<TextureObjectManager>(_contextID)->setMaxTexturePoolSize(size)

I have no idea why you are doing this, as I don't know the Cookbook at all. So dropping the line and leave the default might be an option too.


Laurens.




On Fri, Mar 15, 2019 at 10:50 AM Shane MacLaughlin < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi,

I'm rebuilding some older code from the OpenSceneGraph Cookbook, and while I've had a number of minor build errors, most are easy enough to correct.  One I'm having difficulty with is

osg::Texture::getTextureObjectManager(0)->setMaxTexturePoolSize( 64000 );

which reports

 error C2039: 'getTextureObjectManager': is not a member of 'osg::Texture'

Going back to OpenSceneGraph 3.4.0 it is there, but not 3.6.3.  Just wondering if there is a work around or am I better sticking to OSG 3.4.0 for the older code?

Thank you!

Cheers,
Shane

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75716#75716





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osgconv osgjs bug file not found memory_thrasher Plugins [osgPlugins] 2 Tue Jul 31, 2018 5:21 pm View latest post
No new posts found memory leak in OSG 3.0.1 Gianluca Natale General 1 Mon Oct 23, 2017 10:34 am View latest post
No new posts OSG 3.4 and Qt 5 cmake problem. Found... Elias Tarasov General 1 Mon Apr 10, 2017 12:26 pm View latest post
No new posts found memory leak in OSG 3.0.1 Gianluca Natale General 3 Thu Jan 19, 2017 5:04 pm View latest post
No new posts osgQT - Windows 10 pthread.h - not found internetscooter General 1 Thu Nov 17, 2016 4:25 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP