Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 18 Nov 2012
Offline Last Active Nov 19 2012 04:38 AM

Posts I've Made

In Topic: [solved] Modified opengl-tutorial.org code access violation at 0

18 November 2012 - 04:12 AM

Why is that? Running it with "3" (as the tutorial does) does actually work, but renders only one triangle (the first three vertices). I do aim to render six vertices making up two triangles forming a square.

//Edit: having VertexAttribPointer at 3 and DrawArrays at 6 seems to work and makes sense now. I did not see the functions context and that it does not refer to the vertex count of the entire buffer but to the format thereof.

In Topic: Problem linking to Glew on Windows 64 bit and Visual Studio 2010

18 November 2012 - 02:31 AM

I also use glew on Visual Studio and compile for x86 and x64. I ran into the same problem and I fixed it by adding GLEW_STATIC to the preprocessor variables (you can also add a #define) and put the includes in my project folder and added the glew.c to my project. In a way I am not using it as a library but include it directly in my code. I would gladly provide a project template as I see many people run into this problem, but I have a different error that currently blocks my project. If you want I can upload it later...