aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-28 13:20:53 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-28 13:20:53 +0000
commitc01eba6a6494bb583b5bf43bea404b918b5c9c63 (patch)
tree2dde468cdc0bbb8202289e7b54509ccf71620a51
parentf209316474cc121b51455770df6c24b9c64796a9 (diff)
downloadusdx-c01eba6a6494bb583b5bf43bea404b918b5c9c63.tar.gz
usdx-c01eba6a6494bb583b5bf43bea404b918b5c9c63.tar.xz
usdx-c01eba6a6494bb583b5bf43bea404b918b5c9c63.zip
UTextClasses.pas removed
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1481 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/base/UTextClasses.pas89
-rw-r--r--src/ultrastardx.dpr6
2 files changed, 3 insertions, 92 deletions
diff --git a/src/base/UTextClasses.pas b/src/base/UTextClasses.pas
deleted file mode 100644
index ddc8906c..00000000
--- a/src/base/UTextClasses.pas
+++ /dev/null
@@ -1,89 +0,0 @@
-{* UltraStar Deluxe - Karaoke Game
- *
- * UltraStar Deluxe is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- * $URL$
- * $Id$
- *}
-
-unit UTextClasses;
-
-interface
-
-{$IFDEF FPC}
- {$MODE Delphi}
-{$ENDIF}
-
-{$I switches.inc}
-
-uses
- gl,
- SDL,
- UTexture,
- Classes,
-// SDL_ttf,
- ULog;
-
-{
-// okay i just outline what should be here, so we can create a nice and clean implementation of sdl_ttf
-// based up on this uml: http://jnr.sourceforge.net/fusion_images/www_FRS.png
-// thanks to Bob Pendelton and Koshmaar!
-// (1) let's start with a glyph, this represents one character in a word
-
-type
- TGlyph = record
- character : Char; // unsigned char, uchar is something else in delphi
- glyphsSolid[8] : GlyphTexture; // fast, but not that
- glyphsBlended[8] : GlyphTexture; // slower than solid, but it look's more pretty
-
-//this class has a method, which should be a deconstructor (mog is on his way to understand the principles of oop :P)
- deconstructor procedure ReleaseTextures();
-end;
-
-// (2) okay, we now need the stuff that's even beneath this glyph - we're right at the birth of text in here :P
-
- GlyphTexture = record
- textureID : GLuint; // we need this for caching the letters, if the texture wasn't created before create it, should be very fast because of this one
- width,
- height : Cardinal;
- charWidth,
- charHeight : Integer;
- advance : Integer; // don't know yet for what this one is
-}
-
-{
-// after the glyph is done, we now start to build whole words - this one is pretty important, and does most of the work we need
- TGlyphsContainer = record
- glyphs array of TGlyph;
- FontName array of string;
- refCount : uChar; // unsigned char, uchar is something else in delphi
- font : PTTF_font;
- size,
- lineSkip : Cardinal; // vertical distance between multi line text output
- descent : Integer;
-
-
-
-}
-
-
-implementation
-
-end.
diff --git a/src/ultrastardx.dpr b/src/ultrastardx.dpr
index 07a5e3dc..7ade4eaf 100644
--- a/src/ultrastardx.dpr
+++ b/src/ultrastardx.dpr
@@ -35,8 +35,6 @@ program ultrastardx;
{$I switches.inc}
-//{$DEFINE CONSOLE}
-
// TODO: check if this is needed for MacOSX too
{$IFDEF MSWINDOWS}
// Set global application-type (GUI/CONSOLE) switch for Windows.
@@ -79,6 +77,9 @@ uses
zlib in 'lib\zlib\zlib.pas',
png in 'lib\libpng\png.pas',
+ //freetype in 'lib\freetype\freetype.pas',
+ //UFont in 'base\UFont.pas',
+
{$IFDEF UseBass}
bass in 'lib\bass\delphi\bass.pas',
UAudioCore_Bass in 'media\UAudioCore_Bass.pas',
@@ -193,7 +194,6 @@ uses
UPlaylist in 'base\UPlaylist.pas',
UCommandLine in 'base\UCommandLine.pas',
URingBuffer in 'base\URingBuffer.pas',
- UTextClasses in 'base\UTextClasses.pas',
USingScores in 'base\USingScores.pas',
USingNotes in 'base\USingNotes.pas',