I am new to OpenGL API.
I have started reading SuperBible OpenGL 5th Edition. I have installed Visual C++ 2010.
I have tried the very first programme in the book . Rendering a triangle. However when I write the same code into C++ IDE and when I compile it I am getting the following error.
Unhandled exception at 0x00000000 in MyFirstOpenGLProgramme.exe: 0xC0000005: Access violation reading location 0x00000000.
The very first line triangle.Begin(GT_TRIANGLES, 3); is failing .
Can any guide me through this.
Thanks in advance,