Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenGL like API


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Ganja Man   Members   -  Reputation: 122

Like
Likes
Like

Posted 01 September 2001 - 10:40 AM

I want to write an OpenGl like API (for gui), how could I use object binding like in SGI API?

Sponsor:

#2 mittens   Moderators   -  Reputation: 1315

Like
Likes
Like

Posted 01 September 2001 - 02:46 PM

Heres an idea: don''t even make your own API... Its insanity I tell you, pure insanity.

------------------------------
Trent (ShiningKnight)
E-mail me
ShiningKnight Games

#3 Drizzt DoUrden   Members   -  Reputation: 100

Like
Likes
Like

Posted 01 September 2001 - 03:05 PM

I wouldnt know, and I agree with shining knight. When I realized how hard it is to learn an API i figured "Hey, Ill make my own, and then Ill know it because I made it!" I looked into it and uh.. I decided to learn OpenGL. So unless you have ALOT of time on your hands, and acouple years, around 2- 6, I suggest you just learn OGL or D3D. But, if you do make an API, and its easy to use, I would be interested in using it.

"I''''ve sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do''''Urden

#4 TerranFury   Members   -  Reputation: 142

Like
Likes
Like

Posted 01 September 2001 - 03:22 PM

If you want to make creating a GUI in OpenGL easier, just write a library that calls OpenGL itself, but has "button," "cursor," "checkbox," and similar classes that handle the low-level details. But don''t try writing an API. You''d be wasting your time.

#5 Ganja Man   Members   -  Reputation: 122

Like
Likes
Like

Posted 02 September 2001 - 02:30 AM

I don''t want to rewrite OpenGL!!! Just a very little utility like glui...

#6 rickquolan   Members   -  Reputation: 122

Like
Likes
Like

Posted 02 September 2001 - 02:49 AM

terranfurby is absolutely right.

#7 Prosper/LOADED   Members   -  Reputation: 100

Like
Likes
Like

Posted 02 September 2001 - 04:19 AM

I''m not sure I''ve understood you but let''s give it a try.

Do you mean you want to know how to do something like this ?

bindStuff( myStuff);
doSomething(); // this function will affect "myStuff" but you don''t have to give it as a param.

If it''s what you want, it''s quite easy to do :

  

// My powerful API source file


struct Object
{
int stuff;
};

Object * selectedObject;

void bindObject( Object * o)
{
selectedObject = o;
}

void clear()
{
selectedObject->stuff = 0;
}



If I misunderstood you, I apologize for this useless post.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS