goat3dgfx

diff src/meshgen.cc @ 17:f2da87b02fcd

fixes mostly visual studio stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Dec 2013 02:25:29 +0200
parents 7d6b667821cf
children
line diff
     1.1 --- a/src/meshgen.cc	Sat Nov 30 20:53:26 2013 +0200
     1.2 +++ b/src/meshgen.cc	Sun Dec 01 02:25:29 2013 +0200
     1.3 @@ -16,7 +16,7 @@
     1.4  			cos(theta) * sin(phi));
     1.5  }
     1.6  
     1.7 -void gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange, float vrange)
     1.8 +void goatgfx::gen_sphere(Mesh *mesh, float rad, int usub, int vsub, float urange, float vrange)
     1.9  {
    1.10  	if(usub < 4) usub = 4;
    1.11  	if(vsub < 2) vsub = 2;
    1.12 @@ -78,7 +78,7 @@
    1.13  	return Vector3(sin(theta), height, cos(theta));
    1.14  }
    1.15  
    1.16 -void gen_cylinder(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub, float urange, float vrange)
    1.17 +void goatgfx::gen_cylinder(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub, float urange, float vrange)
    1.18  {
    1.19  	if(usub < 4) usub = 4;
    1.20  	if(vsub < 1) vsub = 1;
    1.21 @@ -209,7 +209,7 @@
    1.22  	return Vector3(sin(theta) * scale, y, cos(theta) * scale);
    1.23  }
    1.24  
    1.25 -void gen_cone(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub, float urange, float vrange)
    1.26 +void goatgfx::gen_cone(Mesh *mesh, float rad, float height, int usub, int vsub, int capsub, float urange, float vrange)
    1.27  {
    1.28  	if(usub < 4) usub = 4;
    1.29  	if(vsub < 1) vsub = 1;
    1.30 @@ -324,7 +324,7 @@
    1.31  
    1.32  // -------- plane --------
    1.33  
    1.34 -void gen_plane(Mesh *mesh, float width, float height, int usub, int vsub)
    1.35 +void goatgfx::gen_plane(Mesh *mesh, float width, float height, int usub, int vsub)
    1.36  {
    1.37  	if(usub < 1) usub = 1;
    1.38  	if(vsub < 1) vsub = 1;