Jump to content
Developer Wiki and Function Reference Links Read more... ×
JBenghiat

OpenGL update after modifying texture

Recommended Posts

Is there a way to get OpenGL to reflect an edit made to a shader record?  Currently, changes apply as expected to Renderworks, but for OpenGL, I need to open OpenGL settings and change Detail, Use colors, or Use textures and OpenGL resets.  Changing render modes doesn't make a difference — OpenGL will read the previous texture definition until I toggle a setting.

 

So far I've tried:

 

objTexture.ResetObject();

objTexture.UpdateThumbnailPreview();

 

NotifyAnyStuff notification(kNotifyMaterialChange);

gSDK->Kludge(kKludgeNotifyAny, &notification, nil);

 

gSDK->RefreshRenderingForSelectedObjects();

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×