Tuesday, September 17, 2013

I created a prototype for a simple GUI engine. The code will look something like this:

#include Engine.h //name TBD

int main()
{
//make your render object this, will be red
Surface mySurf(100,100,color(c_red));
//make your window named "HelloWorld"
Window myWin(200,200,"HelloWorld");

//my surface will be drawn once at the origin and once at the center
myWin << mySurf << mySurf.loc(100,100) << "\n";
//"\n" or '\n' or sync will dump the window to the screen
//wait 2 secs so you can see things
wait(2000);

//THAT'S IT!
}


//also, I need a new syntax highligher... =X