From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_font_mgr_8cpp_source.html | 175 ++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 Doc/doxygen/html/_font_mgr_8cpp_source.html (limited to 'Doc/doxygen/html/_font_mgr_8cpp_source.html') diff --git a/Doc/doxygen/html/_font_mgr_8cpp_source.html b/Doc/doxygen/html/_font_mgr_8cpp_source.html new file mode 100644 index 0000000..368a0f8 --- /dev/null +++ b/Doc/doxygen/html/_font_mgr_8cpp_source.html @@ -0,0 +1,175 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/FontMgr.cpp Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
FontMgr.cpp
+
+
+Go to the documentation of this file.
1 /* Project nGenEx
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: nGenEx.lib
+
6  FILE: FontMgr.cpp
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Font Resource Manager class implementation
+
13 */
+
14 
+
15 #include "MemDebug.h"
+
16 #include "FontMgr.h"
+
17 
+
18 // +--------------------------------------------------------------------+
+
19 
+
20 List<FontItem> FontMgr::fonts;
+
21 
+
22 // +--------------------------------------------------------------------+
+
23 
+
24 void
+ +
26 {
+
27  fonts.destroy();
+
28 }
+
29 
+
30 // +--------------------------------------------------------------------+
+
31 
+
32 void
+
33 FontMgr::Register(const char* name, Font* font)
+
34 {
+
35  FontItem* item = new(__FILE__,__LINE__) FontItem;
+
36 
+
37  if (item) {
+
38  item->name = name;
+
39  item->size = 0;
+
40  item->font = font;
+
41 
+
42  fonts.append(item);
+
43  }
+
44 }
+
45 
+
46 // +--------------------------------------------------------------------+
+
47 
+
48 Font*
+
49 FontMgr::Find(const char* name)
+
50 {
+
51  ListIter<FontItem> item = fonts;
+
52  while (++item) {
+
53  if (item->name == name)
+
54  return item->font;
+
55  }
+
56 
+
57  return 0;
+
58 }
+
+
+ + + + -- cgit v1.1