mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
29 lines
756 B
C++
29 lines
756 B
C++
#ifndef SOURCELIST_H
|
|
#define SOURCELIST_H
|
|
|
|
#include <list>
|
|
#include <glm/glm.hpp>
|
|
|
|
class Source;
|
|
|
|
typedef std::list<Source *> SourceList;
|
|
|
|
SourceList depth_sorted (SourceList list);
|
|
SourceList mixing_sorted (SourceList list, glm::vec2 center = glm::vec2(0.f, 0.f));
|
|
SourceList intersect (SourceList first, SourceList second);
|
|
SourceList join (SourceList first, SourceList second);
|
|
|
|
typedef enum {
|
|
SOURCELIST_DISTINCT = 0,
|
|
SOURCELIST_INTERSECT = 1,
|
|
SOURCELIST_EQUAL = 2,
|
|
SOURCELIST_FIRST_IN_SECOND = 3,
|
|
SOURCELIST_SECOND_IN_FIRST = 4
|
|
} SourceListCompare;
|
|
SourceListCompare compare (SourceList first, SourceList second);
|
|
|
|
typedef std::list<uint64_t> SourceIdList;
|
|
SourceIdList ids (SourceList list);
|
|
|
|
#endif // SOURCELIST_H
|