V-Gears 0
Free Final Fantasy VII engine.
FontFile.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18#include "common/File.h"
21
25class FontFile : public File{
26
27 public:
28 // explicit FontFile(const Ogre::String& file);
29
35 explicit FontFile(File* file);
36
44 FontFile(File* file, const u32& offset, const u32& length);
45
53 FontFile(u8* buffer, const u32& offset, const u32& length);
54
58 virtual ~FontFile(void);
59
63 Surface* GetSurface(void);
64};
Ogre::uint32 u32
Definition: TypeDefine.h:23
Ogre::uint8 u8
Definition: TypeDefine.h:21
Represents a file.
Definition: File.h:24
Handles font files.
Definition: FontFile.h:25
virtual ~FontFile(void)
Desrtuctor/.
Definition: FontFile.cpp:32
FontFile(File *file)
Constructor.
Definition: FontFile.cpp:24
Surface * GetSurface(void)
Retrieves the font surface.
Definition: FontFile.cpp:34
A surface description.
Definition: Surface.h:28