Sdltest

I was looking at SDL test applications and I saw that they all use
SDLTest* functions to initialize and such things. Is this the standard
way to do things in SDL 2 and the one I should use for my projects?–
Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible

Tests are tests, they use a test harness to cut down on boilerplate code.
Not relevant unless you’re doing something that resembles the test
suite in building tens of executables at once that all use the same
libraries

I don’t think anything changed from SDL 1.2 in that regard - just one
more function to call. SDL_Init, SDL_CreateWindow, then get a renderer
or GL context and off you go.On Mon, Jan 28, 2013 at 5:33 PM, <luo_hei at yahoo.es> wrote:

I was looking at SDL test applications and I saw that they all use SDLTest*
functions to initialize and such things. Is this the standard way to do
things in SDL 2 and the one I should use for my projects?

./lxnt

El 01/28/2013 01:56 PM, Alexander Sabourenkov escribi?:> On Mon, Jan 28, 2013 at 5:33 PM, <@Roger_D_Vargas> wrote:

I was looking at SDL test applications and I saw that they all use SDLTest*
functions to initialize and such things. Is this the standard way to do
things in SDL 2 and the one I should use for my projects?

Tests are tests, they use a test harness to cut down on boilerplate code.
Not relevant unless you’re doing something that resembles the test
suite in building tens of executables at once that all use the same
libraries

I don’t think anything changed from SDL 1.2 in that regard - just one
more function to call. SDL_Init, SDL_CreateWindow, then get a renderer
or GL context and off you go.

Indeed, my mistake was that I tried to use the tests as some sort of
guide (I dont hav einternet at home and I thought they would make a good
sample). today I checked the docs in the site and saw the right way to
do it.


Roger D. Vargas
Using Gentoo Linux 2010
La unica forma de encontrar los limites de lo posible es yendo mas
alla de ellos, hacia lo imposible