Tbag

Tea-bag is Third party extension utility project.

View the Project on GitHub osom8979/tbag

TBAG

Introduction

Tea-bag is Third party extension utility project.

Dep target

External target

Inline libraries

Resources

Dependencies

## 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

Programming rules.

CMake build options.

The main build options you will want to configure are as follows:

Tpot

Environment variables.

Game Engine

Simple example

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()

License

See the LICENSE file for details. In summary, tbag is licensed under the MIT license.

+--------------------------+
|    __  __                |
|   / /_/ /_  ____ _____ _ |
|  / __/ __ \/ __ `/ __ `/ |
| / /_/ /_/ / /_/ / /_/ /  |
| \__/_.___/\__,_/\__, /   |
|                /____/    |
| Third party libs package |
+--------------------------+