2007-03-17 04:07:34 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2006 yopyop
|
|
|
|
Copyright (C) 2006-2007 shash
|
|
|
|
|
|
|
|
This file is part of DeSmuME
|
|
|
|
|
|
|
|
DeSmuME is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
DeSmuME is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with DeSmuME; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OGLRENDER_H
|
|
|
|
#define OGLRENDER_H
|
|
|
|
|
2008-12-30 00:37:38 +00:00
|
|
|
#include "common.h"
|
2009-04-06 19:52:10 +00:00
|
|
|
#include <algorithm>
|
|
|
|
#include <math.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <assert.h>
|
2008-12-30 00:37:38 +00:00
|
|
|
#include "debug.h"
|
2008-09-14 05:21:06 +00:00
|
|
|
#include "render3D.h"
|
2007-03-17 04:07:34 +00:00
|
|
|
|
|
|
|
extern GPU3DInterface gpu3Dgl;
|
|
|
|
|
2008-09-14 05:21:06 +00:00
|
|
|
//This is called by OGLRender whenever it initializes.
|
|
|
|
//Platforms, please be sure to set this up.
|
|
|
|
//return true if you successfully init.
|
|
|
|
extern bool (*oglrender_init)();
|
|
|
|
|
|
|
|
//This is called by OGLRender before it uses opengl.
|
|
|
|
//return true if youre OK with using opengl
|
|
|
|
extern bool (*oglrender_beginOpenGL)();
|
|
|
|
|
|
|
|
//This is called by OGLRender after it is done using opengl.
|
|
|
|
extern void (*oglrender_endOpenGL)();
|
|
|
|
|
2007-03-17 04:07:34 +00:00
|
|
|
#endif
|