Seems to me whenever this line gets run it crashes SDL (or deploys the
parachute…wish I had one of those)
SDL_EnterTextCenter( ft_chart, screen, 320, 320, 18, player_name );
My issue is I can’t find any documentation for SDL_EnterTextCenter or
anything like it. Is it even valid? What would I use instead of it?
Thanks,
Derek
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 484 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030518/3fdf23eb/attachment.bin
Seems to me whenever this line gets run it crashes SDL (or deploys the
parachute…wish I had one of those)
SDL_EnterTextCenter( ft_chart, screen, 320, 320, 18, player_name );
My issue is I can’t find any documentation for SDL_EnterTextCenter or
anything like it. Is it even valid? What would I use instead of it?
I’ve never heard of this function. It’s not in the core library.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Hum…it appears in the defs.h file included with this project:
#define SDL_EnterTextCenter( font, surface, posx, posy, len, buf )
SFont_Input2(surface,font,posx,posy,len,buf)
Of course I still don’t have any idea how to use it :p. In that case
what would you recommend I replace this with? (what it would do is draw
a little cursor on the screen and allow the player to enter their name
to put in a highscores file).
Thanks,
DerekOn Monday, May 19, 2003, at 02:48 PM, Sam Lantinga wrote:
Seems to me whenever this line gets run it crashes SDL (or deploys the
parachute…wish I had one of those)
SDL_EnterTextCenter( ft_chart, screen, 320, 320, 18, player_name );
My issue is I can’t find any documentation for SDL_EnterTextCenter or
anything like it. Is it even valid? What would I use instead of it?
I’ve never heard of this function. It’s not in the core library.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 1234 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030519/17d8336d/attachment.bin
Hum…it appears in the defs.h file included with this project:
#define SDL_EnterTextCenter( font, surface, posx, posy, len, buf )
SFont_Input2(surface,font,posx,posy,len,buf)
Where did you find this evil thing? I’d suggest you get rid of it
before it causes more trouble and confusion than it already has.
Always use the APIs of libraries directly, unless you have a really
good reason not to.
Of course I still don’t have any idea how to use it :p. In that
case what would you recommend I replace this with? (what it would
do is draw a little cursor on the screen and allow the player to
enter their name to put in a highscores file).
Well, you’ll need an initialized font for starters…
Go check out SFont documentation, examples or whatever there is. (I
think the code says it all; never looked further. It’s not much code
anyway.)
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Monday 19 May 2003 23.35, Derek Arndt wrote:
David Olofson wrote:
#define SDL_EnterTextCenter( font, surface, posx, posy, len, buf )
SFont_Input2(surface,font,posx,posy,len,buf)
Where did you find this evil thing? I’d suggest you get rid of it
before it causes more trouble and confusion than it already has.
Agreed. SDL_something names are reserved for SDL. Using them for another
library (or, worse, user code) is sick and wrong.
Always use the APIs of libraries directly, unless you have a really
good reason not to.
Hiding a library behind another layer of abtraction is often useful. See
SDL for example: much of SDL is simply a thin layer over a platform
dependent library.> On Monday 19 May 2003 23.35, Derek Arndt wrote:
–
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com