Jump to content
10006 posts in this topic

Recommended Posts

Don't really know what Xcode is used for, but from the picture I'm guessing graphic design? If your just screwing around on the program, then it's not too shabby. Then again I don't know if the program's hard to use or not.

 

6904

6905

 

XCode is an (the) IDE for Mac OS X. That was coded in C++, using OpenGL routines. Basically, its how you would write a video game for mac.

 

some code:

	glTranslatef(0, -3, -18);

glRotatef(rot, 0, 1, 0);
glBegin(GL_LINE_STRIP);
	glColor3f(0, 1, 1);
	float *point[3];
	float i;
	for (i = start(); i <= end(); i += interval()) {

		glVertex3fv(determinePoint(point, i));

		}
glEnd();

float radius(float t)
{
float a = (t/(10*PI));
float r = 10*(a*a)*(a-1)*(a-1);

return r;
}

float paraX(float t) 
{
float X = t*p/(2*PI) - 2.5*p;
return X;
}

float paraY(float t) 
{
float Y = radius(t)*cos(t);

return Y;
}

float paraZ(float t) 
{
float Z = radius(t)*sin(t);
return Z;
}




float *determinePoint(float *point, float t) 
{
point[0] = paraX(t);
point[1] = paraY(t);
point[2] = paraZ(t);


return point;
}

float start()
{
   return 0;
}
float interval()
{
   return .01;
}

float end()
{
   return PI * 2 * 5;
}

 

here is another:

post-122578-1198563804_thumb.png

Well than congrats on the code socal. And my sister got a pair of Nine West boots. They look pretty nice. I'm gonna go put on my new Broncos cap and play some Wii Bowling. =] Best christmas ever.

 

6914

Guest
This topic is now closed to further replies.
×
×
  • Create New...