Does iTorque support SQLite?
by SysRat · in iTorque 2D · 09/02/2011 (4:12 am) · 6 replies
Does iTorque 2D support SQLite?
About the author
http://shaggydwarf.com
#2
09/02/2011 (5:25 am)
any examples?
#3
The first step would be finding a compatible version of the SQLite sdk and make sure it can work with the iOS SDK. If that works, you can implement a base integration with iT2D. From there, it's a matter of exposing it to the rest of the engine.
09/02/2011 (6:02 am)
@sysrat - Basically, orb was referring to the fact that the source code availability allows you to implement a new system like SQLite. There are some previous examples for an older version of the base engines, but none for iTorque 2D. The first step would be finding a compatible version of the SQLite sdk and make sure it can work with the iOS SDK. If that works, you can implement a base integration with iT2D. From there, it's a matter of exposing it to the rest of the engine.
#4
09/02/2011 (9:23 am)
I would recommend looking into the CoreData implementation in the iOS SDK. You should be able to plug into it.
#5
tl;dr: This isn't a quick thing to answer. You need some engine modification to add new functionality, but you can do it if you know C++ well enough. Start by looking at how scripting functions are made, which you'll find some examples of on these forums and possibly TDN.
09/02/2011 (10:59 am)
If you're looking into using SQLite (for potential portability) the SDK has the library too. Just add the dylib (see Xcode docs if this is unclear). Then it depends on whether you're using it from C++ only or if you also want to expose it to TorqueScript. In the latter case you will need to create some functions/methods which abstract whatever it is you're trying to do.tl;dr: This isn't a quick thing to answer. You need some engine modification to add new functionality, but you can do it if you know C++ well enough. Start by looking at how scripting functions are made, which you'll find some examples of on these forums and possibly TDN.
#6
09/03/2011 (7:16 am)
I'm not a c++ programmer. Is it possible to see this implementation in new iTorque version?
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders