goat3dgfx
diff src/rtarg.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 | dc5918c62a64 |
line diff
1.1 --- a/src/rtarg.cc Sat Nov 30 15:15:34 2013 +0200 1.2 +++ b/src/rtarg.cc Sat Nov 30 20:52:21 2013 +0200 1.3 @@ -3,6 +3,8 @@ 1.4 #include "texture.h" 1.5 #include "logger.h" 1.6 1.7 +using namespace goatgfx; 1.8 + 1.9 RenderTarget::RenderTarget() 1.10 { 1.11 width = height = 0; 1.12 @@ -220,6 +222,8 @@ 1.13 struct Viewport { int vp[4]; }; 1.14 static std::stack<Viewport> vpstack; 1.15 1.16 +namespace goatgfx { 1.17 + 1.18 void set_render_target(const RenderTarget *rtarg) 1.19 { 1.20 Viewport vp; 1.21 @@ -257,3 +261,4 @@ 1.22 return x + 1; 1.23 } 1.24 1.25 +} // namespace goatgfx