Show a form in SDL

Hello all,

I'm programming in Windows XP. I have a console application whose

graphic stuff relays on SDL, and I would like to show a form. Is there an
"easy" way to do it without multithreading?!?
The idea is to show a form to track some objects of the application but
without loosing the viewport of the SDL. I’m stuck with it, because I don’t
know how to control the main loop. In a visual application the VCL controls
the graphic stuff, but in SDL it’s my code that does it.

Thank you!++++++++++++++++++++++++++++++++

ALBERT FERNANDEZ MARSAL

CIRSA INTERACTIVE CORP. SL

Analista senior y programador

mail: @Albert_Fernandez_Mar

++++++++++++++++++++++++++++++++

Albert Fern?ndez Marsal wrote:


The idea is to show a form to track some objects of the application
but without loosing the viewport of the SDL.

You could use a debugger for that…

I do not understand what you mean by a console application with graphic
stuff. I thought, by definition, a console (text) application had no graphic
stuff?

ChrisOn 9/14/05, Albert Fern?ndez Marsal wrote:

Hello all,
I’m programming in Windows XP. I have a console application whose
graphic stuff relays on SDL,


E-Mail: Chris Nystrom
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris

Yes (98% of the time) and no (2% of the time). Sometimes if you’re
tracking down a graphical bug, the debugger can change your timing,
doing it that way just doesn’t work, popping into the debugger either
makes time-based code meaningless or if you have no idea about where
in the timing things get whacky. You can set watch variables which
might help though.

I actually prefer having debug menus/debug text that can just print
over my visual context. I can help you with something like that if
you’re doing OpenGL (or you can check out the many examples on Nehe or
something like that.). I don’t use the 2D side, but you could probably
just print some text to the screen for debugging purposes.

Cheers.
CaseyOn 9/14/05, Simon Parzer <s_parz at yahoo.de> wrote:

Albert Fern?ndez Marsal wrote:


The idea is to show a form to track some objects of the application
but without loosing the viewport of the SDL.

You could use a debugger for that…

Nope. A console application is just a win32 application that links to some
extra libraries. It can do anything a regular win32 application can do.On September 14, 2005 09:58 am, Chris Nystrom wrote:

On 9/14/05, Albert Fern?ndez Marsal wrote:

Hello all,
I’m programming in Windows XP. I have a console application whose
graphic stuff relays on SDL,

I do not understand what you mean by a console application with graphic
stuff. I thought, by definition, a console (text) application had no
graphic stuff?

yes, that’s right. My application was at first a console app, but now I
would like to show a form. I can change and make a new visual application,
but the problem still remains: can I let the VCL control the main loop and,
at the same time, control the SDL Window loop? I think that using a timer is
not a good idea. The idea, imho, is to control, within the same loop, both
graphic windows: the form and the SDL window.++++++++++++++++++++++++++++++++
ALBERT FERNANDEZ MARSAL
CIRSA INTERACTIVE CORP. SL
Analista senior y programador
++++++++++++++++++++++++++++++++


De: sdl-bounces+afmarsal=cirsa.com at libsdl.org
[mailto:sdl-bounces+afmarsal=cirsa.com at libsdl.org] En nombre de Chris
Nystrom
Enviado el: mi?rcoles, 14 de septiembre de 2005 17:58
Para: A list for developers using the SDL library. (includes SDL-announce)
Asunto: Re: [SDL] Show a form in SDL

On 9/14/05, Albert Fern?ndez Marsal <@Albert_Fernandez_Mar> wrote:

    Hello all,
 
    I'm programming in Windows XP. I have a console application

whose graphic stuff relays on SDL,

I do not understand what you mean by a console application with graphic
stuff. I thought, by definition, a console (text) application had no graphic
stuff?

Chris


E-Mail: Chris Nystrom
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris

yes, it was my first solution, but the data structures have grown a
lot and using the debugger is not a solution. I have implemented a form that
shows all the strucuture tree of the objects shown in the SDL app, but I
don’t know how to show it when using a painting loop for controlling the
SDL.-----Mensaje original-----
De: sdl-bounces+afmarsal=cirsa.com at libsdl.org
[mailto:sdl-bounces+afmarsal=cirsa.com at libsdl.org] En nombre de Simon Parzer
Enviado el: mi?rcoles, 14 de septiembre de 2005 13:28
Para: sdl at libsdl.org
Asunto: [SDL] Re: Show a form in SDL

Albert Fern?ndez Marsal wrote:


The idea is to show a form to track some objects of the application
but without loosing the viewport of the SDL.

You could use a debugger for that…


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