File: readme.html

package info (click to toggle)
glfw 2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,180 kB
  • ctags: 2,274
  • sloc: ansic: 16,424; sh: 424; asm: 306; makefile: 227; pascal: 86
file content (128 lines) | stat: -rw-r--r-- 4,349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html>

<head>
  <title>GLFW Readme file for Lua</title>
</head>
<body>

<!-- TITLE -------------------------------------------------------------->
<center>
<font face="bookman old style,arial" size=+4><b>GLFW v2.5</b></font><br>
<font face="bookman old style,arial" size=+3>for Lua</font>
</center>

<!-- CONTENTS ----------------------------------------------------------->
<p>
<center>
<table border=0><tr><td>
<b>
<ol>
 <li><a href="#sec1">Introduction</li></a>
 <li><a href="#sec2">Compiling the luaglfw library</li></a>
 <li><a href="#sec3">Using GLFW from Lua</li></a>
 <li><a href="#sec4">The author</li></a>
</ol>
</b>
</td></tr></table>
</center>


<!----------------------------------------------------------------------->
<p><hr>
<!----------------------------------------------------------------------->

<a name="sec1">
<p><h2>1. Introduction</h2>

<p>This directory contains a Lua library that exposes most of the GLFW API
functionality to the Lua programming language.

<p>For further information on how to use GLFW you should read the GLFW
documentation.


<!----------------------------------------------------------------------->
<p><hr>
<!----------------------------------------------------------------------->

<a name="sec2">
<p><h2>2. Compiling the luaglfw library</h2>

<p>The GLFW interface library for Lua that you can find in the <b>src</b>
directory is a stand alone component, without any dependencies on other
Lua extensions. However it is fairly useless without Lua itself and some
kind of Lua library for OpenGL.

<p>You will most likely want to build a stand alone Lua interpreter that
is linked with the luaglfw library and some OpenGL library for Lua. If
you are doing something more advanced, such as integrating Lua into your
own C/C++ application, you probably know how to do it, so I will not go
into all the details.

<p>There is a very simple Lua interpreter included in the <b>src</b>
directory. To build it you need the following software compiled and
installed:

<ul>
  <li><a href="http://glfw.sf.net/">GLFW</a> (of course)</li>
  <li><a href="http://www.lua.org/">Lua</a> - A free light-weight
      programming language.</li>
  <li><a href="http://luagl.sourceforge.net/">LuaGL</a> - A free library
      that provides access to OpenGL.</li>
</ul>

<p>With the compiled interpreter, you should be able to run the example
programs in the <b>examples</b> directory.


<!----------------------------------------------------------------------->
<p><hr>
<!----------------------------------------------------------------------->

<a name="sec3">
<p><h2>3. Using GLFW from Lua</h2>

<p>The luaglfw library has been designed to work as similar to the
original GLFW library as possible. There are a few differences though:

<ul>
  <li>All function names begin with <b>glfw.</b> rather than <b>glfw</b>
      (for instance glfwInit is called glfw.Init)</li>
  <li>All constant names begin with <b>glfw.</b> rather than <b>GLFW_</b>
      (for instance GLFW_KEY_ESC is called glfw.KEY_ESC)</li>
  <li>Functions that return multiple results do so the Lua way rather
      than the C way (for instance glfwGetMousePos returns two numbers
      instead of taking two variable arguments)</li>
  <li>Functions that deal with boolean values do <i>not</i> use Lua
      booleans, but rather glfw.TURE/glfw.FALSE</li>
  <li>Some functions are unsupported under Lua: glfwReadImage,
      glfwFreeImage and all threading functions</li>
</ul>



<!----------------------------------------------------------------------->
<p><hr>
<!----------------------------------------------------------------------->

<a name="sec4">
<p><h2>3. The maintainer</h2>

<p>My name is Camilla Berglund,
<a href="mailto:elmindreda@users.sourceforge.net">elmindreda@users.sourceforge.net</a>.
Please visit our
<a href="http://sourceforge.net/projects/glfw/">support forums</a>
if you have any problems with GLFW or any questions concerning GLFW.

<p>The GLFW web site can be found here:
<a href="http://glfw.sourceforge.net/">http://glfw.sourceforge.net/</a>.
It contains the latest version of GLFW, news and other information that is
useful for OpenGL development.

<!----------------------------------------------------------------------->
<p><hr>
<!----------------------------------------------------------------------->

</body>
</html>