Weird ness with SDL2 rendering

2013-03-01 Thread Kartik Thakore
So I have been working on making a simple enough red screen and blue rect
on SDL2. I was using this code which is in two test cases in the repo:

http://wiki.libsdl.org/moin.fcg/SDL_RenderPresent

For the hardware render the D3DX9 is not loading well.

But for the software even I can see any thing. Can you guys try this code
with KMX's packages and tell me if you guys are getting the same result?


Result:

C:\Users\kthakore\Documents\Development\perl\SDL2>cp t/0perl Build test
perl Build test
0 at t\001_load.t line 37.
0 at t\001_load.t line 39.
0 at t\001_load.t line 41.
0 at t\001_load.t line 43.
0 at t\001_load.t line 47.
FINISHED: Failed loading D3DX9_44.dll: The specified module could not be
found.
t\001_load.t .. ok
0 at t\002_software.t line 37.
0 at t\002_software.t line 39.
0 at t\002_software.t line 41.
0 at t\002_software.t line 43.
0 at t\002_software.t line 47.
FINISHED: Passed a NULL mutex at t\002_software.t line 52.
t\002_software.t .. ok
All tests successful.
Files=2, Tests=10,  7 wallclock secs ( 0.05 usr +  0.00 sys =  0.05 CPU)
Result: PASS


Re: Alien::SLD2

2013-03-01 Thread Kartik Thakore
AEWSOME!



On Fri, Mar 1, 2013 at 11:34 AM, kmx  wrote:

> Updated SDL2 binaries for strawberry perl:
> * 
> http://strawberryperl.com/**package/kmx/sdl/32bit_SDL2_**20130301.zip<http://strawberryperl.com/package/kmx/sdl/32bit_SDL2_20130301.zip>
> * 
> http://strawberryperl.com/**package/kmx/sdl/64bit_SDL2_**20130301.zip<http://strawberryperl.com/package/kmx/sdl/64bit_SDL2_20130301.zip>
>
> Contain:
> * SDL2
> * SDL2_image
> * SDL2_gfx
> * SDL2_net
> * SDL2_mixer
> * SDL2_ttf
> (all from latest SVN/Mercurial checkouts)
>
> --
> kmx
>
>


Re: Alien::SLD2

2013-03-01 Thread kmx

Updated SDL2 binaries for strawberry perl:
* http://strawberryperl.com/package/kmx/sdl/32bit_SDL2_20130301.zip
* http://strawberryperl.com/package/kmx/sdl/64bit_SDL2_20130301.zip

Contain:
* SDL2
* SDL2_image
* SDL2_gfx
* SDL2_net
* SDL2_mixer
* SDL2_ttf
(all from latest SVN/Mercurial checkouts)

--
kmx



Re: [SPAM] Re: Alien::SLD2

2013-03-01 Thread Jeffrey Palmer
sdl-team has been added to SDL2, that should fix that.

--
Jeff

On Fri, Mar 1, 2013 at 6:46 AM, kmx  wrote:

>
> On 1.3.2013 1:08, Jeffrey Palmer wrote:
>
>> I went ahead and created that repo on github.  Let me know if there's
>> anything I can do to help.
>>
>
> Thanks, could you please also give me a commit privilege to PerlGameDev /
> SDL2 ?
>
> --
> kmx
>
>


Re: Alien::SLD2

2013-03-01 Thread Kartik Thakore
Check out the new branch. I am doing SDL2pp.dll for the collision.
get_handle_win32 and junk comes from windows.h I believe but SDL2 has no
need for it. https://github.com/PerlGameDev/SDL2/tree/new_sdl_win


On Fri, Mar 1, 2013 at 5:35 AM, kmx  wrote:

>
> On 1.3.2013 5:34, Kartik Thakore wrote:
>
>> And then this.
>>
>
>
> Well it a collision of SDL2.dll (which comes from SDL2 binaries) vs.
> SDL2.dll which is the output of compiling SDL2.xs
>
> Grrr, somebody should propose a fix to p5p to produce something like
> SDL2.xs.dll
>
> Anyway I can prepare new binaries with renamed DLL's (will do over the
> weekend) or you can move your XS testing to e.g. SDL2::TestOnly module
> (which will produce TestOnly.dll not SDL2.dll)
>
> --
> kmx
>
>


Re: Alien::SLD2

2013-03-01 Thread kmx


On 1.3.2013 5:34, Kartik Thakore wrote:

And then this.



Well it a collision of SDL2.dll (which comes from SDL2 binaries) vs. 
SDL2.dll which is the output of compiling SDL2.xs


Grrr, somebody should propose a fix to p5p to produce something like 
SDL2.xs.dll


Anyway I can prepare new binaries with renamed DLL's (will do over the 
weekend) or you can move your XS testing to e.g. SDL2::TestOnly module 
(which will produce TestOnly.dll not SDL2.dll)


--
kmx



Re: Alien::SLD2

2013-03-01 Thread kmx


On 1.3.2013 5:10, Kartik Thakore wrote:

So was trying to compile stuff this is what I get running. perl Build.pl
and perl Build in https://github.com/PerlGameDev/SDL2

I copied your libSDL2 zip files to strawberryperl/c

g++.exe -o "blib\arch\auto\SDL2\SDL2.dll" -Wl,--base-file,"lib\SDL2.base"
-Wl,--
image-base,0x7d20 -mdll -s
-L"C:\Users\kthakore\Documents\Development\strawb
erry_perl\perl\lib\CORE"
-L"C:\Users\kthakore\Documents\Development\strawberry_p
erl\c\lib" "lib\SDL2.lds"
-LC:\Users\kthakore\Documents\Development\strawberry_p
erl\c\bin\..\lib -lmingw32 -lSDL2main -lSDL2 -mwindows "lib\SDL2.exp"
lib\SDL2.o:SDL2.c:(.text+0x5e): undefined reference to `get_handle_win32'
lib\SDL2.o:SDL2.c:(.text+0x4d7): undefined reference to
`windows_force_driver'
collect2: ld returned 1 exit status
dlltool --def "lib\SDL2.def" --output-exp "lib\SDL2.exp" --base-file
"lib\SDL2.base"


I have no idea what should functions get_handle_win32 + windows_force_driver 
exactly do. These are not part of SDL2.

Simply comment them out.

--
kmx