SDL and Glut?

I’m currently learning SDL and openGL, and am just curious whether we can
use Glut and SDL at the same time. I understand that both have an event
loop which I do not think can co-exist with each other.

The reason is that I wanted to use Glut’s simple shape functions
(glutSolidCone, glutSolidSphere, etc). but not the GlutMainLoop (I’d rather
deal with SDL’s event loop which was much easier to understand and use).

Thanks, guys. It’s a pleasure reading this newsgroup and the discussion that
goes around.

I’ve often stated that the glut primatives should be recreated as a simple
addon for SDL and be accompanied by a document entitled “The Redbook for
SDL” describing … how to rewrite the redbook examples for SDL. =)

Of course, the name of this addon simply must be SDL_teapot!On Fri, Oct 25, 2002 at 12:51:43AM -0700, asv wrote:

I’m currently learning SDL and openGL, and am just curious whether we can
use Glut and SDL at the same time. I understand that both have an event
loop which I do not think can co-exist with each other.

The reason is that I wanted to use Glut’s simple shape functions
(glutSolidCone, glutSolidSphere, etc). but not the GlutMainLoop (I’d rather
deal with SDL’s event loop which was much easier to understand and use).

Thanks, guys. It’s a pleasure reading this newsgroup and the discussion that
goes around.


Joseph Carter Available in cherry and grape

“…It was a lot faster than I thought it was going to be, much faster
than NT. If further speed increases are done to the server for the final
release, Oracle is going to be able to wipe their ass with SQL SERVER and
hand it back to M$ while the Oracle admins … migrate their databases
over to Linux!”

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021025/52fcfc17/attachment.pgp

I’m currently learning SDL and openGL, and am just curious whether we can
use Glut and SDL at the same time. I understand that both have an event
loop which I do not think can co-exist with each other.

The reason is that I wanted to use Glut’s simple shape functions
(glutSolidCone, glutSolidSphere, etc). but not the GlutMainLoop (I’d rather
deal with SDL’s event loop which was much easier to understand and use).

Thanks, guys. It’s a pleasure reading this newsgroup and the discussion that
goes around.

I’ve often stated that the glut primatives should be recreated as a simple
addon for SDL and be accompanied by a document entitled “The Redbook for
SDL” describing … how to rewrite the redbook examples for SDL. =)

I’ve often stated that you’re the perfect person to write such a project. =)

Of course, the name of this addon simply must be SDL_teapot!

Of course! grin
-Sam Lantinga, Software Engineer, Blizzard Entertainment> On Fri, Oct 25, 2002 at 12:51:43AM -0700, asv wrote:

Of course, the name of this addon simply must be SDL_teapot!

I’ll volunteer project space at icculus.org if and only if you call it
SDL_teapot. It’s a mandatory requirement. :slight_smile:

–ryan.

I don’t even have time most days to read my email, let alone write a
library… =(

(Sounds like someone else I know, eh?)On Fri, Oct 25, 2002 at 01:29:48AM -0700, Sam Lantinga wrote:

I’ve often stated that the glut primatives should be recreated as a simple
addon for SDL and be accompanied by a document entitled “The Redbook for
SDL” describing … how to rewrite the redbook examples for SDL. =)

I’ve often stated that you’re the perfect person to write such a project. =)


Joseph Carter Hey, that’s MY freak show!

Damn, every time I spawn, qf-client-x11 locks hard
Don’t die?
good incentive.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021025/84ba3580/attachment.pgp

I’m currently learning SDL and openGL, and am just curious whether we can
use Glut and SDL at the same time. I understand that both have an event
loop which I do not think can co-exist with each other.

The reason is that I wanted to use Glut’s simple shape functions
(glutSolidCone, glutSolidSphere, etc). but not the GlutMainLoop (I’d rather
deal with SDL’s event loop which was much easier to understand and use).

Thanks, guys. It’s a pleasure reading this newsgroup and the discussion that
goes around.

I’ve often stated that the glut primatives should be recreated as a simple
addon for SDL and be accompanied by a document entitled “The Redbook for
SDL” describing … how to rewrite the redbook examples for SDL. =)

Of course, the name of this addon simply must be SDL_teapot!

For those of you who are new to computer graphics, let me explain: The
Utah teapot, that teapot you see used as and example in every textbook
on the subject and in so many demos, is one of the very first complex 3D
data sets every created. It was created in 1974 by Martin Newell while
he was at the University of Utah. It was made available to other
researchers over the ARPANET and quickly spread all over the world.
Everyone needed a complex 3D model, but know one wanted to spend the
time and money to create one.

(Back in those days building a 3D data set was a major piece of work. No
3D modeling software. It took a government grant to buy a frame buffer.
And, a 1 MIP computer with 1 meg of RAM had a price in the millions of
US dollars. Which would be four to five million of todays dollars when
you adjust for inflation. It is hard to remember these days when SDRAM
is selling for 10 cents a megabyte and desktop PCs provide 100s of MIPs
for only a few hundred dollars, how few people had access to computers
less than 30 years ago.)

For more information on the teapot go to: http://www.sjbaker.org/teapot/

I was an undergraduate computer science major at the UofU at the time
this was all going on. The only contact I had with them was as teachers
and listening to them jam at 2 or 3 a.m.

	Bob PendletonOn Fri, 2002-10-25 at 03:28, Joseph Carter wrote:

On Fri, Oct 25, 2002 at 12:51:43AM -0700, asv wrote:


Joseph Carter Available in cherry and grape

“…It was a lot faster than I thought it was going to be, much faster
than NT. If further speed increases are done to the server for the final
release, Oracle is going to be able to wipe their ass with SQL SERVER and
hand it back to M$ while the Oracle admins … migrate their databases
over to Linux!”


±-----------------------------------+

I think most of the code for SDL_teapot could be borrowed from the freeglut
project http://freeglut.sourceforge.net . They have reimplemented most
(almost all) of GLUT under the X-Consortium license.
All that would need to be done is to “SDL-ify” the pieces we want, and toss
the event handling stuff.On Friday 25 October 2002 04:28, Joseph Carter wrote:

I’ve often stated that the glut primatives should be recreated as a simple
addon for SDL and be accompanied by a document entitled “The Redbook for
SDL” describing … how to rewrite the redbook examples for SDL. =)


Max Watson <@Max_Watson>

I think most of the code for SDL_teapot could be borrowed from the freeglut
project http://freeglut.sourceforge.net . They have reimplemented most
(almost all) of GLUT under the X-Consortium license.
All that would need to be done is to “SDL-ify” the pieces we want, and toss
the event handling stuff.

Well, my hosting offer still stands. If someone seriously wants to do
this, fire me an email off-list and we’ll talk about cvs/web/email/etc.

–ryan.

Just in case nobody answered your question directly
(and while we’re all waiting for SDL_teapot), I’m
pretty certain you can use the glut shapes in SDL. I
swear I’ve done it before (though my memory is a bit
hazy). All you have to do is call the shape functions
in your code after you setup SDL/OpenGL. (And remember
to #include glut.h and link to it.) I don’t think you
have to bother doing any glut initialization. The
shape functions just work without any fuss. (I haven’t
tried mixing Glut and SDL events or window stuff
though.)> I’m currently learning SDL and openGL, and am just

curious whether we can use Glut and SDL at the same
time. I understand that both have an event loop
which I do not think can co-exist with each other.

The reason is that I wanted to use Glut’s simple
shape functions (glutSolidCone, glutSolidSphere,
etc). but not the GlutMainLoop (I’d rather deal
with SDL’s event loop which was much easier to
understand and use).


Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

yep. as to my experience, using glut and sdl at the same time is no prob as
long as you neither call the glut-window-setup nor the glut message-loop
stuff.

Eric Wing wrote:> Just in case nobody answered your question directly

(and while we’re all waiting for SDL_teapot), I’m
pretty certain you can use the glut shapes in SDL. I
swear I’ve done it before (though my memory is a bit
hazy). All you have to do is call the shape functions
in your code after you setup SDL/OpenGL. (And remember
to #include glut.h and link to it.) I don’t think you
have to bother doing any glut initialization. The
shape functions just work without any fuss. (I haven’t
tried mixing Glut and SDL events or window stuff
though.)

I’m currently learning SDL and openGL, and am just
curious whether we can use Glut and SDL at the same
time. I understand that both have an event loop
which I do not think can co-exist with each other.

The reason is that I wanted to use Glut’s simple
shape functions (glutSolidCone, glutSolidSphere,
etc). but not the GlutMainLoop (I’d rather deal
with SDL’s event loop which was much easier to
understand and use).


Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/


Marix eMonkey 2002

Suggestions for the SDL_Logo:
http://www.8ung.at/cyberpunxnetwork/SDL_Logo

personal webpage:
http://www.marix.madsite.de