AGS: Remove duplicate IAGSFontRenderer class definition

This commit is contained in:
Paul Gilbert 2021-06-18 21:24:18 -07:00
parent 0ff7411a1d
commit 00603b341d

View File

@ -32,6 +32,7 @@
#define AGS_PLUGINS_AGS_PLUGIN_H
#include "ags/shared/core/types.h"
#include "ags/shared/font/ags_font_renderer.h"
#include "common/array.h"
namespace AGS3 {
@ -292,24 +293,6 @@ protected:
}
};
class IAGSFontRenderer {
public:
virtual bool LoadFromDisk(int fontNumber, int fontSize) = 0;
virtual void FreeMemory(int fontNumber) = 0;
virtual bool SupportsExtendedCharacters(int fontNumber) = 0;
virtual int GetTextWidth(const char *text, int fontNumber) = 0;
virtual int GetTextHeight(const char *text, int fontNumber) = 0;
virtual void RenderText(const char *text, int fontNumber, BITMAP *destination, int x, int y, int colour) = 0;
virtual void AdjustYCoordinateForFont(int *ycoord, int fontNumber) = 0;
virtual void EnsureTextValidForFont(char *text, int fontNumber) = 0;
protected:
IAGSFontRenderer() {
}
virtual ~IAGSFontRenderer() {
}
};
struct AGSRenderMatrixes {
float WorldMatrix[16];
float ViewMatrix[16];