lib: create directories for some lib (in order to prepare examples)
authorJean Privat <jean@pryen.org>
Tue, 30 Sep 2014 20:00:08 +0000 (16:00 -0400)
committerJean Privat <jean@pryen.org>
Tue, 30 Sep 2014 23:51:02 +0000 (19:51 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/bcm2835/bcm2835.nit [moved from lib/bcm2835.nit with 100% similarity]
lib/glesv2/glesv2.nit [moved from lib/glesv2.nit with 99% similarity]
lib/html/html.nit [moved from lib/html.nit with 100% similarity]
lib/websocket/websocket.nit [moved from lib/websocket.nit with 99% similarity]

similarity index 100%
rename from lib/bcm2835.nit
rename to lib/bcm2835/bcm2835.nit
similarity index 99%
rename from lib/glesv2.nit
rename to lib/glesv2/glesv2.nit
index a039717..9123bc8 100644 (file)
@@ -109,7 +109,7 @@ extern class GLShader `{GLuint`}
 
 end
 
-extern class GLFragmentShader 
+extern class GLFragmentShader
        super GLShader
 
        new `{ return glCreateShader(GL_FRAGMENT_SHADER); `}
@@ -117,7 +117,7 @@ end
 
 extern class GLVertexShader
        super GLShader
-       
+
        new `{ return glCreateShader(GL_VERTEX_SHADER); `}
 end
 
@@ -181,7 +181,7 @@ extern class GLError `{ GLenum `}
 end
 
 protected fun gl_clear_color(r, g, b, a: Float) `{ glClearColor(r, g, b, a); `}
-protected fun gl_viewport(x, y, width, height: Int) `{ glViewport(x, y, width, height); `} 
+protected fun gl_viewport(x, y, width, height: Int) `{ glViewport(x, y, width, height); `}
 protected fun gl_vertex_attrib_pointer_int(index, length: Int, normalize: Bool, stride: Int, vertex: Array[Int]) import Array[Int].length, Array[Int].intern_items `{
        int* c_vertex = Array_of_Int_intern_items(vertex);
        glVertexAttribPointer(index, length, GL_INT, normalize, stride, c_vertex);
similarity index 100%
rename from lib/html.nit
rename to lib/html/html.nit
similarity index 99%
rename from lib/websocket.nit
rename to lib/websocket/websocket.nit
index 201fa92..9066391 100644 (file)
@@ -241,6 +241,4 @@ class WebSocket
        fun can_read(timeout: Int): Bool do return client.ready_to_read(timeout)
 
        redef fun poll_in do return client.poll_in
-
 end
-