#pragma once #include #include "agl.h" #include "gl.h" #include "glu.h" #include #define WINDOWH 800 #define WINDOWV 600 #define GL_BGRA 0x80E1 typedef struct VWindow { WindowRef TheWindow; Boolean IsFullScreen; AGLContext Windowed; AGLContext FullScreen; Boolean quitOnClose; Boolean isMinimized; Boolean Ortho; Boolean Scaled; } VWindow; 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);