goat3dgfx
diff src/texture.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 | 25b911c7c35c |
children | dc5918c62a64 |
line diff
1.1 --- a/src/texture.cc Sat Nov 30 15:15:34 2013 +0200 1.2 +++ b/src/texture.cc Sat Nov 30 20:52:21 2013 +0200 1.3 @@ -6,6 +6,8 @@ 1.4 #include "logger.h" 1.5 #include "datapath.h" 1.6 1.7 +using namespace goatgfx; 1.8 + 1.9 static int glifmt_from_ifmt(unsigned int ifmt); 1.10 static int glfmt_from_ifmt(unsigned int ifmt); 1.11 static int gltype_from_ifmt(unsigned int ifmt); 1.12 @@ -17,6 +19,8 @@ 1.13 GL_TEXTURE_2D, GL_TEXTURE_2D, GL_TEXTURE_2D, GL_TEXTURE_2D 1.14 }; 1.15 1.16 +namespace goatgfx { 1.17 + 1.18 void set_texture(Texture *tex, int tunit) 1.19 { 1.20 if(tex) { 1.21 @@ -44,6 +48,7 @@ 1.22 return 0; 1.23 } 1.24 1.25 +} // namespace goatgfx 1.26 1.27 Texture::Texture() 1.28 {