This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENGL - DEBUG | |
SEVERITY: | |
33387 | |
OTHER | |
Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint | |
is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operati | |
ons. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 core | |
layout(location = 0) in vec3 pos; | |
layout(location = 1) in vec3 color; | |
out vec3 fragmentColor; | |
// Values that stay constant for the whole mesh. | |
uniform mat4 MVP; | |
void main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 core | |
layout(location = 0) in vec3 pos; | |
layout(location = 1) in vec3 color; | |
out vec3 fragmentColor; | |
// Values that stay constant for the whole mesh. | |
uniform mat4 MVP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Shader::LoadFromFile(const Type type, const std::string & filename) | |
{ | |
std::ifstream fin(filename, std::ios::in); | |
if (fin.fail()) | |
SAGELogCrash("Failed to open file " + filename); | |
fin.seekg(0, std::ios::end); | |
const uint32_t size = static_cast<uint32_t>(fin.tellg()); | |
fin.seekg(0, std::ios::beg); | |
char* buffer = new char[size]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Terrain.hpp" | |
#include "../Util/Logger.hpp" | |
#include <vector> | |
using namespace Graphics; | |
Terrain::Terrain() : m_vbo(0),m_ibo(0) | |
{ | |
glGenBuffers(1, &m_vbo); | |
glGenBuffers(1, &m_ibo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Camera::Camera() | |
{ | |
m_pos = glm::vec3(100.0f, 100.0f,100.0f); | |
m_up = glm::vec3(0.0f, 1.0f, 0.0f); | |
m_center = glm::vec3(0.0f, 0.0f, 0.0f); | |
m_ratio = 4.0f / 3.0f; | |
m_fov = 75.0f; | |
m_clip_near = 0.1f; | |
m_clip_far = 10000.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2015 (C) SAGE Engine | |
// Stephan Veddery | |
// Patryk Szczygło | |
#include "GuiManager.hpp" | |
#include "../Config.hpp" | |
#include "../Util/Logger.hpp" | |
#include <Rocket/Debugger.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <stdint.h> | |
#include <string> | |
#include <chrono> | |
#include <SFML/Window.hpp> | |
#include <SFML/Audio.hpp> | |
#include "flextGL.h" | |
#define CPU_FREQ 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file included from TutorialApplication.h:21:0, | |
from TutorialApplication.cpp:18: | |
BaseApplication.h:71:85: error: expected class-name before ‘,’ token | |
class BaseApplication : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener, OgreBites::SdkTrayListener | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Patrick Zirjacks, Group: Stephan Vedder, Aaron Bruch | |
#include "Exercise4.h" | |
//------------------------------------------------------------------------------------- | |
Exercise4::Exercise4(void) | |
{ | |
} | |
//------------------------------------------------------------------------------------- | |
Exercise4::~Exercise4(void) | |
{ |
OlderNewer