the gl seems to be an instance of GdkWaylandGLContext but it keeps saying TypeError: gl.clearColor is not a function. How am i supposed to actually use GLArea inside of node-gtk and is it even possible?
The functions need to be bound through GObject-Introspection for C objects to be usable in javascript. Is this example working for any other GIR library such as pygobject or GJS?
I keep trying a few codes but it's not working at all.
I have been trying this:
the
gl
seems to be an instance ofGdkWaylandGLContext
but it keeps sayingTypeError: gl.clearColor is not a function
. How am i supposed to actually use GLArea inside of node-gtk and is it even possible?