moongl | luv | |
---|---|---|
5 | 14 | |
115 | 775 | |
- | 0.8% | |
2.5 | 8.1 | |
11 months ago | 2 months ago | |
C | C | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moongl
-
OpenGL with lua?
Anyone know how to get started doing OpenGL with lua? I tried this library -> https://github.com/stetre/moongl but kept getting certain errors when running make. So any one know any other library's or maybe some other ways of using OpenGL like maybe a c library with lua or something? Or maybe if anyone one has experience using this library maybe theres something I might be missing?
-
Documentation for LuaGL
If you don't mind using software developed and maintained by an individual (myself), there's MoonGL together with a few other companion libraries. They are all documented and come with quite a few examples.
-
Help me understand Lua game dev
If you want a proof of concept, check out this example. It is a port I made of the Breakout game from Joey de Vries' LearnOpenGL, using only binding libraries (no framework).
-
How to code a system where “everything can interact with everything”?
And you can absolutely implement an ECS in Lua. It won't be as performant as in a language where you have direct memory access, but there is more to the ECS pattern than just performance, like modularity and separation of data and logic. I would never suggest anyone to implement a full blown game engine in Lua (though you could, using bindings like this: https://github.com/stetre/moongl) but it is certainly possible.
-
What can i use to draw graphics with lua?
Bindings to OpenGL: https://github.com/stetre/moongl
luv
-
I can't build neovim
Hi, I had this issue and I solved it by building https://github.com/luvit/luv myself.
-
Where do I go after learning lua?
To answer the OP's question, you could tackle luv and libuv ecosystem, as a way to connect Lua to real-world systems (files, sockets, servers...). That's one way to put Lua skills to use, there are other great answers in the thread. Another recommendation is to go through Programming in Lua book, especially the later chapters where you learn how Lua talks to the host application.
-
What's the dogmatic way of dealing with leading and trailing newlines when running an external shell command from Neovim?
Alternatively you can get into the weeds and play around with the in built vim.loop (which is really just luv, specifically spawn to run commands on the OS and handle stdout processing via stream.
-
Purist neovim config
Unfortunately I doubt they are able to use netrw, it interfaces with user facing buffers too much. Telescope uses plenary which uses lua's luv implementation (bound to vim.loop). Fzf-lua uses an external binary called fzf
- Is it possible to get a program that doesn't use LUA to send data to a LUA program?
-
Library support situation?
Lua is still actively used so there is a great number of libraries that came out in last 9 years. A decent example is the luv library that is packed with great functionality. On the whole I'm quite satisfied with the ecosystem, but it all depends on the domain.
-
Run external process from neovim with lua
You should be able to find plenty of examples of asynchronous code at https://github.com/luvit/luv and translate it.
-
How do I use libuv filesystem event operations for handling filesystem management for plugins?
The first thing I would recommend is read the official documentation. Both libuv and luvit (or more specifically luv)
-
luv documentation in vimdoc format
I spent some time converting the luv documentation to make it available in :help and make the vim.loop module more discoverable. Thought plugin authors might be interested.
-
[Question] Multithreading in Neovim
I'm assuming this one.
What are some alternatives?
Craft - A simple Minecraft clone written in C using modern OpenGL (shaders).
plenary.nvim - plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
luasdl2 - A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
lit - Toolkit for developing, sharing, and running luvit/lua programs and libraries.
MangoHud - A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
nvim-lsp-ts-utils - Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.
cute_headers - Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
fs - Provide cross platform file operations based on libuv.
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
nvim-lua-guide - A guide to using Lua in Neovim
moonglfw - Lua bindings for GLFW
fwatch.nvim - fwatch.nvim lets you watch files or directories for changes and then run vim commands or lua functions.