CVS update (SDL 1.1)

The latest CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

Changes for SDL 1.1:

Added functions to initialize and cleanup specific SDL subsystems:
SDL_InitSubSystem() and SDL_QuitSubSystem()

Added user-defined event type:
typedef struct {
Uint8 type;
int code;
void *data1;
void *data2;
} SDL_UserEvent;
This structure is in the “user” member of an SDL_Event.

Added a function to push events into the event queue:
SDL_PushEvent()

Example of using the new SDL user-defined events:
{
SDL_Event event;

    event.type = SDL_USEREVENT;
    event.user.code = my_event_code;
    event.user.data1 = significant_data;
    event.user.data2 = 0;
    SDL_PushEvent(&event);

}

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

I did a CVS checkout of the SDL module on NT/Win32 using WinCVS and have a
couple of simple questions…

  1. Can someone fix the binary - ASCII problems with VisualC.zip? Am I the
    only one that gets a corrupted ZIP file from CVS? If so please let me know.

  2. Were exactly is the SDL OpenGL support? I downloaded the tutorials from
    (http://www.devolution.com/~slouken/SDL/opengl/intro.html) and they have
    VisualC++ projects with them, but the CVS repository version of SDL is
    missing things like SDL_GL_SwapBuffers and the #define for SDL_OPENGL.
    Clearly - someone out there has this all working on Win32 and NT. Can I have
    it to?

Thanks for any help you can offer! This is great stuff!!!> -----Original Message-----

From: Sam Lantinga [SMTP:slouken at devolution.com]
Sent: Friday, January 28, 2000 10:34 AM
To: sdl at lokigames.com
Subject: [SDL] CVS update (SDL 1.1)

The latest CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

Changes for SDL 1.1:

Added functions to initialize and cleanup specific SDL subsystems:
SDL_InitSubSystem() and SDL_QuitSubSystem()

Added user-defined event type:
typedef struct {
Uint8 type;
int code;
void *data1;
void *data2;
} SDL_UserEvent;
This structure is in the “user” member of an SDL_Event.

Added a function to push events into the event queue:
SDL_PushEvent()

Example of using the new SDL user-defined events:
{
SDL_Event event;

    event.type = SDL_USEREVENT;
    event.user.code = my_event_code;
    event.user.data1 = significant_data;
    event.user.data2 = 0;
    SDL_PushEvent(&event);

}

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

I did a CVS checkout of the SDL module on NT/Win32 using WinCVS and have a
couple of simple questions…

  1. Can someone fix the binary - ASCII problems with VisualC.zip? Am I the
    only one that gets a corrupted ZIP file from CVS? If so please let me know.

This should be fixed now, thanks!

  1. Were exactly is the SDL OpenGL support? I downloaded the tutorials from
    (http://www.devolution.com/~slouken/SDL/opengl/intro.html) and they have
    VisualC++ projects with them, but the CVS repository version of SDL is
    missing things like SDL_GL_SwapBuffers and the #define for SDL_OPENGL.
    Clearly - someone out there has this all working on Win32 and NT. Can I have
    it to?

Use the devel_1_1_0 tag to check the SDL 1.1 branch out of CVS:

cvs -d :pserver:guest at cvs.lokigames.com:/cvs checkout -r devel_1_1_0 SDL

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

OK - I am making some progress on all fronts. If I download the prepackaged
ZIP archive, both items are resolved. My assumption was that CVS is NEWER
then the prepackaged stuff, but it appears that this is wrong. I guess that
I don’t understand how this group actually works on code :frowning:

The tutorials are now compiling and running. This is very very VERY nice
work!> -----Original Message-----

From: Bill Radcliffe
Sent: Friday, January 28, 2000 12:39 PM
To: 'sdl at lokigames.com
Subject: RE: [SDL] CVS update (SDL 1.1)

I did a CVS checkout of the SDL module on NT/Win32 using WinCVS and have a
couple of simple questions…

  1. Can someone fix the binary - ASCII problems with VisualC.zip? Am I the
    only one that gets a corrupted ZIP file from CVS? If so please let me
    know.

  2. Were exactly is the SDL OpenGL support? I downloaded the tutorials
    from
    (http://www.devolution.com/~slouken/SDL/opengl/intro.html) and they have
    VisualC++ projects with them, but the CVS repository version of SDL is
    missing things like SDL_GL_SwapBuffers and the #define for SDL_OPENGL.
    Clearly - someone out there has this all working on Win32 and NT. Can I
    have
    it to?

Thanks for any help you can offer! This is great stuff!!!

-----Original Message-----
From: Sam Lantinga [SMTP:slouken at devolution.com]
Sent: Friday, January 28, 2000 10:34 AM
To: sdl at lokigames.com
Subject: [SDL] CVS update (SDL 1.1)

The latest CVS snapshot is now available:
http://www.devolution.com/~slouken/SDL/cvs.html

Changes for SDL 1.1:

Added functions to initialize and cleanup specific SDL subsystems:
SDL_InitSubSystem() and SDL_QuitSubSystem()

Added user-defined event type:
typedef struct {
Uint8 type;
int code;
void *data1;
void *data2;
} SDL_UserEvent;
This structure is in the “user” member of an SDL_Event.

Added a function to push events into the event queue:
SDL_PushEvent()

Example of using the new SDL user-defined events:
{
SDL_Event event;

    event.type = SDL_USEREVENT;
    event.user.code = my_event_code;
    event.user.data1 = significant_data;
    event.user.data2 = 0;
    SDL_PushEvent(&event);

}

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

OK - I am making some progress on all fronts. If I download the prepackaged
ZIP archive, both items are resolved. My assumption was that CVS is NEWER
then the prepackaged stuff, but it appears that this is wrong.

It is, but I try to keep the snapshots updated whenever something significant
happens.

The tutorials are now compiling and running. This is very very VERY nice
work!

Great! :slight_smile:
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Thanks Sam. The reason I was confused on CVS is that I did a "modules list"
and got back the following…

SDL SDL
mixer mixer
setup setup
smjpeg smjpeg
smpeg smpeg

I was checking out the SDL module, which is obviously an older stable
release.

I just got “lesson10” of the OpenGL tutorials running. WOW! This is soooo
cool :-)> -----Original Message-----

From: Sam Lantinga [SMTP:slouken at devolution.com]
Sent: Friday, January 28, 2000 2:10 PM
To: sdl at lokigames.com
Subject: Re: [SDL] CVS update (SDL 1.1)

I did a CVS checkout of the SDL module on NT/Win32 using WinCVS and have
a
couple of simple questions…

  1. Can someone fix the binary - ASCII problems with VisualC.zip? Am I
    the
    only one that gets a corrupted ZIP file from CVS? If so please let me
    know.

This should be fixed now, thanks!

  1. Were exactly is the SDL OpenGL support? I downloaded the tutorials
    from
    (http://www.devolution.com/~slouken/SDL/opengl/intro.html) and they have
    VisualC++ projects with them, but the CVS repository version of SDL is
    missing things like SDL_GL_SwapBuffers and the #define for SDL_OPENGL.
    Clearly - someone out there has this all working on Win32 and NT. Can I
    have
    it to?

Use the devel_1_1_0 tag to check the SDL 1.1 branch out of CVS:

cvs -d :pserver:guest at cvs.lokigames.com:/cvs checkout -r devel_1_1_0 SDL

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Thanks Sam. The reason I was confused on CVS is that I did a "modules list"
and got back the following…

SDL SDL
mixer mixer
setup setup
smjpeg smjpeg
smpeg smpeg

I was checking out the SDL module, which is obviously an older stable
release.

Yes, the development branch is a tag and doesn’t show up separately.

I just got “lesson10” of the OpenGL tutorials running. WOW! This is soooo
cool :slight_smile:

grin

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

got 1 error compiling, very quick fix.
in file k:\SDL-1.1\src\joystick\SDL_joystick.c, line 107, the ‘.’ should be
’->’ here:
if ( index == SDL_joysticks[i]->index ) {
all clean otherwise. the HAVE_OPENGL def problem with the wednsdays build
is gone, and the new workspace & projects for the win32 tests are spiffy.
thanks!

-Lucas

got 1 error compiling, very quick fix.
in file k:\SDL-1.1\src\joystick\SDL_joystick.c, line 107, the ‘.’ should be
’->’ here:
if ( index == SDL_joysticks[i]->index ) {
all clean otherwise. the HAVE_OPENGL def problem with the wednsdays build
is gone, and the new workspace & projects for the win32 tests are spiffy.
thanks!

It’s already fixed.

Thanks!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec