Open GL with Visual C++ 2010

I have problem with doing the graphic- OpenGL, can give some advices as I could not proceed to test other graphics

#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The GLaux Library
HGLRC hRC=NULL; // Permanent Rendering Context
HDC hDC=NULL; // Private GDI Device Context
HWND hWnd=NULL; // Holds Our Window Handle
HINSTANCE hInstance; // Holds The Instance Of The Application
bool keys[256]; // Array Used For The Keyboard Routine
bool active=TRUE; // Window Active Flag Set To TRUE By Default
bool fullscreen=TRUE; // Fullscreen Flag Set To Fullscreen Mode By Default
GLvoid ReSizeGLScene(GLsizei width, GLsizei height) // Resize And Initialize The GL Window
{
if (height==0) // Prevent A Divide By Zero By
{
height=1; // Making Height Equal One
}
glViewport(0, 0, width, height); // Reset The Current Viewport
glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
glLoadIdentity(); // Reset The Projection Matrix
// Calculate The Aspect Ratio Of The Window
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glLoadIdentity(); // Reset The Modelview Matrix
}

Error message

Output

1>------ Build started: Project: Exercise 12-polygon, Configuration: Debug Win32 ------
1>Build started 7/29/2012 2:13:58 AM.
1>InitializeBuildStatus:
1> Touching "Debug\Exercise 12-polygon.unsuccessfulbuild".
1>ClCompile:
1> polygon.cpp
1>c:\c++ exercise\exercise 12-polygon\exercise 12-polygon\polygon.cpp(4): fatal error C1083: Cannot open include file: 'gl\glaux.h': No such file or directory
1>
1>Build FAILED.

I have linked it

closed account (o1vk4iN6)
It can't open the header file "glaux.h".

Also all those functions you are using ( glLoadIdentity, glMatrixMode ) are deprecated and have been removed in opengl 3.1. http://www.opengl.org/wiki/Fixed_Function_Pipeline
Last edited on
can show me a sample how to create a 3D polygon
I am getting know where. Possible to help with the creation of polygon and make it rotate
Topic archived. No new replies allowed.