aabb block shape WIP + common refactor
This commit is contained in:
+2
-16
@@ -2,6 +2,8 @@
|
||||
#include "Texture.h"
|
||||
#include "Batch2D.h"
|
||||
|
||||
using glm::vec4;
|
||||
|
||||
Font::Font(std::vector<Texture*> pages, int lineHeight) : lineHeight_(lineHeight), pages(pages) {
|
||||
}
|
||||
|
||||
@@ -10,22 +12,6 @@ Font::~Font(){
|
||||
delete texture;
|
||||
}
|
||||
|
||||
// int Font::getGlyphWidth(char c) {
|
||||
// switch (c){
|
||||
// case 'l':
|
||||
// case 'i':
|
||||
// case 'j':
|
||||
// case '|':
|
||||
// case '.':
|
||||
// case ',':
|
||||
// case ':':
|
||||
// case ';': return 7;
|
||||
// case 't': return 8;
|
||||
// case ' ': return 7;
|
||||
// }
|
||||
// return 7;
|
||||
// }
|
||||
|
||||
int Font::lineHeight() const {
|
||||
return lineHeight_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user