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

Developed or developing a new product in PureBasic? Tell the world about it.
marc_256
Enthusiast
Enthusiast
Posts: 743
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: OpenGL Accelerated 2D Engine (with SFML)

Post 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
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
IndigoFuzz

Re: OpenGL Accelerated 2D Engine (with SFML)

Post 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
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: OpenGL Accelerated 2D Engine (mit SFML)

Post 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.
地球上の平和
IndigoFuzz

Re: OpenGL Accelerated 2D Engine (mit SFML)

Post 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 :)
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: OpenGL Accelerated 2D Engine (with SFML)

Post by Saki »

Unnecessary blah blah
地球上の平和
IndigoFuzz

Re: OpenGL Accelerated 2D Engine (with SFML)

Post 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.
IndigoFuzz

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

Post 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
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

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

Post 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.
地球上の平和
Mesa
Enthusiast
Enthusiast
Posts: 345
Joined: Fri Feb 24, 2012 10:19 am

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

Post 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.
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

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

Post 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
Thanks!
Mesa
Enthusiast
Enthusiast
Posts: 345
Joined: Fri Feb 24, 2012 10:19 am

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

Post 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.
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

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

Post 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
Thanks!
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

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

Post by leonhardt »

Any news?
poor English...

PureBasic & Delphi & VBA
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

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

Post 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)
Thanks!
Post Reply