sfml 0.20.0

Rust binding for sfml
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <string>
#include <vector>

extern "C" void sfStdStringVector_destroy(std::vector<std::string> *vec) {
    delete vec;
}

extern "C" std::size_t sfStdStringVector_getLength(const std::vector<std::string> *vec) {
    return vec->size();
}

extern "C" const std::string *sfStdStringVector_index(const std::vector<std::string> *vec, std::size_t index) {
    return &(*vec)[index];
}