Skip to content

Instantly share code, notes, and snippets.

View Wunkolo's full-sized avatar
💻

Wunk Wunkolo

💻
View GitHub Profile
@Wunkolo
Wunkolo / Easing.hpp
Last active December 12, 2015 01:48
#pragma once
#include <math.h>
namespace Ease
{
//////////////////////////////////////////////////////////////////////////
//Clamping utils
template <class T>
const T& Clamped(const T& high, const T& low, const T& v)
{
@Wunkolo
Wunkolo / Logger.cpp
Created December 23, 2012 20:23
Logger
#include "Logger.h"
#include <iostream>
#include <stdio.h>
#include <time.h>
#include <sstream>
#include <stdarg.h>
void Logger::SetLogFile(const std::string FileName)
{
sFileName = FileName;
@Wunkolo
Wunkolo / Clock.cpp
Created December 20, 2012 03:54
Clock and Time
#include "Clock.h"
//platform specific time implementations.
#if defined(__WIN32) || defined(_WIN32)
//windows
#include <windows.h>
namespace
{
LARGE_INTEGER getFrequency()
@Wunkolo
Wunkolo / cpu.cpp
Created August 23, 2012 04:37
Get cpu vendor ID x86
#include <stdio.h>
#include <iostream>
using namespace std;
int main(){
unsigned int idcmd = 0;
unsigned int EBX_REG=0;
unsigned int EDX_REG=0;
unsigned int ECX_REG=0;
unsigned int EAX_SIZE=0;
@Wunkolo
Wunkolo / Matrix.hpp
Created August 19, 2012 02:54
Math tools
#pragma once
//Row Major templated matrix class.
#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <vector>
#include <stdexcept>
@Wunkolo
Wunkolo / Color.cpp
Created July 27, 2012 22:10
Color class
/*
* Color.cpp
*
* Created on: Jun 5, 2012
* Author: DEElekgolo
*/
#include "Color.hpp"