Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to learn how to work with OpenGL. I have found several sites (OpenGL.org, Robinson's, Tao's, SharpGL's, and NeHe's) 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

  • *Experts*
Posted

First, the glu*.dll is not a com dll. That means you'd have to use ImportDLL to get the functions included - you probably don't want to do this though.

 

Searching google for "opengl vb.net" turned up a bunch of good hits. I'd 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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...