#pragma once typedef struct VWindow VWindow; #include #include "agl.h" #include "gl.h" #include "glu.h" #include #include "Settings.h" #define WINDOWH 800 #define WINDOWV 600 #define GL_BGRA 0x80E1 struct VWindow { WindowRef TheWindow; Boolean IsFullScreen; AGLContext Windowed; AGLContext FullScreen; Boolean quitOnClose; Boolean isMinimized; Boolean Ortho; Boolean Scaled; }; void InitWindow(VWindow * w); void TransWindow(WindowRef w, Boolean vis); void CreateFullScreenContext(VWindow * w); void CreateWindowedContext(VWindow * w); void CleanUpWindow(VWindow * w); Rect WindowSize(VWindow * w); void SetPerspective(VWindow * w); void SetOrtho(VWindow * w);