root/trunk/docs/ft.html

Revision 255, 2.1 kB (checked in by aldacron, 2 years ago)

[Docs]
* corrected several spelling mistakes
* tweaked the wording of a few passages to make for clarity or to just make them more proper
* fixed a couple of glaring bugs that caused some bits of text to be invisible
* deleted a some things that were no longer relevant

  • Property svn:mime-type set to text/html
Line 
1 <html lang="en">
2 <head>
3     <title>DerelictGL</title>
4     <link rel="stylesheet" type="text/css" href="styles.css">
5 </head>
6 <body>
7 <hr>
8 <hr>
9 <h2 align="center">DerelictGL</h2>
10 <hr>
11 <hr>
12 <h3>Introduction</h3>
13 DerelictFT is a D binding to the <a href="http://www.freetype.org/">FreeType</a>
14 library. Currently, version 2.2.0 or later is supported.
15
16 <div class="note">It is important to understand the pitfalls surrounding the
17 use of the FreeType library, particularly when you use it in commercial projects.
18 Make sure you thoroughly explore the <a href="http://www.freetype.org/">FreeType
19 home page</a> before using the library.</div>
20
21 <div class="note">A precompiled FreeType DLL is bundled with DerelictFT for
22 Windows users. All users should be sure to read the accompnaying NOTES.txt
23 in the DerelictFT directory for more information.</div>
24
25 <h3>Using</h3>
26 <ol>
27 <li>Always make sure the DerelictFT source modules are available on your import
28 path.</li>
29 <li>In modules that make use of DerelictFT, you will need to import the derelict.freetype.ft
30 module.</li>
31 <li>Before calling any OpenGL functions, you need to make a call to <tt>DerelictFT.load()</tt>.
32 This will load the shared library.</li>
33 </ol>
34
35 <p>
36 The following is a complete program that loads DerelictFT:
37 </p>
38
39 <pre>
40 import derelict.freetype.ft;
41
42 void main()
43 {
44     DerelictFT.load();
45    
46     // now you can call FreeType functions
47 }
48 </pre>
49
50 <p>
51 As with other Derelict packages, DerelictFT will throw an exception if an error
52 occurs while loading the shared library. For more information on Derelict
53 exceptions, see the documentation for
54 <a href="loading.html">Loading/Unloading Shared Libraries</a>.
55 </p><p>
56 Finally, the method <tt>DerelictFT.unload()</tt> is provided for convenience. In normal
57 practice you do not need to call this function, as Derelict will unload the library
58 automatically when the app exits. You generally should only use this function if
59 you need to unload DerelictGL while the application is running.
60 </p>
61
62 <h3>Dependencies</h3>
63 <a href="util.html">DerelictUtil</a>
64
65 </body>
66 </html>
Note: See TracBrowser for help on using the browser.