Skip to content

Instantly share code, notes, and snippets.

View feliwir's full-sized avatar
👨‍💻
Coding along

Stephan Vedder feliwir

👨‍💻
Coding along
  • mbits imaging GmbH
  • Germany
View GitHub Profile
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.
#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()
#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 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];
#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);
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;
// 2015 (C) SAGE Engine
// Stephan Veddery
// Patryk Szczygło
#include "GuiManager.hpp"
#include "../Config.hpp"
#include "../Util/Logger.hpp"
#include <Rocket/Debugger.h>
#pragma once
#include <stdint.h>
#include <string>
#include <chrono>
#include <SFML/Window.hpp>
#include <SFML/Audio.hpp>
#include "flextGL.h"
#define CPU_FREQ 60
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
^
// Patrick Zirjacks, Group: Stephan Vedder, Aaron Bruch
#include "Exercise4.h"
//-------------------------------------------------------------------------------------
Exercise4::Exercise4(void)
{
}
//-------------------------------------------------------------------------------------
Exercise4::~Exercise4(void)
{