1. EuSDL 2.24.0 Released!

I have wrapped the functions for SDL 2.24.0

The version scheme has changed, minor releases now come after the major release so instead of it being 2.0.24, it is now 2.24.0 That is from the SDL docs.

You can find it here: https://github.com/gAndy50/EuSDL2

new topic     » topic index » view message » categorize

2. Re: EuSDL 2.24.0 Released!

Hi Andy,

Just been playing with the latest release, and adjusted it for Phix, here's my notes

SDL 2.24.0 notes 
put	--/* 
	--*/ 
around eu std incudes - Phix doesn't need them 
 
eg 
--/* 
include std/machine.e 
--*/ 
 
 
RenderWinn demo 
line 64 - function must return a value - added object VOID 
--mod CMB 
VOID = SDL_SetRenderDrawColor(ren,0,0,0,0) 
 
WinImage.exw 
added object VOID 
line 70 
--mod cmb 
VOID = SDL_UpdateWindowSurface(win) 
 
line 68 
if peek(key+SDL_SCANCODE_ESCAPE) > 0 then 
mod to 
if (peek(key+SDL_SCANCODE_ESCAPE) > 0) then 
outer parentheses missing - doesn't regiter the escape key otherwise 
 
ColorWinDemo.exw 
Added VOIDS to these functions 
	if (peek(key+SDL_SCANCODE_W) > 0) then 
		VOID = SDL_SetRenderDrawColor(ren,255,0,0,0) --red 
		VOID = SDL_RenderFillRect(ren,rect) 
		elsif (peek(key+SDL_SCANCODE_S) > 0) then 
			VOID = SDL_SetRenderDrawColor(ren,0,255,0,0) --green 
			VOID = SDL_RenderFillRect(ren,rect) 
		elsif (peek(key+SDL_SCANCODE_A) > 0) then 
			VOID = SDL_SetRenderDrawColor(ren,0,0,255,0) --blue 
			VOID = SDL_RenderFillRect(ren,rect) 
		elsif (peek(key+SDL_SCANCODE_D) > 0) then 
			VOID = SDL_SetRenderDrawColor(ren,0,0,0,255) --alpha or back to blank 
			VOID = SDL_RenderFillRect(ren,rect) 
	end if 
 
 

I couldn't get GPUEx.exw, as it wouldn't load SDL2_gpu.dll, I have copies in system, sysWOW64, System 32, alongside the other SDL2 dlls. I couldn't get it to work with eu 4.10 either - is it working for you?

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuSDL 2.24.0 Released!

ChrisB said...

Hi Andy,

Just been playing with the latest release, and adjusted it for Phix, here's my notes

SDL 2.24.0 notes 
put	--/* 
	--*/ 
around eu std incudes - Phix doesn't need them 
 
eg 
--/* 
include std/machine.e 
--*/ 
 
 
RenderWinn demo 
line 64 - function must return a value - added object VOID 
--mod CMB 
VOID = SDL_SetRenderDrawColor(ren,0,0,0,0) 
 
WinImage.exw 
added object VOID 
line 70 
--mod cmb 
VOID = SDL_UpdateWindowSurface(win) 
 
line 68 
if peek(key+SDL_SCANCODE_ESCAPE) > 0 then 
mod to 
if (peek(key+SDL_SCANCODE_ESCAPE) > 0) then 
outer parentheses missing - doesn't regiter the escape key otherwise 
 
ColorWinDemo.exw 
Added VOIDS to these functions 
	if (peek(key+SDL_SCANCODE_W) > 0) then 
		VOID = SDL_SetRenderDrawColor(ren,255,0,0,0) --red 
		VOID = SDL_RenderFillRect(ren,rect) 
		elsif (peek(key+SDL_SCANCODE_S) > 0) then 
			VOID = SDL_SetRenderDrawColor(ren,0,255,0,0) --green 
			VOID = SDL_RenderFillRect(ren,rect) 
		elsif (peek(key+SDL_SCANCODE_A) > 0) then 
			VOID = SDL_SetRenderDrawColor(ren,0,0,255,0) --blue 
			VOID = SDL_RenderFillRect(ren,rect) 
		elsif (peek(key+SDL_SCANCODE_D) > 0) then 
			VOID = SDL_SetRenderDrawColor(ren,0,0,0,255) --alpha or back to blank 
			VOID = SDL_RenderFillRect(ren,rect) 
	end if 
 
 

I couldn't get GPUEx.exw, as it wouldn't load SDL2_gpu.dll, I have copies in system, sysWOW64, System 32, alongside the other SDL2 dlls. I couldn't get it to work with eu 4.10 either - is it working for you?

Cheers

Chris

I haven't worked on SDL_gpu in awhile. I'd have to look at it again. I only updated EuSDL for SDL 2.24.0. Maybe there's something that breaks compatbility with SDL_GPU? I'm not sure. I'll look more into it later. Also, I primarily use Euphoria, not Phix. Sometimes I've had issues with Euphoria not loading DLLs, maybe its a bug or the naming could be wrong. I wonder if it is possibly a memory or buffer overflow bug?

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuSDL 2.24.0 Released!

Hi

Yeah, It's odd, because the dll just isn't loaded at all - there's something different about it. I'm fairly sure it's not the path, because it's sprinkled about in all the usual places.

Cheers

Chris

new topic     » goto parent     » topic index » view message » categorize

5. Re: EuSDL 2.24.0 Released!

ChrisB said...

Yeah, It's odd, because the dll just isn't loaded at all - there's something different about it. I'm fairly sure it's not the path, because it's sprinkled about in all the usual places.

A few troubleshooting pointers:

  • Put any libraries you want to use with your Euphoria projects in either the Euphoria bin directory (next to eui.exe) or the local directory where you'll be working from.
  • After placing the libraries where you want, use Dependencies to verify that they are loading correctly.
  • A lot of libraries built with MinGW require additional support libraries like libgcc_s_dw2-1.dll or libwinpthread-1.dll. You'll have these available if you have TDM-GCC installed and in your PATH.
  • Mind your architecture! 64-bit Euphoria can't load 32-bit libraries and vice-versa. I recommend using 64-bit Euphoria if you're on a 64-bit system (which nowadays you should be).

-Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu