/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-27 18:52:09 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130927185209-x6tnykj2lfj0qxwt
Initial code.
This is just an experiment on different techniques that can be used.
It is pseudo object orientated. And has a few util functions to make life
easier.

All code is provided as is. Copy, Learn, Refactor, Have Fun!

TODO: make the MousePointer use an image and add an object drawing lists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gcc main.c -D_REENTRANT -I/usr/local/include/SDL2  -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lSDL2 -lpthread -Wall */
 
2
 
 
3
#include <SDL2/SDL.h>
 
4
#include <stdbool.h>
 
5
 
 
6
#include "Game.h"
 
7
 
 
8
/******************************************************************************/
 
9
 
 
10
 
 
11
int main (int argc, char * argv[]) {
 
12
  
 
13
  Game * game = game_new ();
 
14
  
 
15
  game_main_loop (game);
 
16
  game_free (game);
 
17
  
 
18
  return 0;
 
19
}
 
20