2011-02-21 07:25:24 +00:00
|
|
|
/*
|
2008-01-07 19:13:47 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
2007-12-24 18:27:28 +00:00
|
|
|
*
|
|
|
|
|
* This program 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
|
2008-01-07 19:13:47 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2007-12-24 18:27:28 +00:00
|
|
|
*
|
|
|
|
|
* This program 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 this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2007-12-24 18:27:28 +00:00
|
|
|
*
|
|
|
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* The Original Code is: all of this file.
|
|
|
|
|
*
|
|
|
|
|
* Contributor(s): none yet.
|
|
|
|
|
*
|
2008-01-07 19:13:47 +00:00
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
2007-12-24 18:27:28 +00:00
|
|
|
* os dependent include locations of gl.h
|
|
|
|
|
*/
|
|
|
|
|
|
2011-02-21 07:25:24 +00:00
|
|
|
/** \file BIF_gl.h
|
|
|
|
|
* \ingroup editorui
|
|
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#ifndef __BIF_GL_H__
|
|
|
|
|
#define __BIF_GL_H__
|
2007-12-24 18:27:28 +00:00
|
|
|
|
2011-04-05 23:31:01 +00:00
|
|
|
#include "GL/glew.h"
|
2008-04-02 15:03:03 +00:00
|
|
|
|
2012-05-12 20:39:39 +00:00
|
|
|
/*
|
|
|
|
|
* these should be phased out. cpack should be replaced in
|
|
|
|
|
* code with calls to glColor3ub. - zr
|
|
|
|
|
*/
|
2007-12-24 18:27:28 +00:00
|
|
|
/*
|
|
|
|
|
*
|
|
|
|
|
* This define converts a numerical value to the equivalent 24-bit
|
|
|
|
|
* color, while not being endian-sensitive. On little-endians, this
|
2012-03-03 11:45:08 +00:00
|
|
|
* is the same as doing a 'naive' indexing, on big-endian, it is not!
|
2007-12-24 18:27:28 +00:00
|
|
|
* */
|
2012-05-12 20:39:39 +00:00
|
|
|
#define cpack(x) glColor3ub( ((x) & 0xFF), (((x) >> 8) & 0xFF), (((x) >> 16) & 0xFF) )
|
2007-12-24 18:27:28 +00:00
|
|
|
|
2012-05-12 20:39:39 +00:00
|
|
|
#define glMultMatrixf(x) glMultMatrixf( (float *)(x))
|
|
|
|
|
#define glLoadMatrixf(x) glLoadMatrixf( (float *)(x))
|
2007-12-24 18:27:28 +00:00
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#endif /* #ifdef __BIF_GL_H__ */
|
2007-12-24 18:27:28 +00:00
|
|
|
|