Skip to content

Instantly share code, notes, and snippets.

@od0x0
Created March 1, 2011 01:43
Show Gist options
  • Save od0x0/848450 to your computer and use it in GitHub Desktop.
Save od0x0/848450 to your computer and use it in GitHub Desktop.
#include "AE.h"
#include "AESDL.h"
static void FrameUpdate(AEWindow* window, double seconds){
//Do something here
}
static void FixedUpdate(AEWindow* window, double seconds){
//Do something here
}
static void Render(AEView* view){
//Do something here
}
int main(int argc, char** argv){
AEWindow* window=AEWindowNew();
AEWindowSetContextCallbacks(window, AESDLWindowContextCallbacks());
AEWindowSetFrameUpdateFunc(window, FrameUpdate);
AEWindowSetFixedUpdateFunc(window, FixedUpdate, 15, 60);
AEWindowOpen(window, "Your Window's Name", 800, 500);
AEViewSetRenderFunc(AEWindowAddView(window), Render);
AEWindowRun(window);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment