Tea-bag is Third party extension utility project.
Tea-bag is Third party extension utility project.
## x11, xRandr
sudo apt-get install xorg-dev
## OpenGL
sudo apt-get install libglu1-mesa-dev
Optional:
## OpenCL
sudo apt-get install ocl-icd-opencl-dev
## UDev
sudo apt-get install libudev-dev
## xcb-image
sudo apt-get install libxcb-image0-dev
The main build options you will want to configure are as follows:
USE_CCACHE
: Enable ccache
compile.USE_GOLD
: Enable ld.gold
linker if gcc
compiler.USE_PCH
: Enable PCH compile.USE_OPENGL
: Enable OpenGL
library.USE_OPENCL
: Enable OpenCL
library.USE_CUDA
: Enable CUDA
compile.USE_DOXYGEN
: Enable doxygen
documentation.USE_RTTI
: Enable RTTI flag.DISABLE_TDLOG
: Disable tbag default logger.DISABLE_LUAJIT_EXE_FLAGS
: Disable LuaJIT Embedding flags if apple.DISABLE_DEFAULT_TPOT_LUAJIT
: Do not use the default TpoT mode as LuaJIT.DISABLE_TESTER
: Do not build the tester target.INSTALL_WITH_FAKE_LUAJIT
: Install fake LuaJIT.luajit + raylib + imgui example:
-- Core - Basic window
width = 800
height = 450
tbag.SetConfigFlags(tbag.FLAG_WINDOW_RESIZABLE);
tbag.InitWindow(width, height, 'Basic window')
tbag.GuiInitRay()
tbag.GuiNodesInitialize()
tbag.SetTargetFPS(60)
gradient = tbag.GenImageGradientV(400, 400, tbag.RED, tbag.BLUE);
texture = tbag.LoadTextureFromImage(gradient);
tbag.UnloadImage(gradient);
gradient = nil
while not tbag.WindowShouldClose() do
tbag.GuiUpdateRay()
if tbag.GuiBegin('Window') then
tbag.GuiText('Label')
end
tbag.GuiEnd()
tbag.GuiShowDemoWindow()
tbag.GuiNodesShowDemoWindow()
tbag.BeginDrawing()
tbag.ClearBackground({30, 30, 30})
tbag.DrawTexture(texture, 0, 0, tbag.WHITE);
tbag.DrawCircleV({width/2, height/2}, 50, tbag.RED);
text = tbag.format('Current FPS: {}', tbag.GetFPS())
tbag.DrawText(text, 10, 20, 20, {200, 200, 200});
tbag.EndDrawing()
end
tbag.UnloadTexture(texture);
texture = nil
tbag.GuiNodesShutdown()
tbag.GuiShutdownRay()
tbag.CloseWindow()
See the LICENSE
file for details. In summary, tbag is licensed under the MIT license.
+--------------------------+
| __ __ |
| / /_/ /_ ____ _____ _ |
| / __/ __ \/ __ `/ __ `/ |
| / /_/ /_/ / /_/ / /_/ / |
| \__/_.___/\__,_/\__, / |
| /____/ |
| Third party libs package |
+--------------------------+