Learning OpenGL problems...

joe_pool_is

Well-known member
Joined
Jan 18, 2004
Messages
451
Location
Texas
I am trying to learn how to work with OpenGL. I have found several sites (OpenGL.org, Robinsons, Taos, SharpGLs, and NeHes) with examples to download and source code to compile.

Nothing seems to work. The source code ZIPs often include Makefiles that I try running, but I still get nothing from them in VB.NET.

I downloaded a compiled GLUT32.dll with the hopes of getting something to work. Several examples show how to include this as a header file in C:
#include "GL/glut32.dll"
With this in mind, I tried adding a reference to this DLL in my test solution with the "Add Reference" dialog box, but I get this:
A reference to C:\WINNT\System32\glut32.dll could not be added. This is not a valid assembly or COM component. Only assemblies with extension dll and COM components can be referenced. Please make sure that the file is accessable, and that it is a valid assembly or COM component.​
Now, my question is two part:
  1. How do I reference this in VB.NET?, and
  2. Does anyone have any experience getting the Makefiles and examples to work?

Thanks in advance for any help,
~Joe
 
First, the glu*.dll is not a com dll. That means youd have to use ImportDLL to get the functions included - you probably dont want to do this though.

Searching google for "opengl vb.net" turned up a bunch of good hits. Id search through some of the results as it looked as though there were a few sites (at least) that had some "getting started" pages.

-ner
 
Back
Top