Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/display/MapBatches.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,25 @@ struct NODISCARD LayerMeshes final
DEFAULT_MOVES_DELETE_COPIES(LayerMeshes);
~LayerMeshes() = default;

void render(int thisLayer, int focusedLayer);
void render(int thisLayer, int focusedLayer, GLuint named_colors_buffer_id);
explicit operator bool() const { return isValid; }
};

using PlainQuadBatch = std::vector<glm::vec3>;

struct NODISCARD LayerMeshesIntermediate final
{
using Fn = std::function<UniqueMesh(OpenGL &)>;
using FnVec = std::vector<Fn>;
FnVec terrain;
FnVec trails;
RoomTintArray<PlainQuadBatch> tints;
RoomTintArray<Fn> tints;
FnVec overlays;
FnVec doors;
FnVec walls;
FnVec dottedWalls;
FnVec upDownExits;
FnVec streamIns;
FnVec streamOuts;
PlainQuadBatch layerBoost;
Fn layerBoost;
bool isValid = false;

LayerMeshesIntermediate() = default;
Expand Down
Loading
Loading