4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
30 /** \file GPG_Canvas.h
34 #ifndef _GPG_CANVAS_H_
35 #define _GPG_CANVAS_H_
38 #pragma warning (disable : 4786)
41 #include "GPC_Canvas.h"
43 #include "GHOST_IWindow.h"
46 class GPG_Canvas : public GPC_Canvas
50 GHOST_IWindow* m_window;
53 GPG_Canvas(GHOST_IWindow* window);
54 virtual ~GPG_Canvas(void);
56 virtual void Init(void);
57 virtual void SetMousePosition(int x, int y);
58 virtual void SetMouseState(RAS_MouseState mousestate);
59 virtual void SwapBuffers();
60 virtual int GetMouseX(int x){return x;};
61 virtual int GetMouseY(int y){return y;};
62 virtual float GetMouseNormalizedX(int x);
63 virtual float GetMouseNormalizedY(int y);
65 bool BeginDraw() { return true;};
69 #endif // _GPG_CANVAS_H_