Skip to content

Instantly share code, notes, and snippets.

// 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;
//
@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"
@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 / 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:2402725
Created April 17, 2012 01:15
Panda3D C++ Example
//g++ main.cpp -o main -I/usr/include/panda3d -L/usr/lib/panda3d -I/usr/include/python2.7
//-lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct
#include "pandaFramework.h"
#include "pandaSystem.h"
#include "genericAsyncTask.h"
#include "asyncTaskManager.h"
@zester
zester / gist:2402714
Created April 17, 2012 01:13
Maratis3D and SFML2
#include <SFML/Graphics.hpp>
#include <MCore.h>
#include <MEngine.h>
#include "MGLContext.h"
#include <iostream>
int main()
{
// Create the main window
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
@zester
zester / gist:2402705
Created April 17, 2012 01:11
Ogre3D Basic Example
// g++ main.cpp -o main `pkg-config --libs --cflags OGRE OIS`
#include <Ogre.h>
#include <OgreFrameListener.h>
#include <iostream>
using namespace Ogre;
//
class MyFrameListener : public FrameListener {
@zester
zester / gist:2402698
Created April 17, 2012 01:10
Horde3D and SFML2 (Not Fully Working)
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <SFML/OpenGL.hpp>
#include <horde3d/Horde3D.h>
#include <horde3d/Horde3DUtils.h>
#include <iostream>
@zester
zester / SFML2 and OpenSceneGraph 3
Created April 17, 2012 01:08
SFML2 and OpenSceneGraph 3
// g++ main.cpp -o main -lsfml-window -lsfml-graphics -lsfml-system -losg -losgDB -losgGA -losgUtil
#include <SFML/Graphics.hpp>
#include <osgUtil/SceneView>
#include <osg/Node>
#include <osg/CameraNode>
#include <osg/Group>
#include <osgDB/ReadFile>
@zester
zester / gist:2402686
Created April 17, 2012 01:07
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>