Brand new to OpenGL on windows

I am just learning OpenGL and have a book that is very useful. I have heard OpenTK is great for programming games, but everytime i try to put any command like;


it does not recognize any of the above. i am using visual basic 2010 with c++.

What do you mean by “it does not recognize any of the above?” Is this a compiler error (does VB get compiled?) or a runtime error?

ERROR; this declaration has no storage class or no type specifier

I did a quick Google Search for “GLShaderManager OpenTK” so that I could find exactly what this object does. The very first hit on the search was this question on the OpenTK site.

GLShaderManager is not part of OpenGL. It is part of a C++ library that the OpenGL Superbible version 5 uses in an (in my opinion misguided) effort to hide details from the user until the author feels that those details can be better explained. OpenTK only exposes actual parts of OpenGL, not parts of other libraries that use OpenGL. So it is not available to you from .NET.

You’ll have to make due without it.

so if i use an IDE or compiler that does not use .NET i can use it?

like code::blocks?

so if i use an IDE or compiler that does not use .NET i can use it?

It’s a C++ library that ships with the OpenGL Superbible 5. So you will need a C++ compiler and you will need to write C++ code to use it. It has nothing to do with .NET specifically; you couldn’t use it from a pure-C compiler either. Or a Java compiler. And so on.

oh ok much better

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.