]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/mat.hxx
My old email address is no longer valid ... point to my web page.
[simgear.git] / simgear / scene / material / mat.hxx
index 084f736ff54cb5db2dc29868a5580ac87ddcdc7f..a32bde3220cd450a9b1bbe22b9d2d31fcad3d1d3 100644 (file)
@@ -4,7 +4,7 @@
 // Written by Curtis Olson, started May 1998.
 // Overhauled by David Megginson, December 2001
 //
-// Copyright (C) 1998 - 2000  Curtis L. Olson  - curt@flightgear.org
+// Copyright (C) 1998 - 2000  Curtis L. Olson  - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -39,7 +39,6 @@
 #include <plib/ssg.h>
 
 #include <simgear/props/props.hxx>
-#include <simgear/math/sg_random.h>
 
 #include "matmodel.hxx"
 
@@ -199,11 +198,13 @@ protected:
 
 protected:
 
-  typedef struct {
+  struct _internal_state {
+     _internal_state( ssgSimpleState *s, const string &t, bool l )
+                  : state(s), texture_path(t), texture_loaded(l) {}
       ssgSimpleState *state;
       string texture_path;
       bool texture_loaded;
-  } _internal_state;
+  };
 
 private:
 
@@ -215,6 +216,9 @@ private:
   // texture status
   vector<_internal_state> _status;
 
+  // Round-robin counter
+  unsigned int _current_ptr;
+
   // texture size
   double xsize, ysize;