Skip to content

Instantly share code, notes, and snippets.

@athanase
athanase / board-odroidxu-customboard.c
Created June 19, 2014 17:09
board-odroidxu-customboard.c
/*
* Copyright (c) 2012 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <stdio.h>
//-----------------------------------------------------------------------------
//
static void error_callback( int error, const char* description )
{
fputs( description, stderr );
const int MAX_CLUSTERS = 5;
Scalar colorTab[] =
{
Scalar(0, 0, 255),
Scalar(0,255,0),
Scalar(255,100,100),
Scalar(255,0,255),
Scalar(0,255,255)
};
@athanase
athanase / Functor.h
Created December 15, 2013 21:04
Functor
#include <tuple>
template <typename... Args>
struct variadic_typedef
{
// this single type represents a collection of types,
// as the template arguments it took to define it
};
template <typename... Args>