Skip to content

Instantly share code, notes, and snippets.

View sreich's full-sized avatar

Shaun Reich sreich

View GitHub Profile
skeleton
torso l100 r90
@ #00F :rect w120 h100 t4 r-90 x50 f#FFF round-join
torso.head l0 r0 x100 #06F
@ #FC9 :ellipse w160 h140 t4 r-90 x55 f#FFF round-join
torso.head.eyes l0 x60 #06F r-90
@left[open] :circle d10 x-20 t0
@left[closed] :rect w10 h3 x-20 t0
@right[open] :circle d10 x30 t0
@right[closed] :rect w10 h3 x30 t0
#include "Gwen/Gwen.h"
#include "Gwen/Skins/Simple.h"
#include "Gwen/Skins/TexturedBase.h"
#include "Gwen/UnitTest/UnitTest.h"
#include "Gwen/Renderers/OpenGL.h"
#include "Gwen/Controls/WindowCanvas.h"
#include "Gwen/Controls/Canvas.h"
#include <SDL_video.h>
#include <SDL.h>
@sreich
sreich / GWEN-assert.patch
Last active December 11, 2015 10:39
GWEN assert on opengl texture file missing
From cf8542f420aa3bf0351662f20b8f2301ae134891 Mon Sep 17 00:00:00 2001
From: Shaun Reich <sreich@kde.org>
Date: Mon, 21 Jan 2013 14:51:00 -0500
Subject: [PATCH] make opengl renderer assert on non existent file
---
gwen/Renderers/OpenGL/OpenGL.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gwen/Renderers/OpenGL/OpenGL.cpp b/gwen/Renderers/OpenGL/OpenGL.cpp
#include <stdio.h>
#include <stdlib.h>
#include <allegro5/allegro5.h>
#include "allegro5/allegro_image.h"
#include "allegro5/allegro_native_dialog.h"
bool done;
const float FPS = 60.0;
const int SCREEN_W = 1600;