Commit 4604159e authored by Jan Möbius's avatar Jan Möbius
Browse files

Introduced update textures signal


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11724 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 795563c4
......@@ -1136,6 +1136,15 @@ update_topology() {
glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0);
}
template<class Mesh>
void
MeshNodeT<Mesh>::
update_textures() {
drawMesh_->updateTextures();
}
template<class Mesh>
void
......
......@@ -121,6 +121,12 @@ public:
*/
void update_color();
/** \brief force an texture update
*
* This function has to be called, when the textures have changed
*/
void update_textures();
private:
/** Typedefs of the mesh representation
......
......@@ -355,6 +355,7 @@
updateSelection();
updateFeatures();
updateModelingRegions();
updateTexture();
}
else
{
......@@ -369,6 +370,9 @@
if ( _type.contains(UPDATE_COLOR) ) {
updateColor();
}
if ( _type.contains(UPDATE_TEXTURE)) {
updateTexture();
}
}
}
......@@ -426,6 +430,13 @@
featureNode_->update_cache();
}
/** Updates the modeling regions scenegraph nodes */
template < class MeshT >
void MeshObject< MeshT >::updateTexture() {
std::cerr << "Todo:update_texture" << std::endl;
meshNode_->update_textures();
}
template < class MeshT >
BaseObject* MeshObject< MeshT >::copy() {
......
......@@ -161,6 +161,9 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
/// Update Topology of all data structures
void updateTopology();
/// Update Texture of all data structures
void updateTexture();
/** return a full copy of this object ( All scenegraph nodes will be created )
* but the object will not be a part of the object tree.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment