Skip to content

Commit

Permalink
permissions changed, windows driver error detection? framebuffers?
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcman committed Dec 2, 2018
1 parent 2fe8b4e commit 2df5263
Show file tree
Hide file tree
Showing 130 changed files with 51 additions and 40 deletions.
Empty file modified .gitignore 100644 → 100755
Empty file.
Empty file modified INSTALL.md 100644 → 100755
Empty file.
Empty file modified LICENSE 100644 → 100755
Empty file.
Empty file modified README.md 100644 → 100755
Empty file.
Empty file modified application/README 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/application/application.asd 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/application/application.lisp 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/clock/clock.asd 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/clock/clock.lisp 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/control/control.asd 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/control/control.lisp 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/deflazy/deflazy.asd 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/deflazy/dependency-graph.lisp 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/deflazy/lazy-loading.lisp 100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified application/app-subsystem/opengl-immediate/opengl-immediate.asd 100644 → 100755
Empty file.
Empty file.
Empty file modified application/app-subsystem/scratch-buffer/scratch-buffer.asd 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/scratch-buffer/scratch-buffer.lisp 100644 → 100755
Empty file.
Empty file modified application/app-subsystem/window/window.asd 100644 → 100755
Empty file.
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions application/basic0/basic0.lisp 100644 → 100755
Expand Up @@ -330,7 +330,7 @@
(declare (ignorable this))
(application::quit))
"quit"
(integer-point 0 0)))
(integer-point 0 1)))
#+nil
(add-sprite
(plain-button
Expand All @@ -344,7 +344,7 @@
(add-sprite
(make-instance
'sprite
:position (integer-point 10 0)
:position (integer-point 10 1)
:bounding-box rect
:tickfun
(lambda ()
Expand Down
Empty file modified application/basic0/old.lisp 100644 → 100755
Empty file.
Empty file modified application/basic0/save/test/(-16 -16 -16) 100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions application/basic0/save/test/(-16 -16 0) 100644 → 100755
Expand Up @@ -8,12 +8,12 @@
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 2 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 2 2 2 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 2 2 2 57344 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 1 1 3 3 3 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 1 1 1 1 3 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 57344 1 1 1 57344 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 57344 53248 53248
53248 57344 61440 61440 61440 61440 61440 61440 2 61440 61440 61440 61440
53248 57344 61440 61440 61440 61440 61440 57344 2 61440 61440 61440 61440
57344 57344 57344 57344 57344 61440 61440 61440 61440 61440 61440 2 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 57344 1 1 57344 61440
Expand Down
Empty file modified application/basic0/save/test/(-16 0 -16) 100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions application/basic0/save/test/(-16 0 0) 100644 → 100755
Expand Up @@ -21,7 +21,7 @@
61440 1 1 1 53248 57344 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 1 1 1 57344 57344 57344 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 57344 53248 57344 61440 61440 57344 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 57344 53248 57344 61440 61440 57344 61440
61440 61440 61440 61440 61440 61440 57344 53248 57344 61440 57344 57344 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 1 1 1 57344 57344 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 18 1 1 1 57344
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 57344 18 18 18 18
Expand All @@ -38,7 +38,7 @@
61440 61440 61440 61440 61440 61440 61440 61440 3 1 1 57344 57344 57344 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 57344 53248 57344 61440
61440 57344 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 57344
53248 57344 61440 61440 57344 61440 61440 61440 61440 61440 61440 61440 61440
53248 57344 61440 57344 57344 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 3 3 1 57344 57344 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 18 3 3 3 57344 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 57344 18 18 18 18 61440 61440 61440 61440 61440 61440 61440
Expand All @@ -54,7 +54,7 @@
61440 61440 61440 2 3 3 3 57344 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 3 3 3 57344 57344 57344 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 3 3 3 61440 61440 57344 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 3 3 3 61440 61440 57344 61440 61440 61440
61440 61440 61440 61440 61440 61440 3 3 3 61440 57344 57344 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 2 3 3 3 57344 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 3 3 3 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 57344 57344 53248 53248 57344
Expand All @@ -71,7 +71,7 @@
61440 61440 61440 61440 61440 61440 61440 2 3 3 3 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 2 3 3 3 57344 57344 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 2 3 3 61440 61440 57344 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 3 3 61440 61440 57344
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 3 3 61440 57344 57344
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 2 3 3 3
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
2 2 2 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 18 18 18 18
Expand All @@ -88,7 +88,7 @@
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 2 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 2 2 2 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 61460 61460 2 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 61460 61460 2
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 61460 57364 2
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 2 2 2
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
Expand All @@ -107,7 +107,7 @@
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 3 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440 61440
Expand Down
Empty file modified application/basic0/save/test/(-16 16 -16) 100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions application/basic0/save/test/(-16 16 0) 100644 → 100755
Expand Up @@ -18,7 +18,7 @@
61440 61440 61440 61440 57344 53248 49152 45056 45056 1 1 1 1 1 1 3 61440
61440 61440 61440 57344 53248 53248 49152 45056 45056 1 1 1 1 3 61440 61440
61440 2 57344 57344 57344 57344 53248 49152 49152 53248 57344 61440 61440
61440 61440 57344 57344 3 2 61440 61440 61440 57344 53248 49152 53248 57344
57344 61440 57344 57344 3 2 61440 61440 61440 57344 53248 49152 53248 57344
61440 61440 61440 57344 53248 53248 3 2 61440 61440 61440 61440 57344 53248
49152 53248 57344 61440 61440 57344 53248 53248 57344 61440 61440 61440 61440
61440 57344 53248 53248 53248 53248 2 3 2 2 57344 61440 61440 61440 61440
Expand All @@ -33,7 +33,7 @@
61440 61440 61440 57344 53248 2 3 1 1 1 1 1 1 3 61440 61440 61440 61440 57344
53248 49152 45056 49152 1 3 1 1 1 3 3 61440 61440 61440 61440 57344 53248
53248 49152 45056 45056 3 3 3 3 3 61440 61440 61440 57344 57344 57344 57344
57344 53248 49152 49152 53248 57344 61440 61440 61440 61440 57344 57344 2
57344 53248 49152 49152 53248 57344 61440 61440 57344 61440 57344 57344 2
57344 61440 61440 61440 57344 53248 49152 53248 57344 61440 61440 61440 57344
53248 53248 2 61440 61440 61440 61440 61440 57344 53248 49152 53248 57344
61440 61440 57344 53248 53248 57344 61440 61440 61440 61440 61440 57344 53248
Expand All @@ -50,11 +50,11 @@
61440 61440 61440 61440 57344 53248 49152 49152 53248 2 3 3 3 3 3 2 61440
61440 61440 61440 57344 53248 53248 49152 49152 45056 2 3 3 3 2 61440 61440
61440 57344 57344 57344 57344 57344 53248 49152 49152 53248 57344 61440 61440
61440 61440 57344 57344 57344 57344 61440 61440 61440 57344 53248 49152 53248
3 61440 57344 57344 57344 57344 61440 61440 61440 57344 53248 49152 53248
57344 61440 61440 61440 57344 53248 53248 57344 61440 61440 61440 61440 61440
57344 53248 49152 53248 57344 61440 61440 57344 53248 53248 57344 61440 61440
61440 61440 61440 57344 53248 53248 53248 57344 61440 61440 61440 57344 57344
61440 61440 61440 61440 61440 61440 61440 57344 57344 57344 61440 2 2 2 5 5
61440 61440 61440 61440 61440 61440 61440 57344 57344 57344 61440 2 2 2 5 3
61440 61440 61440 2 3 2 61440 61440 61440 61440 61440 2 3 2 61440 61440 61440
61440 61440 3 3 1 61440 61440 61440 61440 61440 2 3 2 61440 61440 61440 61440
61440 3 1 1 61440 61440 61440 61440 61440 2 2 61440 61440 61440 61440 61440
Expand Down
Empty file modified application/basic0/save/test/(0 -16 -16) 100644 → 100755
Empty file.
Empty file modified application/basic0/save/test/(0 -16 0) 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion application/basic0/save/test/(0 0 -16) 100644 → 100755
Expand Up @@ -174,7 +174,7 @@
61440 61440 61440 61440 3 3 3 3 53248 57344 57344 61440 61440 61440 61440
57344 61440 61440 61440 61440 3 3 3 3 57344 61440 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 3 3 3 3 57344 61440 61440 61440 61440
61440 61440 61440 61440 61440 61440 3 3 3 3 3 57344 61440 61440 61440 61440
61440 61440 61440 61440 61440 24 3 3 3 3 3 57344 61440 61440 61440 61440
61440 61440 3 3 3 3 3 3 3 3 3 57344 61440 61440 61440 61440 61440 61440 3 3 3
3 3 3 3 3 3 57344 61440 61440 61440 61440 61440 61440 3 3 3 3 3 3 3 3 3 57344
61440 61440 61440 61440 61440 61440 3 3 1 1 1 3 3 3 3 57344 61440 61440 61440
Expand Down
Empty file modified application/basic0/save/test/(0 0 0) 100644 → 100755
Empty file.
Empty file modified application/basic0/save/test/(0 16 -16) 100644 → 100755
Empty file.
Empty file modified application/basic0/save/test/(0 16 0) 100644 → 100755
Empty file.
Empty file modified application/basic0/sucle.asd 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/block-data.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/block-light.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/block-meshing.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/change-world.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/package.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/persist-world.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/queue.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/sandbox.asd 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/vox.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/sandbox/world.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/text-subsystem/font.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified application/subsystems/text-subsystem/test.lisp 100644 → 100755
Empty file.
Empty file modified application/subsystems/text-subsystem/text-subsystem.asd 100644 → 100755
Empty file.
7 changes: 3 additions & 4 deletions application/subsystems/text-subsystem/text-subsystem.lisp 100644 → 100755
Expand Up @@ -255,8 +255,7 @@

(deflazy flat-shader-source ()
(glslgen:ashader
:version 120
:vs
:version 120 :vs
(glslgen2::make-shader-stage
:out '((value-out "vec4"))
:in '((position "vec4")
Expand Down Expand Up @@ -285,8 +284,7 @@
;;;;;;;;;;;;;;;;;;;;
(deflazy indirection-shader-source ()
(glslgen:ashader
:version 120
:vs
:version 120 :vs
(glslgen2::make-shader-stage
:out '((texcoord-out "vec2"))
:in '((position "vec4")
Expand Down Expand Up @@ -364,4 +362,5 @@
(application::refresh 'indirection t))
(gl:bind-framebuffer :framebuffer (glhelp::handle (getfnc 'indirection)))
(gl:clear :color-buffer-bit)
(gl:clear :depth-buffer-bit)
(gl:call-list (glhelp::handle (getfnc 'fullscreen-quad)))))
Empty file modified application/testbed/minecraft/blocks.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/colorize.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/files.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/mcr-test.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/render/meshes.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/render/render.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/voxel/sandbox.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/voxel/test.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/minecraft/voxel/testbed.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/sandbox-subsystem.lisp 100644 → 100755
Empty file.
Empty file modified application/testbed/terrain.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified application/testbed/testbed.asd 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion application/testbed/testbed.lisp 100644 → 100755
Expand Up @@ -82,7 +82,7 @@
(glhelp::create-gl-program solidshader-text))
(application:deflazy solidshader-text ()
(glslgen::ashader
:version 120
:version 330
:vs
(glslgen2::make-shader-stage
:out '((color-out "vec3"))
Expand Down
Empty file modified application/testbed/tests.lisp 100644 → 100755
Empty file.
Empty file modified lib/bin/binaries.lisp 100644 → 100755
Empty file.
Empty file modified lib/bin/win32/glfw3.dll 100644 → 100755
Empty file.
Empty file modified lib/bin/win32/libffi-6.dll 100644 → 100755
Empty file.
Empty file modified lib/bin/win32/libncurses.dll 100644 → 100755
Empty file.
Empty file modified lib/bin/win64/glfw3.dll 100644 → 100755
Empty file.
Empty file modified lib/bin/win64/libffi-6.dll 100644 → 100755
Empty file.
Empty file modified lib/bin/win64/libncurses.dll 100644 → 100755
Empty file.
Empty file modified lib/quicklisp/bundler-quicklisp.asd 100644 → 100755
Empty file.
Empty file modified lib/quicklisp/bundler-quicklisp.lisp 100644 → 100755
Empty file.
Empty file modified src/README 100644 → 100755
Empty file.
Empty file modified src/character-modifier-bits/README 100644 → 100755
Empty file.
Empty file modified src/character-modifier-bits/character-modifier-bits.asd 100644 → 100755
Empty file.
Empty file modified src/character-modifier-bits/character-modifier-bits.lisp 100644 → 100755
Empty file.
Empty file modified src/data-structures/doubly-linked-list/doubly-linked-list.asd 100644 → 100755
Empty file.
Empty file modified src/data-structures/doubly-linked-list/doubly-linked-list.lisp 100644 → 100755
Empty file.
Empty file modified src/data-structures/matrix/matrix.asd 100644 → 100755
Empty file.
Empty file modified src/data-structures/matrix/matrix.lisp 100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified src/data-structures/reverse-array-array/iterator.lisp 100644 → 100755
Empty file.
Empty file modified src/data-structures/reverse-array-array/reverse-array-array.asd 100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified src/data-structures/reverse-array-iterator/user.lisp 100644 → 100755
Empty file.
Empty file modified src/data-structures/sprite-chain/sprite-chain.asd 100644 → 100755
Empty file.
Empty file modified src/data-structures/sprite-chain/sprite-chain.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/aabbcc/aabbcc.asd 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/aabbcc/aabbcc.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/camera-matrix/camera-matrix.asd 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/camera-matrix/camera-matrix.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/point/point.asd 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/point/point.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/quads/axis-aligned-quads.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/quads/quads.asd 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/quads/rectangle.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/quads/rectangular-tilemap.lisp 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/triangles/triangles.asd 100644 → 100755
Empty file.
Empty file modified src/euclidean-geometry/triangles/triangles.lisp 100644 → 100755
Empty file.
Empty file modified src/image/image-utility/image-utility.asd 100644 → 100755
Empty file.
Empty file modified src/image/image-utility/image-utility.lisp 100644 → 100755
Empty file.
Empty file modified src/nsb-cga/nsb-cga.asd 100644 → 100755
Empty file.
Empty file modified src/nsb-cga/nsb-cga.lisp 100644 → 100755
Empty file.
Empty file modified src/nsb-cga/package.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/README 100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion src/opengl/glhelp.asd 100644 → 100755
@@ -1,5 +1,6 @@
(asdf:defsystem #:glhelp
:depends-on (#:cl-opengl)
:depends-on (#:cl-opengl
#:split-sequence)
:serial t
:components
((:file "glhelp")
Expand Down
49 changes: 30 additions & 19 deletions src/opengl/glhelp.lisp 100644 → 100755
Expand Up @@ -65,10 +65,20 @@
(gl:shader-source shader string)
(gl:compile-shader shader)
(let ((success (gl:get-shader-info-log shader)))
(unless (zerop (length success))
(unless (gl-success success)
(print success)
(error "~S" success))))

(defun string-match? (a b)
(let ((log (remove "" (split-sequence:split-sequence #\Newline a)
:test #'string=)))
(string= (car (last log))
b)))

(defun gl-success (success)
(or (zerop (length success))
(string-match? success "No errors.")))

;;;;attribs is an alist of pairs (a . b) with
;;;;(lambda (a b) (gl:bind-attrib-location ...[the program].. a b)
(defun make-shader-program-from-strings (vs-string fs-string attribs)
Expand All @@ -89,7 +99,7 @@

(gl:link-program program)
(let ((success (gl:get-program-info-log program)))
(unless (zerop (length success))
(unless (gl-success success)
(print success)
(error "~S" success)))
(gl:detach-shader program vert)
Expand All @@ -116,15 +126,15 @@
(gl:active-texture (+ num +gltexture0+))))

(defun bind-default-framebuffer ()
(gl:bind-framebuffer-ext :framebuffer-ext 0))
(gl:bind-framebuffer :framebuffer 0))


(defun create-framebuffer (w h)
(let ((framebuffer (first (gl:gen-framebuffers-ext 1)))
(depthbuffer (first (gl:gen-renderbuffers-ext 1)))
(let ((framebuffer (first (gl:gen-framebuffers 1)))
(depthbuffer (first (gl:gen-renderbuffers 1)))
(texture (first (gl:gen-textures 1))))
;; setup framebuffer
(gl:bind-framebuffer-ext :framebuffer-ext framebuffer)
(gl:bind-framebuffer :framebuffer framebuffer)

(progn
;; setup texture and attach it to the framebuffer
Expand All @@ -133,23 +143,24 @@
(gl:tex-parameter :texture-2d :texture-mag-filter :nearest)
(gl:tex-image-2d :texture-2d 0 :rgba w h 0 :rgba :unsigned-byte (cffi:null-pointer))
(gl:bind-texture :texture-2d 0)
(gl:framebuffer-texture-2d-ext :framebuffer-ext
:color-attachment0-ext
:texture-2d
texture
0))
(gl:framebuffer-texture-2d :framebuffer
:color-attachment0
:texture-2d
texture
0))
(progn
;; setup depth-buffer and attach it to the framebuffer
(gl:bind-renderbuffer-ext :renderbuffer-ext depthbuffer)
(gl:renderbuffer-storage-ext :renderbuffer-ext :depth-component24 w h)
(gl:framebuffer-renderbuffer-ext :framebuffer-ext
:depth-attachment-ext
:renderbuffer-ext
depthbuffer))
(gl:bind-renderbuffer :renderbuffer depthbuffer)
(gl:renderbuffer-storage :renderbuffer :depth-component24 w h)
(gl:framebuffer-renderbuffer
:framebuffer
:depth-attachment
:renderbuffer
depthbuffer))

;; validate framebuffer
(let ((framebuffer-status (gl:check-framebuffer-status-ext :framebuffer-ext)))
(unless (gl::enum= framebuffer-status :framebuffer-complete-ext)
(let ((framebuffer-status (gl:check-framebuffer-status :framebuffer)))
(unless (gl::enum= framebuffer-status :framebuffer-complete)
(error "Framebuffer not complete: ~A." framebuffer-status)))

#+nil
Expand Down
Empty file modified src/opengl/glslgen.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/glslgen2.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/handles.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/other.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/protocode/globjects.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/protocode/webglsl/package.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/protocode/webglsl/types.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/protocode/webglsl/webglsl-generator.lisp 100644 → 100755
Empty file.
Empty file modified src/opengl/protocode/webglsl/webglsl-grammar.lisp 100644 → 100755
Empty file.
Empty file modified src/uncommon-lisp/struct-to-clos.lisp 100644 → 100755
Empty file.
Empty file modified src/uncommon-lisp/uncommon-lisp.asd 100644 → 100755
Empty file.
Empty file modified src/window-opengl-glfw3/enum.lisp 100644 → 100755
Empty file.
Empty file modified src/window-opengl-glfw3/input-array.lisp 100644 → 100755
Empty file.
Empty file modified src/window-opengl-glfw3/opengl-glfw3.asd 100644 → 100755
Empty file.
Empty file modified src/window-opengl-glfw3/package.lisp 100644 → 100755
Empty file.
Empty file modified src/window-opengl-glfw3/window.lisp 100644 → 100755
Empty file.
Empty file modified start.lisp 100644 → 100755
Empty file.

0 comments on commit 2df5263

Please sign in to comment.