bilsch01 | 27 Aug 08:17 2015
Picon
Picon

Keyboard inputs work fine with Ubuntu, problems with Win7

On a Ubuntu system I wrote a C program that uses SDL for keyboard inputs and graphics. The program runs flawlessly on the Ubuntu system. Now I want to convert it to run on my Win7 system. The hardware is identical for either system (it's a dual booting Dell laptop). I have MinGW and MSYS installed on my Win7 system for the purpose of converting and running my program. The MSYS provides GNU-like command line and scripting for building and running the program while booted up in Win7.

The resulting (windows) program runs, but without important features working properly. The program starts by plotting a parametric graph for 10,000 points, then swithces to plotting a different graph for 10,000 points and so on. . . accomplished by a 'while' loop and automatic random selection of 12 different graph parameters. That part works fine. Within the loop there is SDL code that listens for keyboard inputs. The keyboard inputs interrupt the plotting and perform the task requested by the key hit. The problems are: none of the keyboard inputs are recognized unless I start and then close a second program (such as windows Notepad) while the graphics program is running. Then new keyboard inputs will be acted on - though in some cases the wrong task is performed for the key hit.

I tried changing the flavors of .dll files and header files to see if that might help, but no luck. The proper setup uses all MinGW specific files, all the same bit width (32 or 64). It has been suggested I might need a program called a 'wrapper' to get the keyboard recognized properly by this 'MinGW-flavored Win7 system. Does anybody here know about same or similar problems, or about the possibility of a 'wrapper' program?
TIA Bill S.
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
bilsch01 | 27 Aug 08:17 2015
Picon
Picon

Keyboard inputs work fine with Ubuntu, problems with Win7

On a Ubuntu system I wrote a C program that uses SDL for keyboard inputs and graphics. The program runs flawlessly on the Ubuntu system. Now I want to convert it to run on my Win7 system. The hardware is identical for either system (it's a dual booting Dell laptop). I have MinGW and MSYS installed on my Win7 system for the purpose of converting and running my program. The MSYS provides GNU-like command line and scripting for building and running the program while booted up in Win7.

The resulting (windows) program runs, but without important features working properly. The program starts by plotting a parametric graph for 10,000 points, then swithces to plotting a different graph for 10,000 points and so on. . . accomplished by a 'while' loop and automatic random selection of 12 different graph parameters. That part works fine. Within the loop there is SDL code that listens for keyboard inputs. The keyboard inputs interrupt the plotting and perform the task requested by the key hit. The problems are: none of the keyboard inputs are recognized unless I start and then close a second program (such as windows Notepad) while the graphics program is running. Then new keyboard inputs will be acted on - though in some cases the wrong task is performed for the key hit.

I tried changing the flavors of .dll files and header files to see if that might help, but no luck. The proper setup uses all MinGW specific files, all the same bit width (32 or 64). It has been suggested I might need a program called a 'wrapper' to get the keyboard recognized properly by this 'MinGW-flavored Win7 system. Does anybody here know about same or similar problems, or about the possibility of a 'wrapper' program?
TIA Bill S.
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Raymond Jennings | 27 Aug 06:14 2015
Picon

alpha blending in software renderer doesn't work.

Back when I used SDL_BlitScaled, it could handle alpha blending just fine.

So does SDL_RenderCopyEx when I'm using a hardware renderer.

However, SDL_RenderCopyEx on a software renderer only works if the source texture doesn't have an alpha channel.  Otherwise NOTHING gets drawn at all.

SDL version: 2.0.3

BTW...where's the best place to report bugs?  On the mailing list or on bugzilla?
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
D B | 27 Aug 04:58 2015
Picon

SDL2 and GLES 1 on the desktop

Hi,

I had converted (or so I thought) my game (Bitfighter) to use GLES 1,
the subset of OpenGL 1 that it has traditionally used.  I know it is
old and outdated and we have great plans to add an abstraction layer
for GLES 2.  But in the meantime, I'd like to get GLES 1 to properly
work - apparently it doesn't work on some devices like RPi and ODROID,
and it just shows a black screen.  It otherwise compiles just find
with SDL2.

In order to debug this, I've been compiling and linking the game with
SDL2 and libGLESv1_CM on my desktop Linux system (openSUSE 13.2
x86_64), which is part of the Mesa project providing GLES1 support on
the desktop.  I launch the game using the standard SDL_CreateWindow()
and SDL_GL_CreateContext() calls.  Doing this, even when linking to
the GLES1 libraries results in a glGetString() version of "3.0 Mesa
10.3.7" and the game shows a black screen.

I've traced the black screen down to glOrtho not working with the GL
context I have.  Figuring I don't have an ES context I added this code
to explicitly try and grab one (before window creation):

   SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
   SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
   SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);

But using this results in an SDL error of "Could not create GL context".

Is there a way to get a proper GLES 1 context on my desktop system so
I can further debug?

Thanks!
David
Owen Alanzo Hogarth | 26 Aug 21:06 2015
Picon

SDL Android assistance

Hi

I am trying to edit the SDLActivity to run inside of a wallpaperservice and wallpaperservice.Engine

What i've done so far was remove the code about key input since that won't be needed while running as a livewallpaper.

I moved all the code from the SDLActivity to the SDLWallpaperService

I kept the SDLSurface class in tact, so most of the editing was done to the main class to remove some functions that aren't necessary.

I am running into some issues though. When I try to call SDLMain to launch my SDL application, the code gets stuck in a loop where it keeps calling nativequit and I am unsure why.

This is the entire code that I've edited: http://pastebin.com/hpGnhRWR
There's the Log output at the bottom.

If anyone has a good amount of experience with android they could help me sort this out.

I have read the sdl livewallpaper code from around 2011 but it seems a lot has changed with sdl between then and now. I have also created similar live wallpapers where I did something similar just w/o these threads.

Anyone with SDL2 android experience can offer some tips?
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Frederik Himpe | 26 Aug 20:02 2015
Picon

hg web interface: raw patch download fails

Hello,

It looks like getting a patch in raw format from the hg web interface 
fails: instead of providing the patch, you just get the HTML page with 
the diff instead.

Example URL: http://hg.libsdl.org/SDL/raw-rev/91ad7b43317a

This is causing this problem:
https://github.com/Homebrew/homebrew/issues/4329

--

-- 
Frederik Himpe
AntTheAlchemist | 26 Aug 15:10 2015
Picon

Re: Android Asset Management with SDL2

Does FreeType have a FT_New_Face_From_Memory(), or something? A good library shouldn't restrict you to only using file names as parameters. It should offer loading from a stream, or from memory.

I opted to go with LodePNG for images. I load the file into memory using SDL_RWops and there's a lodepng_decode32() which takes a pointer to memory as source. You can override PNG's internal memory handlers to make it conform to any internal garbage collection, too, since image decoding can be memory intensive.
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Jong-Hyouk Yun | 26 Aug 12:06 2015
Picon

SDL2 + XIM problem & patch

Hi, I'm John.

Recently I have switched my old codes to SDL2 from SDL-1.2. But it seemed SDL2 support XIM properly.

Here's my environments and test codes...
* Archlinux, Xorg (1.17.2-4 xorg-server), i3wm, nabi-XIM -or- ibus (1.5.11-1) (locale = en_US.UTF-8)
* Ubuntu 14.04, ibus. (locale = ko_KR.UTF-8)
..SDL-1.2, SDL-2 test-apps are fine with OSX/Windows IMEs.
(and SDL-1.2 is fine with Xorg/X11 + ibus/nabi... too)


I have made simple patch and I attach it to this mail.
(See attached file or this link: https://gist.github.com/ageldama/6c713311c6cadd7bb607 )

I'll be glad if you apply this to next-release of SDL-2. :-)


Thanks.



_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Owen Alanzo Hogarth | 26 Aug 11:08 2015
Picon

SDL2 android lifecycle

I am trying to modify SDL2 on android but I am running into a few issues.

I call the functions to initialize the .so and those work fine.

I am trying to wrap up the way that I call ?class SDLSurface extends SurfaceView?

I call new and I get the constructor callback but after that, no other calls go through.

What's the call order from SDLmain through to setting up the class SDLsurface on android? Can I wrap that sdlsurface class in another class and control it from there?
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
divad | 26 Aug 00:28 2015

iOS quit app from background

I have an event filter set up using SDL_SetEventFilter that checks for SDL_APP_TERMINATING. When the app is in the foreground and I quit it, I hit this event. When it is in the background and I terminate it, I never hit this event, and the app crashes on seemingly random things (ios is doing some trickery to forcibly shutdown the app?). Why don't I get a chance to shut down gracefully when shutting down from the background?
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Artem Metra | 25 Aug 23:03 2015
Picon
Picon

Windows Phone 8.1/10

Hallo everybody,
I have a small question about building an SDL2 App for WindowsPhone 8.1/10.
Is there an exampleproject which start in the WindowsPhone 8.1 Simulator available?
If not, are there any tutorials about that topic? I got VS 12 13 15.
 
Thank you very much.
 
Best regards,
Artem
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Gmane