Skip to content

Commit

Permalink
make apple clang happy;
Browse files Browse the repository at this point in the history
  • Loading branch information
NateSeymour committed Nov 21, 2024
1 parent 3a9e367 commit 14d263e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/compiler/transformer/IRGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ void unlogic::IRGenerator::Visit(const unlogic::FunctionDefinitionNode *node)
this->builder.SetInsertPoint(parent);
}

void unlogic::IRGenerator::Visit(const PlotCommandNode *node)
void unlogic::IRGenerator::Visit(const unlogic::PlotCommandNode *node)
{
std::cout << "TEST" << std::endl;
}

void unlogic::IRGenerator::Visit(const unlogic::ScopedBlockNode *node)
Expand Down
5 changes: 3 additions & 2 deletions src/graphic/Plot.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//
// Created by Nathan on 11/14/2024.
//
#include <numbers>
#include "Plot.h"
#include "ugl/Vertex.h"

Expand Down Expand Up @@ -40,7 +41,7 @@ Plot2d::Plot2d(std::string name, Plot2dFunctionType fn) : name_(std::move(name))

auto const &point = points[i];

this->line_.vertices.emplace_back(glm::vec2(point.x + tx, point.y - ty), this->color_); // a1
this->line_.vertices.emplace_back(glm::vec2(point.x - tx, point.y + ty), this->color_); // a2
this->line_.vertices.push_back({glm::vec2(point.x + tx, point.y - ty), this->color_}); // a1
this->line_.vertices.push_back({glm::vec2(point.x - tx, point.y + ty), this->color_}); // a2
}
}

0 comments on commit 14d263e

Please sign in to comment.