Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2009-05-06 03:10:32 +0400
committerDiego Borghetti <bdiego@gmail.com>2009-05-06 03:10:32 +0400
commit405cf80eb8dc2df8ae160aee70aef34052add24a (patch)
treef03cc27e95bdf91b25ea9d2a0dffb28ccef666be /extern/bFTGL/include/FTList.h
parent71c38978e14ebf3522fe60fc239ad04f10ef30ab (diff)
Big, big commit!!
1) Remove WITH_FREETYPE2 from code, so now blender always need freetype2 2) Remove the old bmfont 3) Remove ftfont and bFTGL library 4) Implement a new BLF_draw_default function for place that still need/use the old BMF api. I try to update both, scons and cmake, but I only can test with make, so hope all work fine. MSVC is broken, but I don't have Windows, things to search and fix are any reference to WITH_FREETYPE2, FTGL and BMFONT (take in care that blenkernel also have a BKE_bmfont.h, this don't have anything to do with bmfont). Always have to link/include the freetype2 library Remove any reference to libbmfont Remove any reference to libftfont Remove any reference to libbftgl (or libbFTGL)
Diffstat (limited to 'extern/bFTGL/include/FTList.h')
-rw-r--r--extern/bFTGL/include/FTList.h112
1 files changed, 0 insertions, 112 deletions
diff --git a/extern/bFTGL/include/FTList.h b/extern/bFTGL/include/FTList.h
deleted file mode 100644
index 34992168103..00000000000
--- a/extern/bFTGL/include/FTList.h
+++ /dev/null
@@ -1,112 +0,0 @@
-#ifndef __FTList__
-#define __FTList__
-
-#include "FTGL.h"
-
-/**
-* Provides a non-STL alternative to the STL list
- */
-template <typename FT_LIST_ITEM_TYPE>
-class FTGL_EXPORT FTList
-{
- public:
- typedef FT_LIST_ITEM_TYPE value_type;
- typedef value_type& reference;
- typedef const value_type& const_reference;
- typedef size_t size_type;
-
- /**
- * Constructor
- */
- FTList()
- : listSize(0),
- tail(0)
- {
- tail = NULL;
- head = new Node;
- }
-
- /**
- * Destructor
- */
- ~FTList()
- {
- Node* next;
-
- for( Node *walk = head; walk; walk = next)
- {
- next = walk->next;
- delete walk;
- }
- }
-
- /**
- * Get the number of items in the list
- */
- size_type size() const
- {
- return listSize;
- }
-
- /**
- * Add an item to the end of the list
- */
- void push_back( const value_type& item)
- {
- Node* node = new Node( item);
-
- if( head->next == NULL)
- {
- head->next = node;
- }
-
- if( tail)
- {
- tail->next = node;
- }
- tail = node;
- ++listSize;
- }
-
- /**
- * Get the item at the front of the list
- */
- reference front() const
- {
- return head->next->payload;
- }
-
- /**
- * Get the item at the end of the list
- */
- reference back() const
- {
- return tail->payload;
- }
-
- private:
- struct Node
- {
- Node()
- : next(NULL)
- {}
-
- Node( const value_type& item)
- : next(NULL)
- {
- payload = item;
- }
-
- Node* next;
-
- value_type payload;
- };
-
- size_type listSize;
-
- Node* head;
- Node* tail;
-};
-
-#endif // __FTList__
-