diff options
author | N.N. <matju@users.sourceforge.net> | 2009-10-18 19:53:53 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2009-10-18 19:53:53 +0000 |
commit | a1fb215b39535805aa19608185d5e52c0f524b42 (patch) | |
tree | 9d8056ca9837bd03676405dc5202bdc2c041d430 /externals/gridflow/bundled/Base/GemState.h | |
parent | d6b18994d50479d2f76041387d25db235bbda4cd (diff) |
bye gridflow 0.9.4
svn path=/trunk/; revision=12610
Diffstat (limited to 'externals/gridflow/bundled/Base/GemState.h')
-rw-r--r-- | externals/gridflow/bundled/Base/GemState.h | 150 |
1 files changed, 0 insertions, 150 deletions
diff --git a/externals/gridflow/bundled/Base/GemState.h b/externals/gridflow/bundled/Base/GemState.h deleted file mode 100644 index b41d2ee3..00000000 --- a/externals/gridflow/bundled/Base/GemState.h +++ /dev/null @@ -1,150 +0,0 @@ -/*----------------------------------------------------------------- - LOG - GEM - Graphics Environment for Multimedia - - The state to pass among GEM objects - - Copyright (c) 1997-2000 Mark Danks. mark@danks.org - Copyright (c) Günther Geiger. geiger@epy.co.at - Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. zmoelnig@iem.kug.ac.at - For information on usage and redistribution, and for a DISCLAIMER OF ALL - WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. - - -----------------------------------------------------------------*/ - -#ifndef INCLUDE_GEMSTATE_H_ -#define INCLUDE_GEMSTATE_H_ - -#include "Base/GemExportDef.h" -#include "Base/GemGL.h" - -struct pixBlock; -class TexCoord; - -/*----------------------------------------------------------------- - ------------------------------------------------------------------- - CLASS - TexCoord - - - DESCRIPTION - - -----------------------------------------------------------------*/ -class GEM_EXTERN TexCoord -{ - public: - TexCoord() : s(0.f), t(0.f) { } - TexCoord(float s_, float t_) : s(s_), t(t_) { } - float s; - float t; -}; - - -/*----------------------------------------------------------------- - ------------------------------------------------------------------- - CLASS - GemState - - The state to pass among GEM objects - - DESCRIPTION - - -----------------------------------------------------------------*/ -class GEM_EXTERN GemState -{ - public: - - ////////// - // Has something changed since the last time? - int dirty; - - ////////// - // Are we in a display list creation? - int inDisplayList; - - ////////// - // Lighting on? - int lighting; - - ////////// - // Smooth shading (flat is other type) - int smooth; - - ////////// - // Texture mapping on? - // 0..off - // 1..normalized texture - // 2..rectangle texture - int texture; - - ////////// - // The image to texture map - pixBlock *image; - - ////////// - // Texture coordinates. - // This can be NULL if there aren't any coordinates - TexCoord *texCoords; - - ////////// - // The number of TexCoords - int numTexCoords; - - ////////// - // The number of multiTexUnits - // default = 0, max = 7 - int multiTexUnits; - - ////////// - // Milliseconds since last frame - // If in Stereoscopic mode, then it is the same number for both left - // and right renderings - float tickTime; - - ////////////////// - // the default draw-type (might be overriden within a Geo) - GLenum drawType; - - ////////// - // how deep is the current stack /* 4 fields for the 4 stacks */ - int stackDepth[4]; - - //////////// - //vertex-array data - int VertexDirty; // the vertex-arrays has changed - - GLfloat *VertexArray; - int VertexArraySize; - int VertexArrayStride; - - GLfloat *ColorArray; - int HaveColorArray; - - GLfloat *NormalArray; - int HaveNormalArray; - - GLfloat *TexCoordArray; - int HaveTexCoordArray; - - ////////// - // Constructor - GemState(); - - float texCoordX(int num) { - if (texture && numTexCoords > num) - return texCoords[num].s; - else return 0.; - } - - float texCoordY(int num) { - if (texture && numTexCoords > num) - return texCoords[num].t; - else return 0.; - } - - /* reset (parts of?) the GemState: to be called from [gemhead] */ - void reset(); - -}; - -#endif // for header file |