libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Font.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace Ship {
6
8#define RESOURCE_TYPE_FONT 0x464F4E54 // FONT
9
16class Font : public Resource<void> {
17 public:
18 using Resource::Resource;
19
22
24 virtual ~Font();
25
30 void* GetPointer() override;
31
36 size_t GetPointerSize() override;
37
39 char* Data = nullptr;
40
42 size_t DataSize;
43};
44}; // namespace Ship
A resource representing a loaded font file (e.g. TTF).
Definition Font.h:16
size_t GetPointerSize() override
Returns the size of the raw font data in bytes.
void * GetPointer() override
Returns a pointer to the raw font data.
char * Data
Raw font file data.
Definition Font.h:39
Font()
Constructs an empty Font resource.
virtual ~Font()
Destructor.
size_t DataSize
Size of the font data buffer in bytes.
Definition Font.h:42
Typed resource base class that provides a strongly-typed pointer accessor.
Definition Resource.h:73
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14