Merge branch 'master' of github.com:OpenSpace/OpenSpace into feature/data-management

This commit is contained in:
Emil Axelsson
2017-12-19 12:56:12 +01:00
9 changed files with 14 additions and 14 deletions
@@ -1361,9 +1361,9 @@ void RenderableBillboardsCloud::loadPolygonGeometryForRendering() {
void RenderableBillboardsCloud::renderPolygonGeometry(GLuint vao) {
std::unique_ptr<ghoul::opengl::ProgramObject> program =
ghoul::opengl::ProgramObject::Build("RenderableBillboardsCloud_Polygon",
"${MODULE_DIGITALUNIVERSE}/shaders/billboardpolygon_vs.glsl",
"${MODULE_DIGITALUNIVERSE}/shaders/billboardpolygon_fs.glsl",
"${MODULE_DIGITALUNIVERSE}/shaders/billboardpolygon_gs.glsl");
absPath("${MODULE_DIGITALUNIVERSE}/shaders/billboardpolygon_vs.glsl"),
absPath("${MODULE_DIGITALUNIVERSE}/shaders/billboardpolygon_fs.glsl"),
absPath("${MODULE_DIGITALUNIVERSE}/shaders/billboardpolygon_gs.glsl"));
program->activate();
static const float black[] = { 0.0f, 0.0f, 0.0f, 0.0f };
@@ -48,6 +48,7 @@
#include <openspace/interaction/navigationhandler.h>
#include <openspace/util/factorymanager.h>
#include <ghoul/filesystem/filesystem.h>
#include <ghoul/misc/templatefactory.h>
#include <ghoul/misc/assert.h>
#include <ghoul/systemcapabilities/generalcapabilitiescomponent.h>
@@ -306,7 +307,7 @@ scripting::LuaLibrary GlobeBrowsingModule::luaLibrary() const {
#endif // GLOBEBROWSING_USE_GDAL
},
{
"${MODULE_GLOBEBROWSING}/scripts/layer_support.lua"
absPath("${MODULE_GLOBEBROWSING}/scripts/layer_support.lua")
},
{
// Documentation
+3 -3
View File
@@ -65,9 +65,9 @@ class TouchMarker : public properties::PropertyOwner {
std::unique_ptr<ghoul::opengl::ProgramObject> _shader;
GLuint _quad;
GLuint _vertexPositionBuffer;
int _numFingers;
GLuint _quad = 0;
GLuint _vertexPositionBuffer = 0;
int _numFingers = 0;
};
} // openspace namespace
+1 -1
View File
@@ -290,7 +290,7 @@ function generateSettings(arg)
local refresh = ""
if arg["refreshRate"] then
refresh = "refreshRate=" .. arg["refreshRate"] .. " "
refresh = "refreshRate=\"" .. arg["refreshRate"] .. "\" "
end
+1 -2
View File
@@ -874,8 +874,7 @@ void OpenSpaceEngine::loadFonts() {
_fontManager = std::make_unique<ghoul::fontrendering::FontManager>(FontAtlasSize);
for (const std::string& key : fonts.keys()) {
std::string font = fonts.value<std::string>(key);
font = absPath(font);
std::string font = absPath(fonts.value<std::string>(key));
if (!FileSys.fileExists(font)) {
LERROR("Could not find font '" << font << "'");
+1 -1
View File
@@ -280,7 +280,7 @@ void ScriptEngine::addLibraryFunctions(lua_State* state, LuaLibrary& library,
for (const std::string& script : library.scripts) {
// First we run the script to set its values in the current state
ghoul::lua::runScriptFile(state, absPath(script));
ghoul::lua::runScriptFile(state, script);
library.documentations.clear();
+1 -1
View File
@@ -106,7 +106,7 @@ std::string OpenSpaceModule::modulePath() const {
else { // Otherwise, it might be one of the external directories
for (const char* dir : ModulePaths) {
const std::string path = std::string(dir) + '/' + moduleName;
if (FileSys.directoryExists(path)) {
if (FileSys.directoryExists(absPath(path))) {
return absPath(path);
}
}