Skip to content

Instantly share code, notes, and snippets.

import haxe.Constraints.Function;
@:pythonImport("flask", "Flask")
extern class Flask {
function new(module:String);
function run():Void;
function route<T:Function>(path:String):T->T;
}
class Main {
anonymous
anonymous / main.c
Created September 5, 2013 13:34
SDL2 OpenGL + Normal renderer example
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
void init_opengl()
{
class Main
{
static function main()
{
var context = new MyContext(new View());
}
}
class MyContext extends mmvc.impl.Context
{