From 1f986071925b8e5104255d44a3d599a791bd74c6 Mon Sep 17 00:00:00 2001 From: Rebekah Rowe Date: Tue, 19 Apr 2022 10:00:23 -0400 Subject: [PATCH] Edited Readme --- readme.md | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index e6bed80..47ba7d3 100644 --- a/readme.md +++ b/readme.md @@ -1,13 +1,47 @@ -# Libglez +# Mclib-lua -Libglez is a library for drawing primitives with opengl! +Bindings for mclib -This library requires freetype-gl to be patched with ftgl-vertex-attribute.patch. +## Build +```bash +mkdir build && cd build +cmake -DCMAKE_BUILD_TYPE=Release .. +make +``` -### Credits +## Usage of exports +```lua +require("mclib_lua") -nullifiedcat: original creator <3 -@oneechanhax: Maintainer -@thinkingmaster: Contributor -@BenCat07: Contributor +local GetMc = function() + return { + block = { + BlockRegistry = mclib_block_BlockRegistry + }, + core = { + Client = mclib_core_Client, + ClientSettings = mclib_core_ClientSettings, + Connection = mclib_core_Connection, + UpdateMethod = mclib_core_UpdateMethod + }, + protocol = { + packets = { + PacketDispatcher = mclib_protocol_packets_PacketDispatcher + }, + }, + util = { + PlayerController = mclib_util_PlayerController, + VersionFetcher = mclib_util_VersionFetcher + }, + MainHand = mclib_MainHand, + --GetNode = function() + -- mclib.get_node(pos.x, pos.y, pos.z) + --end, + --GetPlayerPos = function() + -- return vector.new(mclib.GetPlayerPos()) + --end + } +end +local mc = GetMc() +```