add guide
This commit is contained in:
1 parent
3a2a671325
commit
f6f1988943
22 files changed
+485
-79
No files matched your search
+2
-2
@@ -5,7 +5,7 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
namespace planetarium {
|
||||
namespace engine {
|
||||
|
||||
Camera::Camera() { reset(); }
|
||||
|
||||
@@ -68,4 +68,4 @@ glm::mat4 Camera::viewMatrix() const {
|
||||
return glm::lookAt(currentPosition_, currentFocus_, glm::vec3(0.0f, 1.0f, 0.0f));
|
||||
}
|
||||
|
||||
} // namespace planetarium
|
||||
} // namespace engine
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
|
||||
namespace planetarium {
|
||||
namespace engine {
|
||||
|
||||
Engine::~Engine() {
|
||||
if (window_) {
|
||||
@@ -145,4 +145,4 @@ void Engine::framebufferSizeCallback(GLFWwindow* window, int width, int height)
|
||||
engine->framebufferHeight_ = height;
|
||||
}
|
||||
|
||||
} // namespace planetarium
|
||||
} // namespace engine
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <cstdio>
|
||||
|
||||
namespace planetarium::gl {
|
||||
namespace engine::gl {
|
||||
|
||||
PFNGLGENVERTEXARRAYS glGenVertexArrays = nullptr;
|
||||
PFNGLBINDVERTEXARRAY glBindVertexArray = nullptr;
|
||||
@@ -89,4 +89,4 @@ bool loadGLFunctions() {
|
||||
return ok;
|
||||
}
|
||||
|
||||
} // namespace planetarium::gl
|
||||
} // namespace engine::gl
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
#include <cmath>
|
||||
#include <cstddef>
|
||||
|
||||
namespace planetarium {
|
||||
namespace engine {
|
||||
using namespace gl;
|
||||
|
||||
Mesh::~Mesh() { release(); }
|
||||
@@ -213,4 +213,4 @@ Mesh Mesh::createOrbitCircle(int segments) {
|
||||
return mesh;
|
||||
}
|
||||
|
||||
} // namespace planetarium
|
||||
} // namespace engine
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
namespace planetarium {
|
||||
namespace engine {
|
||||
using namespace gl;
|
||||
|
||||
namespace {
|
||||
@@ -118,4 +118,4 @@ void Shader::setInt(const std::string& name, int i) const {
|
||||
glUniform1i(locationOf(name), i);
|
||||
}
|
||||
|
||||
} // namespace planetarium
|
||||
} // namespace engine
|
||||
+2
-2
@@ -8,8 +8,8 @@
|
||||
#include <cstdio>
|
||||
#include <sys/stat.h>
|
||||
|
||||
using namespace planetarium;
|
||||
using namespace planetarium::gl;
|
||||
using namespace engine;
|
||||
using namespace engine::gl;
|
||||
|
||||
namespace {
|
||||
bool directoryExists(const std::string& path) {
|
||||
|
||||
Reference in new issue
Block a user