hi,
- i read doc, but don’t understand how can i use PollEvent with UserEvent.
i understend how it work, but i need use PollEvent when key pressed, mouse
move, … and (!!!) when i can receive data from socket.
typedef struct{
Uint8 type; /* ORF_SOCKETEVENT /
int code; / ??? */
void data1; / must be pointer on func??? */
void data2; / NULL??? */
} SDL_UserEvent;
- how can i work with some windows, how i can create and draw in two, three
… windows in one time (different sizes, …). i try to create thread and
use SDL_SetVideoMode - but it dosn’t work.
thanks,
alteest
hi,
- i read doc, but don’t understand how can i use PollEvent with UserEvent.
i understend how it work, but i need use PollEvent when key pressed, mouse
move, … and (!!!) when i can receive data from socket.
typedef struct{
Uint8 type; /* ORF_SOCKETEVENT /
int code; / ??? */
void data1; / must be pointer on func??? */
void data2; / NULL??? */
} SDL_UserEvent;
The NET2 library (http://gameprogrammer.com/game.html) use user events
to report socket activity. Take a look at that to see how it is done.
- how can i work with some windows, how i can create and draw in two, three
… windows in one time (different sizes, …). i try to create thread and
use SDL_SetVideoMode - but it dosn’t work.
SDL only supports one window.
Bob PendletonOn Mon, 2003-06-23 at 00:26, Alexander A. Danilov wrote:
thanks,
alteest
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±----------------------------------+
- Bob Pendleton: independent writer +
- and programmer. +
- email: Bob at Pendleton.com +
±----------------------------------+