OpenGL like API
I want to write an OpenGl like API (for gui), how could I use object binding like in SGI API?
Heres an idea: don''t even make your own API... Its insanity I tell you, pure insanity.
------------------------------
Trent (ShiningKnight)
E-mail me
ShiningKnight Games
------------------------------
Trent (ShiningKnight)
E-mail me
ShiningKnight Games
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
"I''''ve sparred with creatures from the nine hells themselves... I barely plan on breaking a sweat here, today."~Drizzt Do''''Urden
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.
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 :
If I misunderstood you, I apologize for this useless post.
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 filestruct 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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement