r/GraphicsProgramming • • Mar 13 '22

Question What is a public domain graphics backend?

What is a public domain graphics backend?

More particularly, I was reading the demos for Nuklear:

https://github.com/Immediate-Mode-UI/Nuklear/tree/master/demo

and they give several options. I wonder if some of those are public domain.

0 Upvotes

12 comments sorted by

4

u/wrosecrans Mar 13 '22

No, none of those are public domain. But public domain is a very specific legal term, and almost nothing related to software is public domain. What are you actually looking for? What's the question behind the question? Why are you asking?

1

u/[deleted] Mar 13 '22

What backends should I use in order for the license of Nuklear to be as claimed (it claims to be public domain)?

2

u/[deleted] Mar 13 '22

That's unrelated. Nuklear's codebase is in the public domain, meaning everything inside that repository is in the public domain. Whatever backend you use, that statement remains true.

1

u/[deleted] Mar 13 '22

Whatever backend you use, that statement remains true.

I don't find this trivial, but I'm not very experienced with linking to large libraries. I was thinking that surely if the programs talk to each other, then it means that Nuklear must consider the license of the backend somehow. Since it calls it.

2

u/[deleted] Mar 13 '22

That's not true. Take Linux for example. Every program uses the system call interface to talk to the kernel, which is licensed with the GPL2. If you were right, every program that runs on Linux would be licensed with the GPL2, which is obviously not the case.

1

u/[deleted] Mar 13 '22 edited Mar 13 '22

But the GPL2 asks for some things. Like "Include Original", "Disclose Source", "Include Copyright", "State Changes" and "Include License". So why doesn't one need to to these for all programs on Linux? Well, because it seems that there's an exception for this: https://news.ycombinator.com/item?id=20138971 However, is this same also true for graphics backends?

1

u/[deleted] Mar 13 '22

The "exception" is the exact same thing with these graphics backends. It's an API to communicate to the GPU.

You're not using their source. If you load the opengl pointers, you might as well be loading random stuff from memory. You're not specifically using the driver code or something. The same is for system calls, you're just putting values in register and calling syscall (or some interrupt or whatever), you're not using the kernel source.

2

u/jcelerier Mar 13 '22

It was really not that simple and a very murky legal ground until Google v. Oracle. The GPL explicitly allows linking against system libraries, but is OpenGL really one if the gl driver is not provided by the OS but by a separate third party implementation ?

1

u/forestmedina Mar 13 '22

Ir depends on what you mean with software talking to each other, if you are static/dynamic linking GPL libraries then you code should be GPL. For commercial libraries you will need to specify the library as a requiriment. But if your software is communicating with other apps using sockets or something similar then it does not matter, but i don't have clear what is your current doubt.

1

u/[deleted] Mar 13 '22

It's already clear the the license of OpenGL does not restrict developers that only use the library. However, GLFW is under zlib/libpng. This should impose some restrictions for software that uses GLFW, right? So GLFW is not under the same license as OpenGL anymore?

1

u/forestmedina Mar 13 '22

,Zlib/libpng license is pretty permissive, but the first thing you should do is to read the license itself

4

u/wrosecrans Mar 13 '22

If Nuklear is in the public domain, then Nukclear itself is public domain. Using it with something else doesn't change that fact.

FWIW, you seem to be confused/concerned about software licensing and copyright status in-general, so asking in a graphics specific subreddit may not be the best place to seek clarity about legal/licensing issues.