X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=ea75e84064d78a78850f52dee4e1f24e504e56c2;hb=11c8a0343cca5db622c5bcb917e92aa65a8444ff;hp=77e47eaa2a7c20333ef43183c2d6395fc6a1182f;hpb=e3acaaba9a521a397aac8fb433e1f790563fc5c8;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 77e47ea..ea75e84 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -218,6 +218,8 @@ struct tagSFG_State SFG_XYUse Size; /* The default windows' size */ unsigned int DisplayMode; /* Display mode for new windows */ + GLboolean Initalized; /* Freeglut has been initalized */ + GLboolean ForceDirectContext; /* Force direct rendering? */ GLboolean TryDirectContext; /* What about giving a try to? */ @@ -643,7 +645,7 @@ extern SFG_State fgState; * A call to this function makes us sure that the Display and Structure * subsystems have been properly initialized and are ready to be used */ -#define freeglut_assert_ready assert( fgState.Time.Set ); +#define freeglut_assert_ready assert( fgState.Initalized ); /* * Following definitions are somewhat similiar to GLib's, @@ -707,7 +709,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, void fgSetWindow ( SFG_Window *window ); void fgOpenWindow( SFG_Window* window, const char* title, int x, int y, int w, int h, GLboolean gameMode, - int isSubWindow ); + GLboolean isSubWindow ); void fgCloseWindow( SFG_Window* window ); void fgAddToWindowDestroyList ( SFG_Window* window, GLboolean needToClose );