mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-12 06:19:57 -05:00
Merge branch 'develop' of openspace.itn.liu.se:/openspace into develop
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
||||
virtual void preRender();
|
||||
virtual void postRender();
|
||||
|
||||
virtual std::string settings();
|
||||
std::vector<fragmentData> pixelData();
|
||||
protected:
|
||||
virtual bool reinitializeInternal();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -60,8 +60,8 @@ void ABufferFramebuffer::postRender() {
|
||||
|
||||
}
|
||||
|
||||
std::string ABufferFramebuffer::settings() {
|
||||
return R"()";
|
||||
std::vector<ABuffer::fragmentData> ABufferFramebuffer::pixelData() {
|
||||
return std::vector<ABuffer::fragmentData>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user