The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C Code
Posted by: Dbzmaniax | March 10, 2010 @ 4:12am
C Code
[
Download
]
glBegin(GL_QUAD_STRIP); float theta; float phi; for (phi = 0; phi < M_PI; phi += STEP) for (theta = 0; theta < 2.0 * M_PI; theta += STEP) { glVertex3f(RADIUS * sin(phi) * cos(theta), RADIUS * sin(phi) * sin(theta), RADIUS * cos(phi)); glVertex3f(RADIUS * sin(phi + STEP) * cos(theta), RADIUS * sin(phi + STEP) * sin(theta), RADIUS * cos(phi + STEP)); fprintf(stderr, "%f, %f\n", phi, theta); } glEnd();
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.54 / 8
57 Votes
http://codebin.yi.org/539
page generated in 0.01 seconds