mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
AGS: Remove duplicate IAGSFontRenderer class definition
This commit is contained in:
parent
0ff7411a1d
commit
00603b341d
@ -32,6 +32,7 @@
|
|||||||
#define AGS_PLUGINS_AGS_PLUGIN_H
|
#define AGS_PLUGINS_AGS_PLUGIN_H
|
||||||
|
|
||||||
#include "ags/shared/core/types.h"
|
#include "ags/shared/core/types.h"
|
||||||
|
#include "ags/shared/font/ags_font_renderer.h"
|
||||||
#include "common/array.h"
|
#include "common/array.h"
|
||||||
|
|
||||||
namespace AGS3 {
|
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 {
|
struct AGSRenderMatrixes {
|
||||||
float WorldMatrix[16];
|
float WorldMatrix[16];
|
||||||
float ViewMatrix[16];
|
float ViewMatrix[16];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user