TouchVGCore contains the following cross-platform modules using C++ for 2D vector drawing frameworks:
- geom: Math and geometry module.
- graph: 2D Graphics interface module using geom module.
- shape: 2D Shape module using geom and graph modules.
- shapedoc: Shape document module using above modules.
- jsonstorage: A storage adapter using rapidjson(a fast JSON parser/generator).
- cmdbase: Base classes for deriving more drawing commands.
- cmdbasic: Commands to draw basic shapes.
- cmdmgr: Command manager module.
- view: Interactive drawing kernel module.
- export: SVG exportor module.
- record: Undo/redo and shape record module.
This is an open source LGPL 2.1 licensed project that is in active development. Contributors and sponsors are welcome.
TouchVGCore is available on CocoaPods. Just add the following to your project Podfile:
pod 'TouchVGCore'Alternatively, you can add the project to your workspace and build as one of the following methods:
-
Open
ios/TouchVGCore/TouchVGCore.xcodeprojin Xcode, then build the library project. -
Or cd the 'ios' folder of this project and type
./build.shto buildios/output/libTouchVGCore.a.- Type
./build.sh -arch arm64to make iOS libraries for iOS 64-bit. Type./build.sh cleanto remove object files.
- Type
-
Cd the 'android' folder of this project and type
./build.shto build with ndk-build.- MSYS is recommend on Windows.
- The library
libTouchVGCore.awill be outputed toandroid/TouchVGCore/obj/local/armeabi. - Type
./build.sh -Bto rebuild the native libraries.
-
Type
./build.sh APP_ABI=x86to build for the x86 Emulator. The library will be outputed toandroid/TouchVGCore/obj/local/x86.
- Open
win\vc2010.slnin Visual Studio 2010, then build the TouchVGCore library project (Win32 VC++ static library).
-
Cd the 'core' folder of this project and type
makeormake all installto generate libraries on Mac, Linux or Windows. -
Type
make java,make pythonormake csharpto generate libraries for another language applications using Java, Python or C#. -
Type
make clean java.clean python.cleanto remove the program object files.
