Skip to content

Instantly share code, notes, and snippets.

View rahil627's full-sized avatar
in a crisis, be back once i find 'n make a home ;(

rathewolf rahil627

in a crisis, be back once i find 'n make a home ;(
View GitHub Profile
@rahil627
rahil627 / orthodoxc++.md
Created September 26, 2020 10:57 — forked from bkaradzic/orthodoxc++.md
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@rahil627
rahil627 / simple_opengl_sfml.cpp
Created September 23, 2020 05:51 — forked from emersonmx/simple_opengl_sfml.cpp
Simple OpenGL with SFML
/**
* Simple OpenGL with SFML.
*
* Build: g++ -o simple_opengl_sfml simple_opengl_sfml.cpp -lsfml-window -lsfml-system -lGL
*/
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#define WINDOW_WIDTH 640
@rahil627
rahil627 / skeleton.cpp
Created September 23, 2020 05:49 — forked from haxpor/skeleton.cpp
OpenGL with SDL2. Compile it with "gcc -Wall -o skeleton skeleton.cpp -F /Library/Frameworks -lstdc++ -I /Library/Frameworks/SDL2.framework/Headers -framework SDL2 -framework OpenGL" on Mac OSX.
/**
* Simple SDL2 program using OpenGL as rendering pipeline.
*/
#include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <OpenGL/GLU.h>
#define SCREEN_WIDTH 640