This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Move RenderData alongside RenderItem
- Loading branch information
1 parent
c902f90
commit e1a5856
Showing
5 changed files
with
42 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#pragma once | ||
|
||
#include <mbgl/util/color.hpp> | ||
|
||
#include <set> | ||
#include <vector> | ||
|
||
namespace mbgl { | ||
|
||
class Tile; | ||
class Bucket; | ||
|
||
namespace style { | ||
class Layer; | ||
class Source; | ||
} | ||
|
||
class RenderItem { | ||
public: | ||
RenderItem(const style::Layer& layer_, | ||
const Tile* tile_ = nullptr, | ||
Bucket* bucket_ = nullptr) | ||
: tile(tile_), bucket(bucket_), layer(layer_) { | ||
} | ||
|
||
const Tile* const tile; | ||
Bucket* const bucket; | ||
const style::Layer& layer; | ||
}; | ||
|
||
class RenderData { | ||
public: | ||
Color backgroundColor = {{ 0, 0, 0, 0 }}; | ||
std::set<style::Source*> sources; | ||
std::vector<RenderItem> order; | ||
}; | ||
|
||
} // namespace mbgl |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters