FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SDL_gfx
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Thu Aug 12, 2010 5:57 am    Post subject: SDL_gfx Reply with quote

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
View user's profile Send private message
ponce



Joined: 12 Nov 2009
Posts: 55

PostPosted: Thu Aug 12, 2010 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Thu Aug 12, 2010 7:34 am    Post subject: Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Fri Aug 13, 2010 2:22 am    Post subject: Reply with quote

I have no plans to add a SDL_gfx binding to Derelict.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Fri Aug 13, 2010 4:10 am    Post subject: Reply with quote

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
View user's profile Send private message
ponce



Joined: 12 Nov 2009
Posts: 55

PostPosted: Fri Aug 13, 2010 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Fri Aug 13, 2010 12:18 pm    Post subject: Reply with quote

Hey, I'm still here, and I've got the binding. It's for Derelict2, if that's what your using.
Back to top
View user's profile Send private message
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Fri Aug 13, 2010 12:23 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Fri Aug 13, 2010 12:34 pm    Post subject: Reply with quote

Okay, will have it up soon.

edit: See this thread for the links.
Back to top
View user's profile Send private message
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Fri Aug 13, 2010 1:50 pm    Post subject: Reply with quote

michaelp wrote:
Okay, will have it up soon.

edit: See this thread for the links.

Thanks a lot! Very Happy
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
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Fri Aug 13, 2010 2:13 pm    Post subject: Reply with quote

Are you using just dmd, or a tool such as rebuild?
Back to top
View user's profile Send private message
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Fri Aug 13, 2010 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Fri Aug 13, 2010 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
mutable



Joined: 22 Jun 2010
Posts: 87

PostPosted: Fri Aug 13, 2010 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Fri Aug 13, 2010 2:36 pm    Post subject: Reply with quote

Make sure your derelict import directory is in your path.

edit: Not in your path, your dmd import path.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group