SDL_gfx.dll

I’m on Windows 2000, using msys and gcc 3.2.3, and I’m trying to build
a proper version of SDL_gfx so I can use its rotozoomer functions. I
used the normal configure, make, etc. way of building the source, but
only the library file was created, there was no DLL. I tried
statically linking the library file, but the linker asks me for the
"_imp__rotozoomSurfaceXY" function. What’s the correct way to go
about this?

Josh

I’m on Windows 2000, using msys and gcc 3.2.3, and I’m trying to build
a proper version of SDL_gfx so I can use its rotozoomer functions. I
used the normal configure, make, etc. way of building the source, but
only the library file was created, there was no DLL. I tried
statically linking the library file, but the linker asks me for the
"_imp__rotozoomSurfaceXY" function. What’s the correct way to go
about this?

I have no clue how to make the DLL.

If you don’t mind linking statically, edit SDL_gfx.h and remove all
instances of DLLSPEC.

– JoshOn 8/31/05, Josh Matthews wrote:

Josh


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

Joshua Oreman wrote:

I have no clue how to make the DLL.

If you don’t mind linking statically, edit SDL_gfx.h and remove all
instances of DLLSPEC.

Where is this SDL_gfx.h file? SDL_gfx 2.0.13 has no file by that name.
Furthermore, grepping the entire source for DLLSPEC didn’t turn up anything.

(I have been having the same “imp_” problem as the original poster.)

I assume the other Joshua meant editing the SDL_gfx headers, but just
mistyped. I tried it with SDL_rotozoom.h, no dice though. Now I just
get problems with “rotozoomSurfaceXY” without the imp_ prefix. Any
hints?On 8/31/05, Catatonic Porpoise wrote:

Joshua Oreman wrote:

I have no clue how to make the DLL.

If you don’t mind linking statically, edit SDL_gfx.h and remove all
instances of DLLSPEC.

Where is this SDL_gfx.h file? SDL_gfx 2.0.13 has no file by that name.
Furthermore, grepping the entire source for DLLSPEC didn’t turn up anything.

(I have been having the same “imp_” problem as the original poster.)


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


Cheers,
Josh

Here’s the Makefile that I used. It is fairly useful as a template for
other projects that don’t build dll’s by default in mingw/msys. You
will have to tweak the prefix and flags to match your system.

  • brian kropf

Josh Matthews wrote:

I’m on Windows 2000, using msys and gcc 3.2.3, and I’m trying to build
a proper version of SDL_gfx so I can use its rotozoomer functions. I
used the normal configure, make, etc. way of building the source, but
only the library file was created, there was no DLL. I tried
statically linking the library file, but the linker asks me for the
"_imp__rotozoomSurfaceXY" function. What’s the correct way to go
about this?

Josh


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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: Makefile
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050831/da0aeb48/attachment.asc

Joshua Oreman wrote:

[ . . . ]
Where is this SDL_gfx.h file? SDL_gfx 2.0.13 has no file by that name.
Furthermore, grepping the entire source for DLLSPEC didn’t turn up anything.

Oops. That’s what happens when I try to give fixes from memory :slight_smile:

It’s in all the headers, but the one I was referring to was
SDL_gfxPrimitives.h. And it’s DLLINTERFACE. Sorry about that.

– JoshOn 8/31/05, Catatonic Porpoise wrote:

(I have been having the same “imp_” problem as the original poster.)


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

Ok, thank you very much everyone, and especially Brian. It worked
like a charm :)On 9/1/05, Joshua Oreman wrote:

On 8/31/05, Catatonic Porpoise wrote:

Joshua Oreman wrote:

[ . . . ]
Where is this SDL_gfx.h file? SDL_gfx 2.0.13 has no file by that name.
Furthermore, grepping the entire source for DLLSPEC didn’t turn up anything.

Oops. That’s what happens when I try to give fixes from memory :slight_smile:

It’s in all the headers, but the one I was referring to was
SDL_gfxPrimitives.h. And it’s DLLINTERFACE. Sorry about that.

– Josh

(I have been having the same “imp_” problem as the original poster.)


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


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


Cheers,
Josh

Speaking of SDL_gfx and in particular, the rotozoom functions…
I was playing with zooming(actually, de-zooming, scaling down) a picture(a
circular button), with the smoothing effect on,and it looked a lot worse
than I expected when it was reduced from about 200x200 pixels to about
20x20pixels. (I reduced the same image file to those proportions in a
seperate grahpics editing program using anti-aliasing, and the results were
much better) When scaling images up, the SMOOTHING_ON effect was good. But
it seemed to make no difference when scaling down, as though the zoom
function only actually used it if scaling a surface into a larger one…
When I resized it in my graphics program(this time turning anti-aliasing
off, to stretch/truncate method) , sure enough, it looked just the same as
the image scaled down by rotozoom. What can I do to implement the
anti-aliasing in rotozoom when I want an image scaled down? Anyone?

Or alternatively, can someone point me to some good code for doing the same
thing? (I only need scaling, not rotation…) Thanks,
-Dave> ----- Original Message -----

From: mrlachatte@gmail.com (Josh Matthews)
To: "A list for developers using the SDL library. (includes SDL-announce)"

Sent: Saturday, September 03, 2005 7:28 PM
Subject: Re: [SDL] SDL_gfx.dll

Ok, thank you very much everyone, and especially Brian. It worked
like a charm :slight_smile:

On 9/1/05, Joshua Oreman wrote:

On 8/31/05, Catatonic Porpoise wrote:

Joshua Oreman wrote:

[ . . . ]
Where is this SDL_gfx.h file? SDL_gfx 2.0.13 has no file by that name.
Furthermore, grepping the entire source for DLLSPEC didn’t turn up
anything.

Oops. That’s what happens when I try to give fixes from memory :slight_smile:

It’s in all the headers, but the one I was referring to was
SDL_gfxPrimitives.h. And it’s DLLINTERFACE. Sorry about that.

– Josh

(I have been having the same “imp_” problem as the original poster.)


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


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


Cheers,
Josh


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