Multisampling in Mac OS X?

#ifdef GL_ARB_multisample, defined in OpenGL/glext.h

Richard SchreyerOn Dec 10, 2003, at 4:40 AM, Sam Lantinga wrote:

It’s defined in older versions of the code, so I assumed that the
version
would be updated. The API’s used for multisampling are not
available in
MacOS X 10.1 I’d deprecate 10.1, except I don’t have a later
version of
MacOS X. :slight_smile:

If it’ll get 10.1 deprecated, I’ll buy you a copy of Panther out of
icculus.org’s developer fund. :slight_smile:

Well, there’s money in the SDL developer fund. I should probably just
bite
the bullet and buy the next OSX release.

In the meantime, is there any way at compile time to see whether the
APIs
are supported?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

John Silicon (2003-12-06 10:39):

I don’t know enough about Eclipse to give you step by step instuctions, but
you need to tell it to link in the SDL and SDL_main librarys.
Since you mentioned something about MinGW, I’ll assume Eclipse uses MinGW’s
g++, so you might look through it’s configuration stuff for “-lmingw32”
(possibly without the “-l”) – which most IDE’s for MinGW seem to link in by
default. You’ll need to add “-lsdl” and “-lsdl_main” (again, possibly
without the “-l”'s, and you might experiment with seperating them with
commas, semi-colons, or spaces).

that might help, some friend told me to add -lsdl to the compiling
parameters.

i ll have to find out how to do that in managed make files within
eclipse, or i have to create a nonmanaged project,

what would an example make file look like (if comments in make files are
possible, short comments would be great so that i actually understand
what i ll be doing in future)?–
regards
ionas

here, I attached an example makefile that works for me.

i use msys/mingw like you do, i hope this helps (:> ----- Original Message -----

From: mail@jonas-hartmann.com (Jonas Hartmann)
To:
Sent: Sunday, December 07, 2003 6:20 AM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie

John Silicon (2003-12-06 10:39):

I don’t know enough about Eclipse to give you step by step instuctions,
but

you need to tell it to link in the SDL and SDL_main librarys.
Since you mentioned something about MinGW, I’ll assume Eclipse uses
MinGW’s

g++, so you might look through it’s configuration stuff for “-lmingw32”
(possibly without the “-l”) – which most IDE’s for MinGW seem to link
in by

default. You’ll need to add “-lsdl” and “-lsdl_main” (again, possibly
without the “-l”'s, and you might experiment with seperating them with
commas, semi-colons, or spaces).

that might help, some friend told me to add -lsdl to the compiling
parameters.

i ll have to find out how to do that in managed make files within
eclipse, or i have to create a nonmanaged project,

what would an example make file look like (if comments in make files are
possible, short comments would be great so that i actually understand
what i ll be doing in future)?


regards
ionas


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Makefile
Type: application/octet-stream
Size: 198 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031213/a13b6e9e/attachment.obj

Alan Wolfe (2003-12-13 10:03):

here, I attached an example makefile that works for me.

i use msys/mingw like you do, i hope this helps (:

thanks for your help!

it help a bit, still i get an error;
first of all i had to change the make file and add all and clean
sections. (without those sections it didnt run at all); further i added
a .exe to first: main.o because else it didnt find the target.

this is the makefile:---------------------
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)

all: first.exe

clean:
rm main.o first.exe

first.exe: main.o
g++ -o first.exe main.o ${SDL_CFLAGS} ${SDL_LDFLAGS}
main.o: main.cpp
g++ -c -o main.o main.cpp

this is the error:

make -k clean all
rm: cannot remove main.o': No such file or directory rm: cannot removefirst.exe’: No such file or directory
make: *** [clean] Error 1
rm main.o first.exe
g++ -c -o main.o main.cpp
g++ -o first.exe main.o
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL
-mwindows
D:/Applications/MSYS/mingw/bin/…/lib/gcc-lib/mingw32/3.2.3/…/…/…/libSDLmain.a(SDL_main.o.b)(.text+0x35a):
In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.

make is not run out of MSYS but out of Eclipse,
tomorrow i ll try running make out of msys (directly via command line)
maybe then it works fine.


regards
Jonas

The error happens because when you compile main.cpp, it doesn’t have the
correct #define for “main”=“SDL_main” – the CFLAGS should contain this, and
it looks like it does from the output of make. Try adding a ${SDL_CFLAGS}
to the main.cpp-compile line, so it looks like this:
g++ -c -o main.o main.cpp ${SDL_CFLAGS}

Good luck :slight_smile:

  • Silicon> ----- Original Message -----

From: jonashartmann@gmx.de (Jonas Hartmann)
To:
Sent: Sunday, December 14, 2003 10:00 AM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie

Alan Wolfe (2003-12-13 10:03):

here, I attached an example makefile that works for me.

i use msys/mingw like you do, i hope this helps (:

thanks for your help!

it help a bit, still i get an error;
first of all i had to change the make file and add all and clean
sections. (without those sections it didnt run at all); further i added
a .exe to first: main.o because else it didnt find the target.

this is the makefile:

SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)

all: first.exe

clean:
rm main.o first.exe

first.exe: main.o
g++ -o first.exe main.o ${SDL_CFLAGS} ${SDL_LDFLAGS}
main.o: main.cpp
g++ -c -o main.o main.cpp

this is the error:

make -k clean all
rm: cannot remove main.o': No such file or directory rm: cannot removefirst.exe’: No such file or directory
make: *** [clean] Error 1
rm main.o first.exe
g++ -c -o main.o main.cpp
g++ -o first.exe main.o
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL
-mwindows

D:/Applications/MSYS/mingw/bin/…/lib/gcc-lib/mingw32/3.2.3/…/…/…/libSDLm
ain.a(SDL_main.o.b)(.text+0x35a):

In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.

make is not run out of MSYS but out of Eclipse,
tomorrow i ll try running make out of msys (directly via command line)
maybe then it works fine.


regards
Jonas


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003

heya,

well this is probly obvious but the reason you get these errors:

rm: cannot remove main.o': No such file or directory rm: cannot removefirst.exe’: No such file or directory

is because the files arent there yet.

did you know you can just do make all or just make?

whats the -k doing in your make statement? maybe im a newb but not sure what
that does (:> ----- Original Message -----

From: jonashartmann@gmx.de (Jonas Hartmann)
To:
Sent: Sunday, December 14, 2003 9:00 AM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie

Alan Wolfe (2003-12-13 10:03):

here, I attached an example makefile that works for me.

i use msys/mingw like you do, i hope this helps (:

thanks for your help!

it help a bit, still i get an error;
first of all i had to change the make file and add all and clean
sections. (without those sections it didnt run at all); further i added
a .exe to first: main.o because else it didnt find the target.

this is the makefile:

SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)

all: first.exe

clean:
rm main.o first.exe

first.exe: main.o
g++ -o first.exe main.o ${SDL_CFLAGS} ${SDL_LDFLAGS}
main.o: main.cpp
g++ -c -o main.o main.cpp

this is the error:

make -k clean all
rm: cannot remove main.o': No such file or directory rm: cannot removefirst.exe’: No such file or directory
make: *** [clean] Error 1
rm main.o first.exe
g++ -c -o main.o main.cpp
g++ -o first.exe main.o
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL
-mwindows

D:/Applications/MSYS/mingw/bin/…/lib/gcc-lib/mingw32/3.2.3/…/…/…/libSDLm
ain.a(SDL_main.o.b)(.text+0x35a):

In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.

make is not run out of MSYS but out of Eclipse,
tomorrow i ll try running make out of msys (directly via command line)
maybe then it works fine.


regards
Jonas


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)

all: first.exe

clean:
rm main.o first.exe

first.exe: main.o
g++ -o first.exe main.o ${SDL_CFLAGS} ${SDL_LDFLAGS}

main.o: main.cpp
g++ -c -o main.o main.cpp ${SDL_CFLAGS}

still getting this error:
make -k clean all
rm main.o first.exe
rm: cannot remove first.exe': No such file or directory make: *** [clean] Error 1 g++ -c -o main.o main.cpp -I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main g++ -o first.exe main.o -I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main -L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL -mwindows D:/Applications/MSYS/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/../../../libSDLmain.a(SDL_main.o.b)(.text+0x35a): In functionconsole_main’:
/home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined
reference to SDL_main' make: *** [first.exe] Error 1 make: Targetall’ not remade because of errors.

why do you do:

make -k clean all

why not just:

make

or:

make all> ----- Original Message -----

From: jonashartmann@gmx.de (Jonas Hartmann)
To:
Sent: Sunday, December 14, 2003 1:50 PM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie

SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)

all: first.exe

clean:
rm main.o first.exe

first.exe: main.o
g++ -o first.exe main.o ${SDL_CFLAGS} ${SDL_LDFLAGS}

main.o: main.cpp
g++ -c -o main.o main.cpp ${SDL_CFLAGS}

still getting this error:
make -k clean all
rm main.o first.exe
rm: cannot remove `first.exe’: No such file or directory
make: *** [clean] Error 1
g++ -c -o main.o main.cpp
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
g++ -o first.exe main.o
-I/usr/local/cross-tools/i386-mingw32msvc/include/SDL -Dmain=SDL_main
-L/usr/local/cross-tools/i386-mingw32msvc/lib -lmingw32 -lSDLmain -lSDL
-mwindows

D:/Applications/MSYS/mingw/bin/…/lib/gcc-lib/mingw32/3.2.3/…/…/…/libSDLm
ain.a(SDL_main.o.b)(.text+0x35a):

In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Just wondering if there were any updates in the month or so since the
last update to this topic.

I’m still very much interested in hearing about any progress or what
not.

Thanks again!
derek.arndt

Just wondering if there was any word as to the progress of this?
It’d be nice having this feature restored again.

Thanks a bunch,
Derek Arndt

/*
http://www.derekarndt.com game development is just my forte
*/On Dec 10, 2003, at 12:13 PM, Richard Schreyer wrote:

#ifdef GL_ARB_multisample, defined in OpenGL/glext.h

Richard Schreyer

On Dec 10, 2003, at 4:40 AM, Sam Lantinga wrote:

It’s defined in older versions of the code, so I assumed that the
version
would be updated. The API’s used for multisampling are not
available in
MacOS X 10.1 I’d deprecate 10.1, except I don’t have a later
version of
MacOS X. :slight_smile:

If it’ll get 10.1 deprecated, I’ll buy you a copy of Panther out of
icculus.org’s developer fund. :slight_smile:

Well, there’s money in the SDL developer fund. I should probably just
bite
the bullet and buy the next OSX release.

In the meantime, is there any way at compile time to see whether the
APIs
are supported?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

#ifdef GL_ARB_multisample, defined in OpenGL/glext.h

Unfortunately, this is defined on MacOS 10.1, but the actual APIs for
picking a multisample context are not.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Just wondering if there was any word as to the progress of this?

We currently have no way at compile time to detect whether or not the
required API is available. Until we find a way, or until we drop MacOS X
10.1 support, this will be disabled by default.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

What about in this message from Richard dated back in December 2003?
Am I wrong in assuming this is tells us if it’s supported or not?

#ifdef GL_ARB_multisample, defined in OpenGL/glext.h

Richard SchreyerOn Dec 10, 2003, at 4:40 AM, Sam Lantinga wrote:

It’s defined in older versions of the code, so I assumed that the
version
would be updated. The API’s used for multisampling are not
available in
MacOS X 10.1 I’d deprecate 10.1, except I don’t have a later
version of
MacOS X. :slight_smile:

If it’ll get 10.1 deprecated, I’ll buy you a copy of Panther out of
icculus.org’s developer fund. :slight_smile:

Well, there’s money in the SDL developer fund. I should probably just
bite
the bullet and buy the next OSX release.

In the meantime, is there any way at compile time to see whether the
APIs
are supported?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 1011 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040220/8f4e9aea/attachment.bin

What about in this message from Richard dated back in December 2003?
Am I wrong in assuming this is tells us if it’s supported or not?

#ifdef GL_ARB_multisample, defined in OpenGL/glext.h

Yes. This is defined, but the API needed to get the context is not.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

The API necessary to get a ARB_MULTISAMPLE capable context is described
here:

http://developer.apple.com/documentation/GraphicsImaging/Conceptual/
OpenGL/chap3/chapter_3_section_5.html

Richard SchreyerOn Feb 20, 2004, at 4:22 PM, Sam Lantinga wrote:

What about in this message from Richard dated back in December 2003?
Am I wrong in assuming this is tells us if it’s supported or not?

#ifdef GL_ARB_multisample, defined in OpenGL/glext.h

Yes. This is defined, but the API needed to get the context is not.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl