From 69ba0b04619ca6e32517b52c120241ff7762fce2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 17 May 2010 00:35:21 +0200 Subject: Fixed OS X support. --- main.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 51ef1c2..9b9311e 100644 --- a/main.cpp +++ b/main.cpp @@ -1,13 +1,18 @@ #include #include #define GL_GLEXT_PROTOTYPES +#ifndef __APPLE__ #include #include +#else +#include +#include +#endif #include #include #include #include -#include "SDL.h" +#include #include #include "texturesdl.h" #include "shader.h" @@ -90,7 +95,7 @@ void create_bullets() { //create_pattern2_2(100); } -int main() { +int main(int, char**) { if(SDL_Init(SDL_INIT_VIDEO) < 0) { fprintf(stderr, "Failed to initialize SDL: %s\n", SDL_GetError()); return 1; @@ -137,7 +142,7 @@ int main() { program.attach(shader2); program.link(); - FTPixmapFont font("/usr/share/fonts/TTF/DejaVuSansMono.ttf"); + FTPixmapFont font("VeraMono.ttf"); font.FaceSize(12); float f = 0.0; @@ -280,7 +285,7 @@ int main() { SDL_GL_SwapBuffers(); - SDL_Delay(1); + SDL_Delay(10); } SDL_Quit(); -- cgit v1.2.3