VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFontManagerInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <boost/smart_ptr.hpp>
15 #include <vector>
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtFontInterface;
21 
26  {
27  public:
29  DtFontManagerInterface(const std::string& fontPath);
30 
33 
35  DtFontManagerInterface() = delete;
39  DtFontManagerInterface& operator=(const DtFontManagerInterface& rhs) = delete;
40  public:
42  virtual DtFontInterface* getFont(const std::string& filename, float size) = 0;
43 
44  //Deletes all fonts in memory.
45  virtual void clear() = 0;
46 
48  virtual void addTextureListForDeletion(const std::vector<unsigned int>& textures) = 0;
49  protected:
50  const std::string myFontPath;
51  };
52 }
voidpf void uLong size
Definition: ioapi.h:39
Manages instances of fonts, the font will be kept in memory unless the manager is cleared...
Definition: DtFontManagerInterface.h:25
A class with encapsulated a font loaded from disk with a given size.
Definition: DtFontInterface.h:22
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
const std::string myFontPath
Definition: DtFontManagerInterface.h:50
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)