Merge branch 'develop' of openspace.itn.liu.se:/openspace into develop

This commit is contained in:
Jonas Strandstedt
2014-12-04 14:37:27 +01:00
6 changed files with 21 additions and 6 deletions
@@ -40,7 +40,7 @@ public:
virtual void preRender();
virtual void postRender();
virtual std::string settings();
std::vector<fragmentData> pixelData();
protected:
virtual bool reinitializeInternal();
+2
View File
@@ -32,11 +32,13 @@ namespace openspace {
namespace properties {
class Property;
}
class Renderable;
class SceneGraph;
class SceneGraphNode;
SceneGraph* sceneGraph();
SceneGraphNode* sceneGraphNode(const std::string& name);
Renderable* renderable(const std::string& name);
properties::Property* property(const std::string& uri);
} // namespace
+2 -2
View File
@@ -60,8 +60,8 @@ void ABufferFramebuffer::postRender() {
}
std::string ABufferFramebuffer::settings() {
return R"()";
std::vector<ABuffer::fragmentData> ABufferFramebuffer::pixelData() {
return std::vector<ABuffer::fragmentData>();
}
+6 -2
View File
@@ -222,6 +222,10 @@ void OpenSpaceEngine::loadFonts() {
std::string font;
fonts.getValue(key, font);
font = absPath(font);
if(!FileSys.fileExists(font)) {
LERROR("Could not find font '" << font << "'");
continue;
}
LINFO("Registering font '" << font << "' with key '" << key << "'");
sgct_text::FontManager::instance()->addFont(key, font, local);
@@ -313,8 +317,8 @@ bool OpenSpaceEngine::create(int argc, char** argv,
for (auto token : tokens) {
if (!FileSys.directoryExists(token)) {
std::string p = absPath(token);
LDEBUG("Directory '" << p <<"' does not exsist, creating.");
if(FileSys.createDirectory(p, true))
LDEBUG("Directory '" << p <<"' does not exist, creating.");
if(!FileSys.createDirectory(p, true))
LERROR("Directory '" << p <<"' could not be created");
}
}
+6 -1
View File
@@ -45,7 +45,12 @@ SceneGraphNode* sceneGraphNode(const std::string& name)
const SceneGraph* graph = sceneGraph();
return graph->sceneGraphNode(name);
}
Renderable* renderable(const std::string& name) {
SceneGraphNode* node = sceneGraphNode(name);
return node->renderable();
}
properties::Property* property(const std::string& uri)
{
// The URI consists of the following form at this stage:
+4
View File
@@ -328,6 +328,10 @@ const Renderable* SceneGraphNode::renderable() const
return _renderable;
}
Renderable* SceneGraphNode::renderable() {
return _renderable;
}
// private helper methods
bool SceneGraphNode::sphereInsideFrustum(const psc s_pos, const PowerScaledScalar& s_rad,
const Camera* camera)