OpenGL doesn't draw (3.3+) [on hold]
- by Dhiego Magalhães
Brief:
I've been following this tutorial about OpenGL for 2 days, and I still can't have a triangle drawn, so I'm asking for help here. The tutorial is turned to OpenGL version 3.3 programing, using vertex arrays, buffers, etc. The libraries are: GLFW3 and GLEW, and I setted them by myself. The screen keeps black all the time.
Full code:
link here
(It's just like a Hello World opengl program)
Further Details:
I get no errors at all.
I downloaded a software to test my video card, and it supports OpenGL 4.1+
Standard OpenGL code for drawing (from earlier version) such as this one works normally.
I'm using Microsoft Visual Studio 10.0
I presume all the OpenGL implementation was dune right: I added Additional Dependences to the linker as glew32.lib, opengl32.lib, glfw3.lib. The glew.dll was placed at SysWOW64 - because I'm running window 64bits, and glew is 32.
Notes: I've been working hard to find out what this is, but I can't find. I would appreciate if anyone could test this code for me, so I can know if I implemented something wrong, and that its not my code.