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
enum class MouseButton { | |
Left, | |
Middle, | |
Right, | |
NUM_BUTTONS | |
}; | |
map< MouseButton, string > mouseButtonName = { | |
{ MouseButton::Left, "Left" }, |
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
# IF SOMETHING IS NOT WORKING, BLOW AWAY YOUR CURL DOWNLOAD FOLDER AND THEN RE-UN-ZIP IT BECAUSE IT CACHES | |
# STATE BEYOND WHAT make clean CAN GET RID OF | |
# iPhone | |
export ARCH=arm64 | |
export SDK=iphoneos | |
export DEPLOYMENT_TARGET=12.0 | |
sudo xcode-select --switch /Applications/Xcode.app | |
export CFLAGS="-arch $ARCH -isysroot $(xcrun -sdk $SDK --show-sdk-path) -m$SDK-version-min=$DEPLOYMENT_TARGET" |
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 <chrono> | |
struct StopWatch { | |
std::chrono::high_resolution_clock::time_point start; | |
StopWatch() { | |
reset(); | |
} |
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
#define _CRT_SECURE_NO_DEPRECATE | |
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#define GLEW_STATIC | |
#include <GL/glew.h> | |
#include <gl/gl.h> | |
#include <gl/glu.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
#include <stdio.h> | |
int main(int argc, const char * argv[]) { | |
struct FirstRun { | |
bool hasRun = 0; | |
operator bool() { | |
bool firstRun = !hasRun; | |
hasRun = 1; |
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
REM put this in the ROOT of your Visual Studio 2019 project folder. | |
rd .vs /s /q | |
rd Debug /s /q | |
rd Release /s /q | |
rd x64 /s /q | |
REM OpenGL is the name of your project | |
rd OpenGL\Debug /s /q | |
rd OpenGL\Release /s /q | |
rd OpenGL\x64 /s /q |
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
#define _CRT_SECURE_NO_DEPRECATE | |
#include <windows.h> | |
#include <stdio.h> | |
#include <gl/gl.h> | |
#include <gl/glu.h> | |
#include <map> | |
#include <vector> | |
using namespace std; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Twitter Archive Browser</title> | |
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://unpkg.com/[email protected]/babel.min.js"></script> | |
<style> |
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
// Noise1234 | |
// Author: Stefan Gustavson ([email protected]) | |
// | |
// This library is public domain software, released by the author | |
// into the public domain in February 2011. You may do anything | |
// you like with it. You may even remove all attributions, | |
// but of course I'd appreciate it if you kept my name somewhere. | |
// | |
// This library is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 <windows.h> | |
#include <gdiplus.h> | |
#include <stdio.h> | |
using namespace Gdiplus; | |
#pragma comment( lib, "gdiplus.lib" ) | |
#pragma warning( disable : 4018 ) | |
#pragma warning( disable : 4996 ) | |
LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM ); |
NewerOlder