/* Copyright 2010 Lawrence Sebald12This file is part of Yabause.34Yabause is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2 of the License, or7(at your option) any later version.89Yabause is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with Yabause; if not, write to the Free Software16Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*/1819#ifndef YabauseGLView_h20#define YabauseGLView_h2122#import <Cocoa/Cocoa.h>23#include <OpenGL/OpenGL.h>24#include <OpenGL/GL.h>2526@interface YabauseGLView : NSOpenGLView {27IBOutlet NSWindow *window;28BOOL _isFullscreen;29NSPoint _mouseLoc;30}3132- (id)initWithFrame:(NSRect)frameRect;3334- (void)toggleFullscreen;3536- (BOOL)acceptsFirstResponder;37- (void)keyDown:(NSEvent *)event;38- (void)keyUp:(NSEvent *)event;3940- (void)showWindow;4142- (void)reshape;43- (void)drawRect:(NSRect)rect;4445@end4647#endif /* !YabauseGLView_h */484950