Page 2 of 3

Re: OpenGL Accelerated 2D Engine (with SFML)

Posted: Mon Aug 31, 2020 9:42 am
by marc_256
Hi BarryG,

Same here, I bought a lot of stuff here in 10 years time,
and yes, a lot of them are disappeared.

But I'm still believing in good work...

@IndigoFuzz,

Don't give up ...


greetings,
marc

Re: OpenGL Accelerated 2D Engine (with SFML)

Posted: Mon Aug 31, 2020 10:00 am
by IndigoFuzz
Don't worry chaps! I wont let you down.. or if I do I will make sure the source code is put on gitlab so you folks can tinker with it

Re: OpenGL Accelerated 2D Engine (mit SFML)

Posted: Mon Aug 31, 2020 10:07 am
by Saki
viewtopic.php?f=17&t=58221

It remains to be seen how good or bad it will be and whether it will find acceptance at all.

Re: OpenGL Accelerated 2D Engine (mit SFML)

Posted: Mon Aug 31, 2020 10:54 am
by IndigoFuzz
Saki wrote:viewtopic.php?f=17&t=58221

It remains to be seen how good or bad it will be and whether it will find acceptance at all.
Such a cynic! If I were to be hit by a bus tomorrow, the DLL C++ code is there, as well as the purebasic includes, so anyone who sat down, compiled SFML statically with unicode for both x86 and x64, and created a DLL using those source files could create it too :)

Re: OpenGL Accelerated 2D Engine (with SFML)

Posted: Mon Aug 31, 2020 11:12 am
by Saki
Unnecessary blah blah

Re: OpenGL Accelerated 2D Engine (with SFML)

Posted: Mon Aug 31, 2020 12:38 pm
by IndigoFuzz
Moved to GitLab

Sample and include source (mfwlib.dll source will eventually be added too once some refactoring is done, and made a little more elegant)

GitLab Project Group
https://gitlab.com/mfwlib

Samples Repo
https://gitlab.com/mfwlib/sample

Include Repo
https://gitlab.com/mfwlib/mfw

First post to be updated.

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Mon Aug 31, 2020 2:47 pm
by IndigoFuzz
To keep @Saki happy and off my back, the source code for the DLL has now also been pushed to GitLab containing
  • Microsoft Visual Studio 2019 Solution & Project for compiling both x86 and x64 versions.
  • Precompiled static libraries of SFML and Squirrel for Visual Studio 2019
  • Licences
Source can be found here: https://gitlab.com/mfwlib/mfwlib-src

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Mon Aug 31, 2020 3:11 pm
by Saki
Well, that was a good decision, the best one !

I wouldn't have bothered you any further.
It is necessary that new things come.
I myself will probably not use it, but others will.

I wish you much success with the project.

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Tue Sep 01, 2020 9:30 am
by Mesa
I've got this message "[Fatal Error] Library mfwlib.dll was not found."

I use WIndows XP 32b and i did all the Instructions (If Downloading rather than Cloning)
"Download the repo as an archive and extract it somewhere : OK
Download the mfw repo separately and copy the files into the mfw directory of the samples.: OK
Copy the appropriate shared library to the root (sample) directory from the 'mfw/bin/[platform]/' directory.: OK
Run the desired example!": OK but [Fatal Error] Library mfwlib.dll was not found.

M.

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Tue Sep 01, 2020 1:30 pm
by Env
Mesa wrote:I've got this message "[Fatal Error] Library mfwlib.dll was not found."

I use WIndows XP 32b and i did all the Instructions (If Downloading rather than Cloning)
"Download the repo as an archive and extract it somewhere : OK
Download the mfw repo separately and copy the files into the mfw directory of the samples.: OK
Copy the appropriate shared library to the root (sample) directory from the 'mfw/bin/[platform]/' directory.: OK
Run the desired example!": OK but [Fatal Error] Library mfwlib.dll was not found.

M.
Make sure the current working directory is the same as where the DLL is housed and that the DLL is in the same directory as the sample. That error is thrown when the filesize is < 1

Code: Select all

If FileSize(#MFWCORE) > 0
...
Else
  mfwFatalError("Library " + #MFWCORE + " was not found.")
EndIf

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Tue Sep 01, 2020 3:04 pm
by Mesa
In corelib.pbi, i replaced '#MFWCORE' by 'GetCurrentDirectory()+#MFWCORE' and the dll is found now but i have another message: [Fatal Error] Library X:\...\mfwlib.dll could not be opened.
The dll can't be opened.

M.

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Tue Sep 01, 2020 3:13 pm
by Env
Mesa wrote:In corelib.pbi, i replaced '#MFWCORE' by 'GetCurrentDirectory()+#MFWCORE' and the dll is found now but i have another message: [Fatal Error] Library X:\...\mfwlib.dll could not be opened.
The dll can't be opened.

M.
More than likely because Windows XP became end of life 6 years ago and the later Visual Studio version platform toolsets no longer support it either. You would have to compile the dependencies and the library yourself

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Tue Sep 01, 2020 6:02 pm
by mk-soft
Never use GetCurrentDirectory(). Is not sure to path of Program

Example

Code: Select all

Debug GetCurrentDirectory()
PathProg.s = GetPathPart(ProgramFilename())
Debug PathProg
PathDLL.s = PathProg + "Library\mfwlib.dll"
Debug PathDLL
And set Compiler Options
- Create temporary executable in the source directory

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Fri Sep 11, 2020 12:28 pm
by leonhardt
Any news?

Re: [Framework] OpenGL Accelerated 2D Engine (with SFML)

Posted: Fri Sep 11, 2020 9:11 pm
by Env
leonhardt wrote:Any news?
Yes, there's news - My account IndigoFuzz got disabled because I was switching e-mail over to new e-mail, and accidentally put .co.uk instead of .com, and now I have no way to re-enable it (and sent an email to support over a week ago, as well as messaged 3 admins on here with no response still) and luckily I realised I had this account too.

As for the codebase, unfortunately a family emergency has meant I've been away for the best part of the week so has impacted my tinker time a bit. I'll be back tomorrow so will get the event code wrapped up at the least and merge that into the master branch with x86 and x64 DLLs compiled

And please folks who are playing with it - leave feedback on your experiences just to show there is interest in this as I'll know to keep developing this on the side (since most of what my own project needs is done now with it)