Search
Sunday, 11th of March 2018, 17:21:36 UTC
17:53:27
akr
Hello, can someone please help me make sense of the "docs" for cl-opengl http://quickdocs.org/cl-opengl/api
17:53:38
akr
I want to create an opengl context on an already existing window
17:54:06
akr
I can get it through clx (bindings for xlib)
17:54:25
akr
but I don't know where to plug it in into cl-opengl
17:56:14
Shinmera
cl-opengl does not handle context or window creation. Those parts are heavily OS specific.
17:56:27
Shinmera
It only deals with the OpenGL API itself.
17:56:54
akr
hmm okay, what should I do then?
17:57:06
Shinmera
See glut, glfw, sdl2, glop, etc. to do that.
17:57:47
akr
aren't bindings to glut part of cl-opencl?
17:58:16
Shinmera
It's part of the project, but not part of the system.
17:58:28
Shinmera
Anyway, glut is /really old/, so I can't recommend using it.
17:58:48
Shinmera
Try cl-glfw3 or something.
18:00:51
Shinmera
glop is a "pure CL" attempt at doing the same, but it's a bit sketchy / underdeveloped in parts.
18:01:17
Shinmera
So depending on how you feel about foreign library dependencies...
18:02:05
akr
do you think I can plug the window obtained from xlib:screen-root directly into glfw:make-context-current?
18:05:02
Shinmera
All of these libraries will do the window creation for you. Is there any reason you want to do it yourself?
18:05:23
akr
like I said, I want to draw to a pre-existing window
18:05:31
akr
to be exact, the X root window
18:05:36
akr
as I want to render a live wallpaper
18:06:47
Shinmera
I suppose as a last resort you could browse the sources of GLFW's X11 implementation and pick the parts you need to creat the context and prepare the window.
18:07:44
akr
I'd guess that cl-glfw3 won't have bindings to the necessary functions
18:08:08
Shinmera
I'd be surprised if glfw3's public API itself does.
18:08:47
akr
nevermind then, thanks anyway
18:09:10
Shinmera
I assume it's typically not exposed because it is a rather low-level, platform specific detail.
18:11:02
Shinmera
On the other hand, this is a good opportunity to write a small library that can be re-used to get a X root GL context. :)
18:11:57
akr
unfortunately, I have no idea how one would go about doing that
18:12:28
Shinmera
Look at the sources of glfw/glop/etc, see what they do, then replicate that in CL.
18:12:43
Shinmera
except switching out window creation with plugging in the handle of the root window.
18:13:36
akr
maybe I'll try that later, gotta go do something else now
18:13:43
akr
in any case, thanks a lot for the info
19:11:53
oleo
at least got it to minimal now
20:28:33
schoppenhauer
hi. i get the error message ; READ error during COMPILE-FILE:; ; Symbol "*ASSEM-INSTRUCTIONS*" not found in the SB-ASSEM package. when trying to load SLIME (version 2.14; quicklisp)
20:31:58
schoppenhauer
ok updating to 2.20 helped
21:35:43
shka_
Shinmera: I created set of niche extensions to documentation-utils: https://github.com/sirherrbatka/documentation-utils-extensions
21:36:00
shka_
namely rich-formatter, and gathering stuff
3:50:20
drmeister
If I have multiple slime sessions running at the same time - does C-c C-c go just to the most recent one?
4:41:00
Bike
which one it is is in the mode line
4:41:05
Bike
you can do M-x slime-next-connection
4:50:50
borei
bit confused with the following problem, i have function (method), and one of the argument should be simple-array, i have declare for it
4:51:41
borei
im calling above function as (fun (#(1.0 2.0 3.0)), but getting error that #(1.0 2.0. 3.0) is not simple-array
4:52:26
Bike
(#(1.0 2.0 3.0)) is invalid syntax
4:54:35
Bike
okay, so what's the context of the error? a backtrace? full message?
4:54:45
beach
Good morning everyone!
4:55:29
borei
(SIMPLE-ARRAY SINGLE-FLOAT)
4:55:36
pjb
borei: simple-array is not a class.
4:55:44
beach
borei: That's different from what you said before.
4:56:00
Bike
yaeh that's different from "is not simple-array"
4:56:49
beach
borei: When the reader sees that, it creates a (SIMPLE-ARRAY T), not a (SIMPLE-ARRAY SINGLE-FLOAT).
4:56:49
pjb
borei: also, #(0.0 1.5 0.0 1.0) is a vector.
4:58:05
beach
borei: The declaration does not have to do with what the array happens to contain, but with what it is ALLOWED to contain. In this case, the reader creates an array that is allowed to contain anything. It just so happens that it contains only floats.
4:59:40
beach
smokeink: Thanks for posting the link to the Alan Kay's talk. Very interesting. I don't agree with everything he says, but many things are definitely true.
5:03:01
epony
morning, can I have the same link too (just joining)?
5:03:32
pjb
https://www.youtube.com/watch?v=FvmTSpJU-Xc Alan Kay - Normal Considered Harmful
5:11:47
chenbin
https://hackernoon.com/the-coolest-react-ui-frameworks-for-your-new-react-app-ad699fffd651 , which react based UI is lispers' favorite?
5:21:11
harryTrout
** NICK mangoicedtea
Monday, 12th of March 2018, 5:21:36 UTC