mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Refactored the Line class to be templated (to update old code, just replace "Line" with "Line<float>"). Corrected a mac ppc build problem.
This commit is contained in:
parent
0d611ec065
commit
082dff25dd
11 changed files with 601 additions and 984 deletions
|
|
@ -544,12 +544,12 @@ void Graphics::drawLine (const float startX, const float startY,
|
|||
fillPath (p);
|
||||
}
|
||||
|
||||
void Graphics::drawLine (const Line& line) const
|
||||
void Graphics::drawLine (const Line<float>& line) const
|
||||
{
|
||||
drawLine (line.getStartX(), line.getStartY(), line.getEndX(), line.getEndY());
|
||||
}
|
||||
|
||||
void Graphics::drawLine (const Line& line, const float lineThickness) const
|
||||
void Graphics::drawLine (const Line<float>& line, const float lineThickness) const
|
||||
{
|
||||
drawLine (line.getStartX(), line.getStartY(), line.getEndX(), line.getEndY(), lineThickness);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue