Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Bindings for mSCRiPT  (Read 3912 times)

0 Members and 1 Guest are viewing this topic.

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
SFML Bindings for mSCRiPT
« on: April 21, 2009, 09:34:43 pm »
Oi ^^

I've developed a language called Madness Script(mSCRiPT) and I'm thinking about making bindings for SFML to the language.

Though I'm just wondering some things.

If I create it and it work's perfectly. Can it be posted under the download page? Marketing you know :P

Is there some things I should know? I haven't made bindings before. The Dev API for the language is in C++ so it should be fairly easy to make it available in mSCRiPT. Should I change in the source code directly or make a wrapper around SFML?

It will be something like this:
Code: [Select]

SFML = PluginManager.RequestPlugin("SFML")
window = SFML.NewWindow
window.Display
// more code more code


** EDIT **
Remembered that SFML is divided into packages so it should be like this:
Code: [Select]
SFMLSystem = PluginManager.RequestPlugin("sfml-system")
SFMLSystem.Sleep(0.05)


Though should the bindings automatically link the packages they depend on? I.E. Should Window link System by itself or should the developer do that himself?

** Tragic end **
I think I can't do this. Not sure. I can't get my Dynamic Linker to work properly with VC++. It works perfectly with GCC/G++. But VC++ won't accept how I handle the external functions and create a "unified" form of argument list.

Unless someone can help me with that, I'm dead stuck.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
SFML Bindings for mSCRiPT
« Reply #1 on: April 27, 2009, 11:38:42 pm »
I managed to fix the VC++ bug. So now it works perfectly and I got the System package done. I'll try to get some debugging done with the package tomorrow.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

 

anything