This post originated from an RSS feed registered with Ruby Buzz
by Mike Gaffney.
Original Post: Simplicity Itself
Feed Title: confabulus
Feed URL: http://blog.confabulus.com/feed/
Feed Description: rails, coding, and the goings on at confabulus
I just wanted to share what it took to draw a simple yellow triangle on a black background on the Pre. I hope it will give my Ruby friends and Haskell friends an aneurysm.
To show this:
I had to do this:
//The headers
#include <SDL/SDL.h>
#include <SDL/SDL_opengles.h>
//Screen attributes
const int SCREEN_WIDTH = 480;
const int SCREEN_HEIGHT = 320;
const int [...]