1 /*
2 	This file is part of Warzone 2100.
3 	Copyright (C) 1999-2004  Eidos Interactive
4 	Copyright (C) 2005-2020  Warzone 2100 Project
5 
6 	Warzone 2100 is free software; you can redistribute it and/or modify
7 	it under the terms of the GNU General Public License as published by
8 	the Free Software Foundation; either version 2 of the License, or
9 	(at your option) any later version.
10 
11 	Warzone 2100 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.
15 
16 	You should have received a copy of the GNU General Public License
17 	along with Warzone 2100; if not, write to the Free Software
18 	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 /***************************************************************************/
21 /*
22  * piefunc.h
23  *
24  * type defines for extended image library functions.
25  *
26  */
27 /***************************************************************************/
28 
29 #ifndef _piefunc_h
30 #define _piefunc_h
31 
32 #include "lib/framework/frame.h"
33 #include "lib/ivis_opengl/piedef.h"
34 #include "lib/ivis_opengl/pieclip.h"
35 #include <array>
36 
37 void pie_TransColouredTriangle(const std::array<Vector3f, 3> &vrt, PIELIGHT c, const glm::mat4 &modelViewMatrix);
38 
39 void pie_SetViewingWindow(Vector3i *v, PIELIGHT colour);
40 void pie_DrawViewingWindow(const glm::mat4 &modelViewProjectionMatrix);
41 void pie_ViewingWindow_Shutdown();
42 
43 void pie_DrawSkybox(float scale, const glm::mat4 &viewMatrix);
44 void pie_Skybox_Init();
45 void pie_Skybox_Shutdown();
46 void pie_Skybox_Texture(const char *filename);
47 
48 #endif // _piedef_h
49