This file contains hidden or 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 <iostream> | |
#include <cmath> | |
#include <utility> | |
#include <glm/glm.hpp> | |
#include <glm/gtc/type_ptr.hpp> | |
const double G = 6.674e-11; // gravitational constant | |
const double PI = 3.14159265358979323846; |
This file contains hidden or 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
#ifndef ON_DESTROY_H | |
#define ON_DESTROY_H | |
#include <functional> | |
#include <utility> | |
class on_destroy { | |
public: | |
on_destroy() { } | |
template<class F, class... Args> |
This file contains hidden or 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
/* 3h Twin stick shooter | |
* Autor: Jakob Progsch | |
*/ | |
#include <GL3/gl3w.h> | |
#include <GL/glfw.h> | |
#include <iostream> | |
#include <string> | |
#include <vector> |
This file contains hidden or 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 "A.hpp" | |
#include <iostream> | |
#include <string> | |
#include <LuaBridge/LuaBridge.h> | |
std::string A::getName() const { return std::string("A"); } | |
void A::register_lua(lua_State *L) |
This file contains hidden or 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
#define GLWT_EVENT_INPUT 1 | |
#define GLWT_EVENT_WINDOW 2 | |
#define GLWT_EVENT_HOTPLUG 3 | |
#define GLWT_EVENT_INPUT_KEY 1 | |
#define GLWT_EVENT_INPUT_BUTTON 2 | |
#define GLWT_EVENT_INPUT_ABS 3 | |
#define GLWT_EVENT_INPUT_REL 4 | |
#define GLWT_EVENT_WINDOW_RESIZE 1 |
This file contains hidden or 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 <stdlib.h> | |
#include <stdio.h> | |
#include <AL/alut.h> | |
#include <vorbis/codec.h> | |
#include <vorbis/vorbisfile.h> | |
char pcmout[16*1024]; | |
void check_error() | |
{ |
NewerOlder