Re: OpenGL development on FreeBSD

2004-08-31 Thread Henrik W Lund
Doug Poland wrote:
Hello,
I've got a friend that's a C++/OpenGL hacker.  He's got a nifty OpenGL
app that he wants to port to FreeBSD.  I've no experience with OpenGL
development on FBSD.  Are there any OpenGL developers out there that
can point me to FAQs or docs that are necessary to work in this
environment? 

Many TIA
- 
Regards,
Doug

Greetings!
Having hacked some OpenGL on FreeBSD myself, I found www.opengl.org to 
be helpful (the obvious one, perhaps), as well as NeHe's tutorials over 
on nehe.gamedev.net

Basically, any stuff that's valid for Linux, is also valid for FreeBSD. 
The OpenGL API is identical (and comes installed with X), the only thing 
that might be different is the placement of libraries and headers, but 
this is handled during compile-time anyways. The other thing is hardware 
acceleration. I'm fuzzy on this, but my impression is that this is 
somewhat non-existent on FreeBSD. The only exception quite possibly 
being the NVIDIA drivers.

If he's porting from Linux, my guess is that he's got a fairly easy job 
ahead of him. If he's porting from Windows, that's going to pose a lot 
more work. Also, he'll need to use one of the appropriate libraries 
(GLUT or SDL) unless he wants to code directly atop libX11 *shudder*.

Hope this helps!
-Henrik
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OpenGL development on FreeBSD

2004-08-31 Thread Miguel Mendez
On Tue, 31 Aug 2004 17:10:26 -0700
Henrik W Lund [EMAIL PROTECTED] wrote:

Hi,

 Having hacked some OpenGL on FreeBSD myself, I found www.opengl.org to
 
 be helpful (the obvious one, perhaps), as well as NeHe's tutorials
 over on nehe.gamedev.net

Yes, those tutorials are excellent. Kilgard's `OpenGL programming for
the X Window System' also makes a good start if you prefer dead tree
documentation, although the Motif stuff is not that useful these days,
but the basics remain the same.
 
 Basically, any stuff that's valid for Linux, is also valid for
 FreeBSD. The OpenGL API is identical (and comes installed with X), the
 only thing that might be different is the placement of libraries and
 headers, but this is handled during compile-time anyways. The other
 thing is hardware acceleration. I'm fuzzy on this, but my impression
 is that this is somewhat non-existent on FreeBSD. The only exception
 quite possibly being the NVIDIA drivers.

I'd say FreeBSD is almost on par with Linux with regards to 3D hardware
acceleration, the exception being high end ATi cards which only work
with ATi's closed source drivers. All cards supported by the DRI open
source drivers work fine in FreeBSD. I haven't noticed performance
difference between Arch Linux and FreeBSD 5.3 when it comes to OpenGL
apps. Ironically, my little SDL benchmarks performed better on the BSDs,
even when one of the CPUs was busy. Could be a scheduler side effect,
not sure.

 If he's porting from Linux, my guess is that he's got a fairly easy
 job ahead of him. If he's porting from Windows, that's going to pose a
 lot more work. Also, he'll need to use one of the appropriate
 libraries (GLUT or SDL) unless he wants to code directly atop libX11
 *shudder*.

All modern toolkits allow integration with OpenGL these days, be it SDL
or GTK+/Qt if you need something more feature rich. I see little reason
not to use them.

Just my $0.02
-- 
Miguel Mendez [EMAIL PROTECTED]
http://www.energyhq.es.eu.org
PGP Key: 0xDC8514F1
Note: All HTML and non-english mail goes to /dev/null


pgpLewL7pGmSI.pgp
Description: PGP signature


Re: OpenGL development on FreeBSD

2004-08-31 Thread Henrik W Lund
Miguel Mendez wrote:
On Tue, 31 Aug 2004 17:10:26 -0700
Henrik W Lund [EMAIL PROTECTED] wrote:
 


snip
All modern toolkits allow integration with OpenGL these days, be it SDL
or GTK+/Qt if you need something more feature rich. I see little reason
not to use them.
Just my $0.02
 

I'll most definitely keep that in mind. I remember from trying out GLUT 
that it is limited. SDL is what I've been using, but if QT and GTK+ also 
have support for OpenGL, well, that's grand! :-D

-Henrik
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]