Skip to content

Commit

Permalink
update glow
Browse files Browse the repository at this point in the history
  • Loading branch information
xchrdw committed Apr 6, 2014
1 parent 5100705 commit 889c1a3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ else()
endif()

set(GLOW_SOURCE_DIR ${LIB_DIR}/glow)
include_directories(${GLOW_SOURCE_DIR}/include)
include_directories(${GLOW_SOURCE_DIR}/source/glow/include)
include_directories(${GLOW_SOURCE_DIR}/source/glowutils/include)

# Include directories
include_directories(
Expand Down Expand Up @@ -238,7 +239,6 @@ set(INSTALL_LIB "lib")
set(OPTION_BUILD_STATIC OFF)
option(OPTION_ERRORS_AS_EXCEPTION "Throw exceptions" OFF)

include_directories(${GLOW_SOURCE_DIR}/pre-build/generated)
add_subdirectory(${GLOW_SOURCE_DIR}/source/glow)
add_subdirectory(${GLOW_SOURCE_DIR}/source/glowutils)

1 change: 1 addition & 0 deletions lib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ glow
SFML-2.1
OculusSDK
lua52
lua-5.2.3
2 changes: 1 addition & 1 deletion lib/glow
Submodule glow updated 405 files
1 change: 0 additions & 1 deletion src/display/rendering/starfield.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "starfield.h"

#include <glow/Array.h>
#include <glow/Shader.h>
#include <glow/VertexArrayObject.h>
#include <glow/VertexAttributeBinding.h>
Expand Down
3 changes: 1 addition & 2 deletions src/display/rendering/starfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <glm/gtc/quaternion.hpp>

#include <glow/ref_ptr.h>
#include <glow/Array.h>

#include "property/property.h"
#include "display/rendering/renderpass.h"
Expand Down Expand Up @@ -61,7 +60,7 @@ class Starfield : public RenderPass, public ContextDependant {
glow::ref_ptr<glow::Program> m_shaderProgram;
glow::ref_ptr<glow::VertexArrayObject> m_vertexArrayObject;
glow::ref_ptr<glow::Buffer> m_gpuBuffer;
glow::Array<StarData> m_cpuBuffer;
std::vector<StarData> m_cpuBuffer;

void createAndSetupShaders();
void createAndSetupGeometry();
Expand Down
11 changes: 6 additions & 5 deletions src/skybox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ void Skybox::initialize() {


/* Geometry */
auto vertices = glow::Array<glm::vec3>()
<< glm::vec3(-1, -1, 0)
<< glm::vec3(1, -1, 0)
<< glm::vec3(1, 1, 0)
<< glm::vec3(-1, 1, 0);
std::array<glm::vec3, 4> vertices {
glm::vec3(-1, -1, 0),
glm::vec3(1, -1, 0),
glm::vec3(1, 1, 0),
glm::vec3(-1, 1, 0)
};

m_vertexArrayObject = new glow::VertexArrayObject();

Expand Down
2 changes: 1 addition & 1 deletion src/utils/cubemesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void CubeMesh::bindLinesTo(glow::Program& program, glow::VertexArrayObject& vao,
void CubeMesh::initialize() {
//assert(ContextProvider::instance()->available());

glow::Array<glm::vec3> array{
std::array<glm::vec3, 24> array {
llf, llb, lrb, lrf, llf, lrf, llb, lrb,
ulf, ulb, urb, urf, ulf, urf, ulb, urb,
llf, ulf, llb, ulb, lrf, urf, lrb, urb
Expand Down
1 change: 0 additions & 1 deletion src/voxel/voxelrenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <glow/Array.h>
#include <glow/Shader.h>
#include <glow/Texture.h>
#include <glow/VertexArrayObject.h>
Expand Down
2 changes: 1 addition & 1 deletion src/voxeleffect/voxelmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void VoxelMesh::bindTo(
}

void VoxelMesh::initialize() {
glow::Array<glm::vec3> array{
std::array<glm::vec3, 28> array {
urb, dummy,
lub, dummy,
rlb, back,
Expand Down

0 comments on commit 889c1a3

Please sign in to comment.