nxpascal icon indicating copy to clipboard operation
nxpascal copied to clipboard

License of this project

Open z505 opened this issue 8 years ago • 2 comments

Hey, looks like a great project. You might want to mention the license in the readme file on the github page whether it's mit/bsd like license, public domain, modified LGPL, or such. I could not find the license in a few source files I looked over.

Also, any way to easily display a video file inside opengl with this toolkit? ZenGL has something like that for ogv videos.

Thanks for contributing this project.

z505 avatar Mar 07 '17 19:03 z505

The project used MIT License from times of code.google.com release, but seems there might need to be a mention here too. I added a new file in root dir.

  • It should be possible to use nxPascal in both free and commercial projects, but this library will always remain free and open source.

I haven't tried adding videos yet, it's quite complex topic with many solutions. http://wiki.lazarus.freepascal.org/Video_Playback_Libraries FFmpeg sounds promising. Internally nxPascal creates a TOpenGLContext that is a Lazarus component placed on TForm. You can access it with nx.window, and resize/move it same way as TPanel for example. So if you find a way to show a video on a simple Lazarus application, even a non-opengl one, you can display it on the form. You may need to hide the OpenGL context, but if you arrange video to show on top you might not have to. Did you know there can even be TButton components placed on top of OpenGL graphics? :)

Then those libraries might be able to stream the video directly into texture, in which case you can display it even on a face of a cube.

Zaflis avatar Mar 07 '17 20:03 Zaflis

That cool that you can put a button on it . I will look at how ZenGL displays a video, it probably displays it via opengl calls but I'm not sure. Would be cool if you could use zengl and nxpascal at the same time (just put both in uses clause) but not sure if that would be a good idea, as some things might act strange with two instances of opengl code running

Thanks for updating any license info, just wanted to make sure.

z505 avatar Mar 07 '17 20:03 z505