Skip to content

Commit

Permalink
Implement Glyph::GetFont(GlyphContext&).
Browse files Browse the repository at this point in the history
  • Loading branch information
BartVandewoestyne committed Jun 11, 2024
1 parent 2f0420c commit 69c37dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Structural_Patterns/Flyweight/Glyph.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "Glyph.h"

#include "GlyphContext.h"

#include <iostream>
using namespace std;

Expand All @@ -23,10 +25,10 @@ void Glyph::SetFont(Font*, GlyphContext&)
cout << "Glyph::SetFont(Font*, GlyphContext&)" << endl;
}

Font* Glyph::GetFont(GlyphContext&)
Font* Glyph::GetFont(GlyphContext& context)
{
cout << "Glyph::GetFont(GlyphContext&)" << endl;
return 0;
return context.GetFont();
}

void Glyph::First(GlyphContext&){
Expand Down

0 comments on commit 69c37dc

Please sign in to comment.