you dont do glFlush in the SDL example,
that could be the problem.
btw: to the mail admin. Ive think some of my mail have
gotten stuck in your mailfilter, if so please just ignore them
please. theyre old news now anyway. thanx.
/Lomax of Probe
Lomax at lv-426.nu
http://lomax.lv-426.nu> ----- Original Message -----
From: troezen@iki.fi (Johannes Staffans)
To:
Sent: Saturday, February 17, 2001 10:27 PM
Subject: [SDL] GLUT works while SDL does not
I’ve ran into some problems using SDL 1.1.7+OpenGL under Windows… I got
this snippet of code that works when I’m using GLUT, but which only
displays
a blank screen when I replace GLUT with SDL. If anyone is interested in
looking at the minimal error-inducing program (actually an example from
the
red book), here are the two URLs:
http://www.iki.fi/~troezen/misc/drawf_sdl.cpp
http://www.iki.fi/~troezen/misc/drawf_glut.cpp
Something obvious might have slipped my mind… Anyway thanks.
Johannes Staffans
troezen at iki.fi
I’ve ran into some problems using SDL 1.1.7+OpenGL under Windows… I got
this snippet of code that works when I’m using GLUT, but which only displays
a blank screen when I replace GLUT with SDL. If anyone is interested in
looking at the minimal error-inducing program (actually an example from the
red book), here are the two URLs:
http://www.iki.fi/~troezen/misc/drawf_sdl.cpp
http://www.iki.fi/~troezen/misc/drawf_glut.cpp
Something obvious might have slipped my mind… Anyway thanks.
Johannes Staffans
@Johannes_Staffans
you dont do glFlush in the SDL example,
that could be the problem.
I tried… that’s unfortunately not it.
Johannes Staffans
@Johannes_Staffans
Johannes Staffans schrieb am 17 Feb 2001:
I’ve ran into some problems using SDL 1.1.7+OpenGL under Windows… I got
this snippet of code that works when I’m using GLUT, but which only displays
a blank screen when I replace GLUT with SDL. If anyone is interested in
looking at the minimal error-inducing program (actually an example from the
red book), here are the two URLs:
http://www.iki.fi/~troezen/misc/drawf_sdl.cpp
http://www.iki.fi/~troezen/misc/drawf_glut.cpp
Something obvious might have slipped my mind… Anyway thanks.
Yep. Add a call to InitGL(100, 100); after SDL_SetVideoMode();
- Andreas–
Check out my 3D lightcycle game: http://www.gltron.org
A 0.60 preview/beta for win32/mac is available NOW!
More than 100’000 Downloads of the last version (0.59)