hello,this is my code #ifdef __APPLE_CC__
include <glut glut.h="">
else
include <gl glut.h="">
endif
include<gl glut.h="">
include <cmath>
include <math.h>
GLfloat x; GLfloat y; GLfloat radius; void drawcir(GLfloat x, GLfloat y, GLfloat radius); void init() {
glClearColor(0,0,0,0); glMatrixMode(GL_PROJECTION); gluOrtho2D(0,100,0,200);
}
void drawcir(GLfloat x, GLfloat y, GLfloat radius){ int i; int k; int lineamount= 8; radius=4; x=0; y=0; GLfloat twicepi=2.0*3.14;
glBegin(GL_LINE_LOOP);
for(k=0;k<=3;k++){
for(i=0;i<=lineamount;i++){
glVertex2f(
x+ (radius * cos(i * twicepi / lineamount)),y + (radius * sin(i * twicepi / lineamount)));
}
radius--;
}
glEnd();
}
void display() { void drawcir(GLfloat x, GLfloat y, GLfloat radius); } //glFlush();
int main(int argc,char **argv)
{ glutInit(&argc,argv);
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB); glutInitWindowSize(500,500); glutInitWindowPosition(200,200); glutCreateWindow("Line"); init(); //drawcir(GLfloat (x), GLfloat(y), GLfloat (radius)); glutDisplayFunc(display);
glutMainLoop(); return 0; } but i can't see the output it just shows this message 'new code.exe': Loaded 'C:\Users\sarah\Documents\Visual Studio 2010\Projects\new code\Debug\new code.exe', Symbols loaded. 'new code.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\freeglut.dll', Binary was not built with debug information. 'new code.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\lpk.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\usp10.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\sechost.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\opengl32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\glu32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\ddraw.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\dciman32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\setupapi.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\ole32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\devobj.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\winmm.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded. 'new code.exe': Loaded 'C:\Windows\System32\imm32.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\msctf.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Symbols loaded (source information stripped). 'new code.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Symbols loaded (source information stripped). The program '[3844] new code.exe: Native' has exited with code 0 (0x0).
i am confused would you please help me with this.thank you