INNER CODE UNIT · C++

BorderGenerator

symphony-of-empires/symphony-of-empires · eng3d/eng3d/borders.cpp:63

class BorderGenerator {
    std::unordered_set<int> walked_positions;
    std::unordered_set<int> walked_paths;
    std::stack<int> unexplored_paths;
    std::stack<int> current_paths;
    std::vector<std::vector<glm::vec3>>& borders;
    const uint32_t* pixels;
    int width;
    int height;
    BorderGenerator(std::vector<std::vector<glm::vec3>>& _borders, const uint32_t* _pixels, int _width, int _height)
        : borders{ _borders },
        pixels{ _pixels },
        width{ _width },
        height{ _height }
    {

    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…