Skip to content

Instantly share code, notes, and snippets.

@zester
zester / foo.cpp
Created April 21, 2012 17:08
Lua and C++
// fun.cpp
extern "C"
{
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
#include <iostream>
@zester
zester / gist:2593564
Created May 4, 2012 09:25
Skia and SFML2
#include <SFML/Graphics.hpp>
#include "SkCanvas.h"
#include "SkGraphics.h"
#include "SkImageEncoder.h"
#include "SkString.h"
#include "SkTemplates.h"
#include "SkTypeface.h"
#include <iostream>
@zester
zester / gist:5163313
Created March 14, 2013 17:27
Using Skia With GLFW (Or any other framework that provides an OpenGL context [GLUT,SDL,etc...])
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
#include "glfw/glfw.h"
#include "skia/include/gpu/GrContext.h"
#include "skia/include/gpu/GrRenderTarget.h"
#include "skia/include/gpu/GrGLInterface.h"
#include "skia/include/gpu/SkGpuDevice.h"
// g++ main.cpp -o main `pkg-config --libs --cflags OGRE OIS`
#include <Ogre.h>
#include <OgreFrameListener.h>
#include <OIS.h>
#include <iostream>
using namespace Ogre;
//