[erlang-questions] Re: REF: Major rework of ESDL in progress (NON URGENT)

david.koch <>
Mon Nov 17 00:49:33 CET 2008


Thanks for the input, I was working from the archive
version, not the repository, so I haven't figured
much about sdl_image and sdl_ttf right now, was
just asking before going any further. You just
saved me a large amount of time ! Great...

I do not plan to work with WX as GUI, but mostly
want a try with GLAM at http://glam.sourceforge.net/
because relying on OpenGL for that kind of stuff
makes things more powerful and portable, usable for
games as well... And also less complicated with
SDI/MDI and all related stuff ^_^

I will try to add as many libs support as possible
to ESDL, even if it's not its main goal, but will
try to add DLL delayed loading so that until there
is no request to some libs, there will be no
dependency trouble at program startup :)

David KOCH

---------- Initial Header -----------

From      : "Klas Johansson" <>
To          : "" 
<>
Cc          : erlang-questions <>
Date      : Sun, 16 Nov 2008 22:47:43 +0100
Subject : Re: [erlang-questions] REF: Major rework of ESDL in 
progress (NON URGENT)

Hi David,

> Question before I go any further, should I also
> add more library support, such GLUT or the newest
> GLUX, GLEW, GLFW, sdl_image, sdl_mixer, sdl_ttf
> and all the companion libraries ? These MIGHT be
> of some needs somedays...

If you go about hacking away on SDL_image and SDL_ttf you'd want the
repository version, not the esdl-0.96.0626 download from the
sourceforge download pages since there's already support for 
SDL_image
(written to match 1.2.4) and SDL_ttf (2.0.7) in the repository.

SDL_image is now up at 1.2.7 although it seems as if no new 
functions
have been added to the API since 1.2.4 (I just had a quick look
though).  All of the 1.2.4 API is available through esdl, except
what's related to SDL_RWops and the IMG_SetError function.  There's 
an
example in the test directory if you're interested: test_glimg.erl.

Change log for SDL_image:
http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_image/CHANGES?
view=markup

SDL_ttf is now up at 2.0.10 although the only change since 2.0.7 
which
affects the API (again according to a quick glance; I may have 
missed
something) seems to be the addition of TTF_GlyphIsProvided().  All 
of
the 2.0.7 API is available through esdl, except what's related to
SDL_RWops (TTF_OpenFontRW and TTF_OpenFontIndexRW) and the
TTF_SetError function.  There are two examples in the test directory
that you might want to try: test_ttf.erl and test_glfont.erl.

Change log for SDL_ttf:
http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_ttf/CHANGES?
view=markup

That is, most of the work getting a 100% coverage of SDL_image and
SDL_ttf is related to the RWops stuff (which has to do with reading
fonts/images from memory instead of files).  Also,  note that 
SDL_ttf
and SDL_image are disabled by default for esdl, since they depend on
libraries not in the plain vanilla SDL packages. Enable them in the
Makefile (see the Readme for more information).

On a side note, wxerlang (http://sourceforge.net/projects/wxerlang/)
has built-in support for opengl canvases, should your personal 
project
require any buttons, menus or other widgets...


Cheers,
Klas



---------------------- ALICE N°1 de la RELATION CLIENT 2008*--------------------
Découvrez vite l'offre exclusive ALICE BOX! En cliquant ici http://abonnement.aliceadsl.fr Offre soumise à conditions.*Source : TNS SOFRES / BEARING POINT. Secteur Fournisseur d.Accès Internet





More information about the erlang-questions mailing list