GLICT/types.h

Go to the documentation of this file.
00001 /*
00002     GLICT - Graphics Library Interface Creation Toolkit
00003     Copyright (C) 2006-2007 OBJECT Networks
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public
00016     License along with this library; if not, write to the Free
00017     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 */
00019 
00020 
00021 
00027 #ifndef _GLICT_TYPES_H
00028 #define _GLICT_TYPES_H
00029 
00030 
00039 typedef struct {
00040     union {
00041         float x,w; 
00042     };
00043     union {
00044         float y,h; 
00045     };
00046 } glictPos;
00047 
00048 
00052 typedef glictPos glictSize;
00053 
00054 
00058 struct glictColor {
00059         glictColor() {}
00060         glictColor (float red,float green, float blue, float alpha) { r=red; g = green; b = blue; a = alpha; }
00062     float r, g, b, a;
00063 } ;
00064 
00068 typedef struct {
00070     float top, bottom, left, right;
00071 } glictRect;
00072 
00076 enum glictEvents {
00077     GLICT_MOUSECLICK = 0, 
00078     GLICT_MOUSEDOWN = 1, 
00079     GLICT_MOUSEUP = 2, 
00080     GLICT_KEYPRESS = 3, 
00081     GLICT_KEYDOWN = 4, 
00082     GLICT_KEYUP = 5 
00083 };
00084 
00088 enum glictClippingMode {
00089     GLICT_NOCLIP = 0, 
00090     GLICT_SCISSORTEST = 1, 
00091     GLICT_STENCILTEST = 2 
00092 };
00093 
00094 
00095 #endif

SourceForge.net Logo
generated with doxygen 1.5.3 on Mon Oct 29 18:09:26 2007