point at polimath and other changes
This commit is contained in:
parent
ce9d4b490a
commit
ec14f0c1b5
@ -1,14 +1,13 @@
|
||||
// GLFT_Font (http://www.cs.rit.edu/~jpt2433/glftfont/)
|
||||
// by James Turk (jpt2433@rit.edu)
|
||||
// GLFT_Font (http://polimath.com/blog/code/glft_font/)
|
||||
// by James Turk (james.p.turk@gmail.com)
|
||||
// Based on work by Marijn Haverbeke (http://marijn.haverbeke.nl)
|
||||
//
|
||||
// Version 0.1 - Released 1 July 2005 - Initial Release
|
||||
// Version 0.2 - Released 18 July 2005 - Added beginDraw/endDraw,
|
||||
// Version 0.2.1 - Released 2 March 2008 - Updated contact information.
|
||||
// Version 0.2.0 - Released 18 July 2005 - Added beginDraw/endDraw,
|
||||
// Changed vsprintf to vsnprintf
|
||||
// Version 0.1.0 - Released 1 July 2005 - Initial Release
|
||||
//
|
||||
// $Id: GLFT_Font.cpp,v 1.1 2005/07/18 22:19:16 cozman Exp $
|
||||
//
|
||||
// Copyright (c) 2005, James Turk
|
||||
// Copyright (c) 2005-2008, James Turk
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,14 +1,13 @@
|
||||
// GLFT_Font (http://www.cs.rit.edu/~jpt2433/glftfont/)
|
||||
// by James Turk (jpt2433@rit.edu)
|
||||
// GLFT_Font (http://polimath.com/blog/code/glft_font/)
|
||||
// by James Turk (james.p.turk@gmail.com)
|
||||
// Based on work by Marijn Haverbeke (http://marijn.haverbeke.nl)
|
||||
//
|
||||
// Version 0.1 - Released 1 July 2005 - Initial Release
|
||||
// Version 0.2 - Released 18 July 2005 - Added beginDraw/endDraw,
|
||||
// Version 0.2.1 - Released 2 March 2008 - Updated contact information.
|
||||
// Version 0.2.0 - Released 18 July 2005 - Added beginDraw/endDraw,
|
||||
// Changed vsprintf to vsnprintf
|
||||
// Version 0.1.0 - Released 1 July 2005 - Initial Release
|
||||
//
|
||||
// $Id: GLFT_Font.hpp,v 1.1 2005/07/18 22:19:16 cozman Exp $
|
||||
//
|
||||
// Copyright (c) 2005, James Turk
|
||||
// Copyright (c) 2005-2008, James Turk
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
|
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
||||
test: test.cpp GLFT_Font.cpp
|
||||
g++ GLFT_Font.cpp test.cpp -o test -Wall -pedantic -lglfw -lGL -lfreetype `freetype-config --cflags`
|
||||
g++ GLFT_Font.cpp test.cpp -o test -Wall -pedantic -lglfw -lGL -lfreetype -pthread `freetype-config --cflags`
|
||||
|
||||
glftfont.tar.gz:
|
||||
tar -czf glftfont.tar.gz GLFT_Font.cpp GLFT_Font.hpp index.html README test.cpp Makefile
|
||||
|
13
README
13
README
@ -1,10 +1,13 @@
|
||||
// GLFT_Font (http://www.cs.rit.edu/~jpt2433/glftfont/)
|
||||
// by James Turk (jpt2433@rit.edu)
|
||||
// GLFT_Font (http://polimath.com/blog/code/glft_font/)
|
||||
// by James Turk (james.p.turk@gmail.com)
|
||||
// Based on work by Marijn Haverbeke (http://marijn.haverbeke.nl)
|
||||
//
|
||||
// Version 0.1 - Released 1 July 2005
|
||||
// Version 0.2.1 - Released 2 March 2008 - Updated contact information.
|
||||
// Version 0.2.0 - Released 18 July 2005 - Added beginDraw/endDraw,
|
||||
// Changed vsprintf to vsnprintf
|
||||
// Version 0.1.0 - Released 1 July 2005 - Initial Release
|
||||
//
|
||||
// Copyright (c) 2005, James Turk
|
||||
// Copyright (c) 2005-2008, James Turk
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@ -30,5 +33,3 @@
|
||||
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
// POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
$Id: README,v 1.1 2005/07/18 22:19:16 cozman Exp $
|
||||
|
60
index.html
60
index.html
@ -1,60 +0,0 @@
|
||||
<html>
|
||||
<head><title>GLFT_Font</title></head>
|
||||
<body>
|
||||
<h1>GLFT_Font</h1>
|
||||
|
||||
<h2>About GLFT_Font</h2>
|
||||
<p>
|
||||
GLFT_Font is originally by <a href="mailto:jpt2433@rit.edu">James Turk</a>
|
||||
although it is based on the work of
|
||||
<a href="http://marijn.haverbeke.nl">Marijn Haverbeke</a>. GLFT_Font allows
|
||||
programmers to use fonts in their OpenGL applications with great ease on any
|
||||
platform for which both <a href="http://freetype.org">FreeType2</a> and
|
||||
<a href="http://opengl.org">OpenGL</a> are available.
|
||||
</p>
|
||||
|
||||
<h2>Obtaining GLFT_Font</h2>
|
||||
<p>
|
||||
The latest copy of GLFT_Font will be available via this website.
|
||||
At the moment the latest version is <a href="glftfont-0.2.tar.gz">0.2</a>.
|
||||
</p>
|
||||
|
||||
<h2>Using GLFT_Font</h2>
|
||||
<p>
|
||||
Using GLFT_Font is designed to be extremely simple. The simplest use is:
|
||||
<hr />
|
||||
<pre>
|
||||
#include "GLFT_Font.h"
|
||||
|
||||
...
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
|
||||
...
|
||||
Font fnt("somefont.ttf", size);
|
||||
...
|
||||
fnt.drawText(x, y, "Hello World");
|
||||
</pre>
|
||||
<hr />
|
||||
GLFT_Font also includes support for finding the width/height of a string and
|
||||
drawText supports printf-style argument formatting. <br />
|
||||
<strong>New in 0.2:</strong> GLFT_Font now allows outputting text using C++
|
||||
style stream operators.
|
||||
</p>
|
||||
|
||||
<h2>Changelog</h2>
|
||||
<p>
|
||||
<ul>
|
||||
<li> <a href="glftfont-0.2.tar.gz">Version 0.2</a> - 18 July 2005 -
|
||||
Added beginDraw/endDraw and changed vsprintf to vsnprintf </li>
|
||||
<li> <a href="glftfont-0.1.tar.gz">Version 0.1</a> - 1 July 2005 -
|
||||
Initial Release </li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<hr />
|
||||
<p><em>$Id: index.html,v 1.2 2005/07/18 22:32:26 cozman Exp $</em></p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
3
test.cpp
3
test.cpp
@ -1,8 +1,7 @@
|
||||
// This file is distributed along with GLFT_Font and is in the public domain.
|
||||
// Compiled with g++ GLFT_Font.cpp test.cpp -o test -Wall -pedantic
|
||||
// -lglfw -lGL -lfreetype `freetype-config --cflags`
|
||||
// -lglfw -lGL -pthread -lfreetype `freetype-config --cflags`
|
||||
//
|
||||
// $Id: test.cpp,v 1.2 2005/07/18 22:28:27 cozman Exp $
|
||||
|
||||
#include <GL/glfw.h>
|
||||
#include "GLFT_Font.hpp"
|
||||
|
Loading…
Reference in New Issue
Block a user