Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonoro1234/anima
my tools for making videos with opengl. Watch them at: https://vimeo.com/user67846254
https://github.com/sonoro1234/anima
glfw luajit opengl sdl
Last synced: 16 days ago
JSON representation
my tools for making videos with opengl. Watch them at: https://vimeo.com/user67846254
- Host: GitHub
- URL: https://github.com/sonoro1234/anima
- Owner: sonoro1234
- Created: 2018-11-13T18:07:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T17:20:38.000Z (27 days ago)
- Last Synced: 2025-01-17T12:15:40.309Z (23 days ago)
- Topics: glfw, luajit, opengl, sdl
- Language: Lua
- Homepage:
- Size: 9.76 MB
- Stars: 66
- Watchers: 8
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anima
my tools for making videos with opengl
watch them at:
https://vimeo.com/user67846254anima folder should be in lua folder and then
```lua
--this loads some globals
require"anima"
--create a 1200x800 canvas without SDL (with GLFW)
local GL = GLcanvas{H=800,aspect=1.5,SDL=false}function GL.init()
--init gl stuff here
endfunction GL.imgui()
--run imgui code here
endfunction GL.draw(t,w,h)
--do gl work here
endGL:start()
```# cloning
Remember to do a recursive cloning of the repo to pull submodules also.
git clone --recurse-submodules https://github.com/sonoro1234/anima.git
If already cloned and updating do from this repo folder:
git checkout master
git pull
git submodule update --init --recursive# compiling
In Linux you will need to install opengl libraries before building.
Started a building CMake system only needing -DLUAJIT_BIN="path where you desire installation".
From a sibling folder to the repo:cmake -DLUAJIT_BIN="/home/user/anima" ../anima
make installCMake 3.13 is needed for installing git submodules. (If your system doesnt have it it can be downloaded from https://cmake.org/download/ and then used from a script that sets the PATH)
Some CMake option to allow-disable building are:
* ANIMA_BUILD_LUAJIT - Building of LuaJIT
* ANIMA_BUILD_IM - Building of im
* ANIMA_BUILD_GLFW - Building of GLFW
* ANIMA_BUILD_SDL - Building of SDL2
* ANIMA_BUILD_SDL3 - Building of SDL3
* ANIMA_BUILD_FREETYPE - Building of freetype
* ANIMA_BUILD_IMGUI - Building of ImGui (This needs ANIMA_BUILD_GLFW or ANIMA_BUILD_SDL)
* ANIMA_BUILD_SNDFILE - Building of libsndfile and libsamplerate
* ANIMA_BUILD_RTAUDIO - Building of LuaJIT-rtaudio (defaults to OFF)
* LUAJIT_WINDOW_ONLY - Just things related to doing apps with imgui.# running
In windows use:
luajit script_to_run
In linux use:
./anima_launcher script_to_run