44160c774b65f010b8b8fdddea981ad9d9a77536
[genesis3d.git] / G3D / Font / wgClip.H
1 /****************************************************************************************/\r
2 /*  WGCLIP.H                                                                            */\r
3 /*                                                                                      */\r
4 /*  Author: Thom Robertson                                                              */\r
5 /*  Description: 2D rectangular clip testing support                                    */\r
6 /*                                                                                      */\r
7 /*  The contents of this file are subject to the Genesis3D Public License               */\r
8 /*  Version 1.01 (the "License"); you may not use this file except in                   */\r
9 /*  compliance with the License. You may obtain a copy of the License at                */\r
10 /*  http://www.genesis3d.com                                                            */\r
11 /*                                                                                      */\r
12 /*  Software distributed under the License is distributed on an "AS IS"                 */\r
13 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */\r
14 /*  the License for the specific language governing rights and limitations              */\r
15 /*  under the License.                                                                  */\r
16 /*                                                                                      */\r
17 /*  The Original Code is Genesis3D, released March 25, 1999.                            */\r
18 /*  Genesis3D Version 1.1 released November 15, 1999                                 */\r
19 /*  Copyright (C) 1999 WildTangent, Inc. All Rights Reserved           */\r
20 /*                                                                                      */\r
21 /****************************************************************************************/\r
22 #ifndef GE_CLIP_H\r
23 #define GE_CLIP_H\r
24 \r
25 \r
26 #ifdef __cplusplus\r
27 extern "C" {\r
28 #endif\r
29 \r
30 #define GE_CLIP_CENTER 1\r
31 #define GE_CLIP_CORNER 0\r
32 #include        "basetype.h"\r
33 #include        "getypes.h"\r
34 \r
35 //***************************************************************\r
36 // returns true if you need to draw at all.\r
37 GENESISAPI geBoolean GENESISCC CalculateClipping(\r
38                            GE_Rect *artRect, int32 *resultX, int32 *resultY, \r
39                            int32 x, int32 y,\r
40                            const GE_Rect bounds, int32 type);\r
41 \r
42 #ifdef __cplusplus\r
43 }\r
44 #endif\r
45 \r
46 #endif\r
47 \r