View previous topic :: View next topic |
Author |
Message |
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Thu Aug 12, 2010 5:57 am Post subject: SDL_gfx |
|
|
Though I have already searched the forum and also have found some subjects in addition, but nowhere stood, when SDL_gfx is taken up, finally, officially in Derelict. Every unofficial enlargement it was written is not topical any more or the continuing links do not exist.
Roation is a need and so I would know with pleasure whether and when SDL_gfx is added to Derelict or how I could use rotation, instead, with Derelict and SDL.
edit:
My last hope was this, but, as i said before, the links do not exist any more... |
|
Back to top |
|
|
ponce
Joined: 12 Nov 2009 Posts: 55
|
Posted: Thu Aug 12, 2010 7:27 am Post subject: |
|
|
Did you try to contact the author ?
It shouldn't be that hard to update the existing work to a working state. _________________ @p0unce | gamesfrommars |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Thu Aug 12, 2010 7:34 am Post subject: |
|
|
ponce wrote: | Did you try to contact the author ?
It shouldn't be that hard to update the existing work to a working state. |
No, because the author only 3 Posts has written and was not on-line long any more. I thought only, somebody would already have given the trouble to itself to translate SDL_gfx in D. At least, some plays are written already in D and there a rotation feels well however, thus as indispensably. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Fri Aug 13, 2010 4:10 am Post subject: |
|
|
aldacron wrote: | I have no plans to add a SDL_gfx binding to Derelict. |
So every user of Derelict which wants to (what is also completely normal) allow his spirit to rotate, must write even a Binding what either adds unofficially SDL_gfx to Derelict, or have to fall back to openGL?
This is strange , but ok, thanks for reply. |
|
Back to top |
|
|
ponce
Joined: 12 Nov 2009 Posts: 55
|
Posted: Fri Aug 13, 2010 12:04 pm Post subject: |
|
|
If you already use OpenGL, you probably don't need SDL_gfx.
If not, well, consider if using OpenGL is an option. The rendering will be way faster. Else you may aswell code a rotozoomer. Or find out who michaelp is and drop him an e-mail.
Aldacron cannot support all existing libraries on his own. He did Derelict for free, and this is already great. _________________ @p0unce | gamesfrommars |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Fri Aug 13, 2010 12:18 pm Post subject: |
|
|
Hey, I'm still here, and I've got the binding. It's for Derelict2, if that's what your using. |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Fri Aug 13, 2010 12:23 pm Post subject: |
|
|
michaelp wrote: | Hey, I'm still here, and I've got the binding. It's for Derelict2, if that's what your using. | Yes, that is what i use. Can you give me the binding? This would be very nice. |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Fri Aug 13, 2010 12:34 pm Post subject: |
|
|
Okay, will have it up soon.
edit: See this thread for the links. |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Fri Aug 13, 2010 1:50 pm Post subject: |
|
|
michaelp wrote: | Okay, will have it up soon.
edit: See this thread for the links. |
Thanks a lot!
But now i need the lib for sdl_gfx or the .dll file, where can i get it?
edit:
i think i need the .lib file, because i get this errors:
Quote: | Compiling: hello.d
Linking console executable: bin\Debug\Asteroids.exe
OPTLINK (R) for Win32 Release 8.00.2
Copyright (C) Digital Mars 1989-2009 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _D8derelict3sdl6sdlgfx12__ModuleInfoZ
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _filledEllipseRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _polygonRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _filledPolygonRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _pixelRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _lineRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _trigonRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _filledTrigonRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _rectangleRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _boxRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _ellipseRGBA
obj\Debug\hello.obj(hello)
Error 42: Symbol Undefined _D8derelict3sdl6sdlgfx6SDLgfxC8derelict3sdl6sdlgfx12SDLgfxLoader
--- errorlevel 12 |
|
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Fri Aug 13, 2010 2:13 pm Post subject: |
|
|
Are you using just dmd, or a tool such as rebuild? |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Fri Aug 13, 2010 2:17 pm Post subject: |
|
|
michaelp wrote: | Are you using just dmd, or a tool such as rebuild? | I use dmd2 and build my code in code::blocks. But the other derelict files i build with dsss, this have created the .lib files for the other bindings, like DerelictSDL.lib. |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Fri Aug 13, 2010 2:20 pm Post subject: |
|
|
Try compiling the files into a lib by:
Code: | dmd sdlgfx.d sdlgfxfont.d -c -lib |
Place that in your lib folder, and link to the lib you created. |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Fri Aug 13, 2010 2:29 pm Post subject: |
|
|
michaelp wrote: | Try compiling the files into a lib by:
Code: | dmd sdlgfx.d sdlgfxfont.d -c -lib |
Place that in your lib folder, and link to the lib you created. |
This comes
Quote: | C:\D\dmd2\src\ext\derelict\sdl>dmd sdlgfx.d sdlgfxfont.d -c -lib
sdlgfx.d(11): Error: module loader is in file 'derelict\util\loader.d' which cannot be read
import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos
import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import |
|
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Fri Aug 13, 2010 2:36 pm Post subject: |
|
|
Make sure your derelict import directory is in your path.
edit: Not in your path, your dmd import path. |
|
Back to top |
|
|
|