goat3dgfx

diff src/unistate.cc @ 15:7d6b667821cf

wrapped everything in the goatgfx namespace
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Nov 2013 20:52:21 +0200
parents 1873dfd13f2d
children
line diff
     1.1 --- a/src/unistate.cc	Sat Nov 30 15:15:34 2013 +0200
     1.2 +++ b/src/unistate.cc	Sat Nov 30 20:52:21 2013 +0200
     1.3 @@ -4,6 +4,8 @@
     1.4  #include "shader.h"
     1.5  #include "logger.h"
     1.6  
     1.7 +using namespace goatgfx;
     1.8 +
     1.9  struct StateItem {
    1.10  	StType type;
    1.11  
    1.12 @@ -19,6 +21,8 @@
    1.13  static StType float_type(int elem);
    1.14  static StType int_type(int elem);
    1.15  
    1.16 +namespace goatgfx {
    1.17 +
    1.18  std::vector<StateItem> state;
    1.19  std::map<std::string, int> stateidx;
    1.20  
    1.21 @@ -582,6 +586,8 @@
    1.22  #endif
    1.23  }
    1.24  
    1.25 +}	// namespace goatgfx
    1.26 +
    1.27  static const char *typestr(StType type)
    1.28  {
    1.29  	switch(type) {