Commit bedd3926 authored by Jan Möbius's avatar Jan Möbius

Screen aligned Quad, strange flickering though. Added

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@16394 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 12a08482
This diff is collapsed.
......@@ -104,6 +104,11 @@ public:
*/
void getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::SceneGraph::DrawModes::DrawMode& _drawMode , const ACG::SceneGraph::Material* _mat);
/** Invalidate the buffers and the other data required for rendering
*
*/
void update(){updateBuffers_ = true; };
private:
void drawSkyDome(ACG::GLState & _state);
void drawSkyDomePick(ACG::GLState & _state);
......@@ -116,6 +121,7 @@ private:
ACG::VertexDeclaration vertexDecl_;
bool updateBuffers_;
};
#endif // SKYDOME_NODE_HH
......@@ -157,6 +157,14 @@ void SkyDomeObject::setName( QString _name ) {
skyDomeNode_->name( nodename );
}
// ===============================================================================
// Data
// ===============================================================================
void SkyDomeObject::update(UpdateType _type) {
skyDomeNode_->update();
}
// ===============================================================================
// Visualization
// ===============================================================================
......@@ -193,6 +201,8 @@ SkyDome& SkyDomeObject::getSkyDome() {
return skyDome_;
}
// ===============================================================================
// Picking
// ===============================================================================
......
......@@ -126,6 +126,9 @@ class DLLEXPORT SkyDomeObject : public BaseObjectData {
/// Get all Info for the Object as a string
SkyDome& getSkyDome();
/// Update buffers and data of the scenegraph node
void update(UpdateType _type = UPDATE_ALL);
private:
SkyDome skyDome_;
......
Markdown is supported
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