Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Lua C API tutorial: using the stack and working with tables

Автор: Tyler Neylon

Загружено: 2015-12-05

Просмотров: 15921

Описание:

This tutorial covers the most fundamental functions of Lua's C API. This will be useful to anyone:
writing a Lua module that needs to run C code,
embedding Lua as a scripting language, or
creating a framework or game engine using Lua.

I don't specifically talk about C++ or Objective-C, but Lua's C API is compatible with those languages as well.

I previously made a video covering how to compile a C module, and how Lua loads C modules:    • Essentials of writing a Lua module in C  

This video starts out using a some skeleton C code for an example module. That skeleton code can be found here: https://gist.github.com/tylerneylon/5...

In order to compile the skeleton code, you'll need the files lua.h, luaconf.h, and lauxlib.h. Those can be found in any source download of Lua. Check your local Lua version by running "Lua -v" and then download the same-version source from here: http://www.lua.org/ftp/

This video also uses an educational module called apidemo. If you have luarocks, you can install this module by running:

sudo luarocks install apidemo

This module is open source; here is the repo for it:

https://github.com/tylerneylon/lua_ap...

If you like this tutorial, please subscribe to find out when more come out. I also live stream tutorials and game coding sessions: https://www.livecoding.tv/gaarlicbread/

Lua C API tutorial: using the stack and working with tables

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Essentials of writing a Lua module in C

Essentials of writing a Lua module in C

Automating Sequences via Lua Coroutines in C++

Automating Sequences via Lua Coroutines in C++

Программирование на ассемблере без операционной системы

Программирование на ассемблере без операционной системы

Embedding Lua in C++ #1

Embedding Lua in C++ #1

Где на самом деле используется Lua

Где на самом деле используется Lua

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

Functions in Lua, Roberto Ierusalimshy, PUC-Rio: LIM'17 talk 1

Functions in Lua, Roberto Ierusalimshy, PUC-Rio: LIM'17 talk 1

Falling in LÖVE with Lua

Falling in LÖVE with Lua

Intro to making a web server with nodejs and express

Intro to making a web server with nodejs and express

Code-It-Yourself! 3D Graphics Engine, часть №1 — Треугольники и проекции

Code-It-Yourself! 3D Graphics Engine, часть №1 — Треугольники и проекции

Everything You Need To Start Writing Lua

Everything You Need To Start Writing Lua

Встраивание Lua в C++ #9 — Метатаблицы и метаметоды

Встраивание Lua в C++ #9 — Метатаблицы и метаметоды

Перетест Ai MAX+ 395 в жирном мини-ПК и тест AMD 8060s vs Intel B390

Перетест Ai MAX+ 395 в жирном мини-ПК и тест AMD 8060s vs Intel B390

⚡️ Трампа встретили матом || Дерзкое заявление Зеленского

⚡️ Трампа встретили матом || Дерзкое заявление Зеленского

Garbage Collection in Lua, Roberto Ierusalimschy, PUC-Rio: LiM'19 talk 7

Garbage Collection in Lua, Roberto Ierusalimschy, PUC-Rio: LiM'19 talk 7

Learn Lua in an Hour

Learn Lua in an Hour

Tutorial: Using Lua with C++

Tutorial: Using Lua with C++

Embedding Lua in C++ #20 - Upvalues & Light Userdata

Embedding Lua in C++ #20 - Upvalues & Light Userdata

The price of speed: Lua or LuaJIT? Etiene Dalcol - London Lua August 2017

The price of speed: Lua or LuaJIT? Etiene Dalcol - London Lua August 2017

Scion2D C++ Game Engine | Ep.13 - Getting into Scripting with Lua

Scion2D C++ Game Engine | Ep.13 - Getting into Scripting with Lua

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com