Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add CocoaPods install
  • Loading branch information
magicien authored Mar 4, 2018
1 parent 0e5125f commit 66c81fa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,31 @@ SceneKit expansion for MikuMikuDance

## Install

### Using [CocoaPods](https://cocoapods.org/)

Add the following to your [Podfile](http://guides.cocoapods.org/using/the-podfile.html):

```rb
pod 'MMDSceneKit'
```

### Manually

Download **MMDSceneKit_vX.X.X.zip** from [Releases](https://github.com/magicien/MMDSceneKit/releases/latest).

## Usage

### Swift
```
import MMDSceneKit_macOS
import MMDSceneKit
guard let sceneSource = MMDSceneSource(named: "art.scnassets/projectFile.pmm") else { return }
var scene = sceneSource.getScene()
```

### Objective-C
```
@import MMDSceneKit_macOS;
@import MMDSceneKit;
MMDSceneSource *source = [[MMDSceneSource alloc] initWithNamed:@"art.scnassets/projectFile.pmm" options:nil models:nil];
SCNScene *scene = [source getScene];
Expand Down

0 comments on commit 66c81fa

Please sign in to comment.