Jump to content
  • Advertisement
Sign in to follow this  
VanKurt

OpenGL C#, TAO & OpenGL

This topic is 4425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there! After working with C++ and OpenGL for some years I now I thought it would be time to try something new. So I started with C# today :-) What I'd like to create is a little 3D-editor. But to get started I need to have access to OpenGL functions in my C# app. So I looked all over the web and found only TAO (which is free). Sadly there are NO tutorials or anything on their website... So could anyone give me a hint (or sample code) on how to access OpenGL in C# via TAO? (note: I'm a total noob!) Thank's a lot :-D

Share this post


Link to post
Share on other sites
Advertisement
literally all you do is include the Tao namespace and add Gl. to your opengl calls and constants and you are set.

its the exact same.


using Tao.OpenGL

void foo()
{
Gl.glBegin(Gl.GL_QUAD);
//stuff
Gl.glEnd();
}

Share this post


Link to post
Share on other sites
I tried that, but all I get is an error saying:
"The name 'Gl' does not exist in the current context"

I already added two references to "Tao framework windows platform API key binding" and "Tao.OpenGL".
I also added "using Tao.OpenGl;" and "using Tao.Platform.Windows;" to my code.
Is there anything else I have to do??

Share this post


Link to post
Share on other sites
As I said: "I already added two references to "Tao framework windows platform API key binding" and "Tao.OpenGL"."

Is that what you meant?

Share this post


Link to post
Share on other sites
Quote:
Original post by VanKurt
As I said: "I already added two references to "Tao framework windows platform API key binding" and "Tao.OpenGL"."

Is that what you meant?


Have you added a reference to the actual dlls rather then just telling it to attempt to import functions from those namespaces?

Share this post


Link to post
Share on other sites
I'm not quite sure ;-)

What I did was click on "Project-> Add reference" (in VisualStudio2005).
There I selected items called "Tao framework windows platform API key binding" and "Tao.OpenGL".
These had path properties like "C:\Tao\bin\Tao.platform.windows.dll".

Was that right? What else can I do?

Share this post


Link to post
Share on other sites
That sounds about right. Open up the dlls in the object browser and see if you figure out what you are supposed to be including.

I was going to be looking at the Tao stuff in a few weeks time myself - don't have time right now.

At least one of the Tao team is a regular - Rob Loach.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
the only problem with tao is that it doesn't support GLSL. I posted several times on their mailing list about this but no one could give me any real help. I'd love to use it too but the guys working on it are busy with real world stuff so they haven't been able to fix it. maybe the 1.3 release fixes this... I'm not sure, the mailing list seems dead

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!