graph-rewriting-gl 0.6.6 → 0.6.7
raw patch · 4 files changed
+2/−69 lines, 4 filesdep −FTGLPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies removed: FTGL
API changes (from Hackage documentation)
- GraphRewriting.GL.Render: font :: Font
- GraphRewriting.GL.Render: renderString :: String -> IO ()
Files
- GraphRewriting/GL/Render.hs +0/−16
- font/DejaVuSansMono.ttf binary
- font/DejaVuSansMonoLicense.txt +0/−48
- graph-rewriting-gl.cabal +2/−5
GraphRewriting/GL/Render.hs view
@@ -5,9 +5,6 @@ import Graphics.Rendering.OpenGL (GLdouble) import qualified Graphics.Rendering.OpenGL as GL import Unsafe.Coerce-import Graphics.Rendering.FTGL-import Paths_graph_rewriting_gl-import System.IO.Unsafe (unsafePerformIO) -- | Here the OpenGL code for rendering a node can be given. The node-size is expected to be roughly 2 (radius 1) but this is not a requirement.@@ -30,16 +27,3 @@ vertex2 ∷ (Double,Double) → IO () vertex2 (x,y) = GL.vertex $ GL.Vertex2 (convertDouble x) (convertDouble y)--font ∷ Font-{-# NOINLINE font #-}-font = unsafePerformIO $ do- font <- createTextureFont =<< getDataFileName "font/DejaVuSansMono.ttf"- setFontFaceSize font 24 72- return font--renderString ∷ String → IO ()-renderString str = GL.preservingMatrix $ do- GL.translate $ vector2 (-0.36,-0.37)- GL.scale 0.05 0.05 (0 ∷ GLdouble)- renderFont font str Front
− font/DejaVuSansMono.ttf
binary file changed (322524 → absent bytes)
− font/DejaVuSansMonoLicense.txt
@@ -1,48 +0,0 @@-Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.--Bitstream Vera Fonts Copyright---------------------------------Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is-a trademark of Bitstream, Inc.--Permission is hereby granted, free of charge, to any person obtaining a copy-of the fonts accompanying this license ("Fonts") and associated-documentation files (the "Font Software"), to reproduce and distribute the-Font Software, including without limitation the rights to use, copy, merge,-publish, distribute, and/or sell copies of the Font Software, and to permit-persons to whom the Font Software is furnished to do so, subject to the-following conditions:--The above copyright and trademark notices and this permission notice shall-be included in all copies of one or more of the Font Software typefaces.--The Font Software may be modified, altered, or added to, and in particular-the designs of glyphs or characters in the Fonts may be modified and-additional glyphs or characters may be added to the Fonts, only if the fonts-are renamed to names not containing either the words "Bitstream" or the word-"Vera".--This License becomes null and void to the extent applicable to Fonts or Font-Software that has been modified and is distributed under the "Bitstream-Vera" names.--The Font Software may be sold as part of a larger software package but no-copy of one or more of the Font Software typefaces may be sold by itself.--THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS-OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,-TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME-FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING-ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF-THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE-FONT SOFTWARE.--Except as contained in this notice, the names of Gnome, the Gnome-Foundation, and Bitstream Inc., shall not be used in advertising or-otherwise to promote the sale, use or other dealings in this Font Software-without prior written authorization from the Gnome Foundation or Bitstream-Inc., respectively. For further information, contact: fonts at gnome dot-org.
graph-rewriting-gl.cabal view
@@ -1,5 +1,5 @@ Name: graph-rewriting-gl-Version: 0.6.6+Version: 0.6.7 Copyright: (c) 2010, Jan Rochel License: BSD3 License-File: LICENSE@@ -13,7 +13,6 @@ Once a graph rewriting system has been specified using the @graph-rewriting@ library this package can be used to create an application that allows to experiment with this system by interactively applying the rewrite rules. The usage of the interface is the same for all applications. In the center you will see the graph. It might be moving around which is due the force-directed layouting. On the top-left corner you will find a menu with the individual rewriting rules of the rewriting system. The controls are described in the "GraphRewriting.GL.UI" module. Category: Graphs, Graphics Cabal-Version: >= 1.6-Data-Files: font/DejaVuSansMonoLicense.txt font/DejaVuSansMono.ttf Library Build-Depends:@@ -24,8 +23,7 @@ GLUT >= 2.2 && < 2.3, OpenGL >= 2.4 && < 2.5, containers >= 0.3 && < 0.5,- AC-Vector >= 2.3 && < 2.4,- FTGL >= 1.333 && < 1.334+ AC-Vector >= 2.3 && < 2.4 Exposed-Modules: GraphRewriting.GL.UI GraphRewriting.GL.Render@@ -34,7 +32,6 @@ GraphRewriting.GL.Menu GraphRewriting.GL.Canvas GraphRewriting.GL.HyperEdge- Paths_graph_rewriting_gl Extensions: UnicodeSyntax FlexibleInstances