Hamiral wrote:
> Victor Bazarov wrote:
>> Hamiral wrote:
>>> Rune Allnor wrote:
>>>> Hi all.
>>>>
>>>> I am messing around with some OpenGL code, and am
>>>> starting to get fed up with the hungarian notation.
>>>>
>>>> Are there any decent C++ wrappers out there?
>>>
>>> Why do you need a C++ wrapper for OpenGL ? There is no hungarian
>>> notation in OpenGL, so I'm quite curious where you found it...
>>
>> Perhaps Rune refers to the suffixes (4ub, 3f, etc.) on functions that
>> could/would be simply overloaded in C++...
>
> Oh ok.
> I'm so used to them that I just didn't notice they could pose problems
> to C++ programmers
They don't, really. No offense intended, but only the programmer who
*has nothing better to do* would think about introducing a wrapper just
to get rid of some suffixes in C API. So, if somebody at some point had
nothing to do, and made such a wrapper library, Rune might be able to
reuse that. I can see why - there is no sense in wasting time for that.
But herein lies the conundrum (and Rune understands that, I hope)
that if it's not worth Rune's time to create such code, then it is not
worth anybody else's. That's why thin wrappers like that just don't exist.
Bite the bullet, Rune. Either keep using OpenGL API as is (like we all
do) with all the unpleasant and annoying suffixes (that you need to get
right or it doesn't compile!), or write the wrapper yourself. Maybe if
you write one, I would reuse it... Nah. We're beyond using OpenGL or
DirectX, we have a whole abstracting framework for our stuff, which is
what I recommend you use as well.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask