V
VarunUK07
Guest
Code
#include <stdio.h>
#include <stdlib.h>
#include <GL\glut.h>
int GAngle=0;
void Display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glLoadIdentity();
glRotated(GAngle,0,1,0);
// Anti-Clockwise Winding
glBegin(GL_TRIANGLES);
glColor3f(1,0,0);
glVertex3f(-1,0,0);
glVertex3f(1,0,0);
glVertex3f(0,1,0);
glColor3f(0,1,0);
glVertex3f(-1,0,0.5);
glVertex3f(1,0,0.5);
glVertex3f(0,1,0.5);
glEnd();
GAngle = GAngle + 4;
glFlush();
glutSwapBuffers();
}
void Timer(int extra)
{
glutPostRedisplay();
glutTimerFunc(30,Timer,0);
}
int main(void)
{
// Init to double buffering
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB);
glutCreateWindow("Dual Rotating Triangle");
glutDisplayFunc(Display);
glutTimerFunc(0,Timer,0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glFrustum(-1,1,-1,1,1,3);
glTranslated(0,0,-2);
glMatrixMode(GL_MODELVIEW);
glutMainLoop();
return 0;
}
Issue
'Mini Project.exe': Loaded 'C:\Users\Director-HRD\Desktop\test\Mini Project\Debug\Mini Project.exe', Symbols loaded.
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Users\Director-HRD\Desktop\test\Mini Project\Mini Project\freeglut.dll', Binary was not built with debug information.
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\win32u.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\gdi32full.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\msvcp_win.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\ucrtbase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\winmmbase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Symbols loaded (source information stripped).
The thread 'Win32 Thread' (0x2918) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x39fc) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x1f30) has exited with code 1 (0x1).
The program '[10488] Mini Project.exe: Native' has exited with code 1 (0x1)
Continue reading...
#include <stdio.h>
#include <stdlib.h>
#include <GL\glut.h>
int GAngle=0;
void Display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glLoadIdentity();
glRotated(GAngle,0,1,0);
// Anti-Clockwise Winding
glBegin(GL_TRIANGLES);
glColor3f(1,0,0);
glVertex3f(-1,0,0);
glVertex3f(1,0,0);
glVertex3f(0,1,0);
glColor3f(0,1,0);
glVertex3f(-1,0,0.5);
glVertex3f(1,0,0.5);
glVertex3f(0,1,0.5);
glEnd();
GAngle = GAngle + 4;
glFlush();
glutSwapBuffers();
}
void Timer(int extra)
{
glutPostRedisplay();
glutTimerFunc(30,Timer,0);
}
int main(void)
{
// Init to double buffering
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB);
glutCreateWindow("Dual Rotating Triangle");
glutDisplayFunc(Display);
glutTimerFunc(0,Timer,0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glFrustum(-1,1,-1,1,1,3);
glTranslated(0,0,-2);
glMatrixMode(GL_MODELVIEW);
glutMainLoop();
return 0;
}
Issue
'Mini Project.exe': Loaded 'C:\Users\Director-HRD\Desktop\test\Mini Project\Debug\Mini Project.exe', Symbols loaded.
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Users\Director-HRD\Desktop\test\Mini Project\Mini Project\freeglut.dll', Binary was not built with debug information.
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\win32u.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\gdi32full.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\msvcp_win.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\ucrtbase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\winmmbase.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Symbols loaded (source information stripped).
'Mini Project.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Symbols loaded (source information stripped).
The thread 'Win32 Thread' (0x2918) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x39fc) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x1f30) has exited with code 1 (0x1).
The program '[10488] Mini Project.exe: Native' has exited with code 1 (0x1)
Continue reading...