Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kbinani/colladafile


https://github.com/kbinani/colladafile

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# ColladaFile [![Build Status](https://travis-ci.org/kbinani/ColladaFile.svg?branch=master)](https://travis-ci.org/kbinani/ColladaFile)

Lightweight COLLADA file (*.dae) generator library written in C++.

# Requirements

Modern C++ compiler.

# Example

```
#include "colladafile.hpp"

int main()
{
using namespace ColladaFile;

Scene scene;

auto triangle = std::make_shared();
triangle->vertices() = {
{0, 0, 1},
{1, 0, 1},
{0, 1, 1},
};
triangle->faces() = {
{0, 1, 2},
};
scene.add(triangle, "triangle");

scene.write("triangle.dae");

return 0;
}
```

# License

MIT License