←  APIs and Utilities

ComputerCraft | Programmable Computers for Minecraft

»

Buffer API

Xella's Photo Xella 03 Feb 2018

Hello there,
Today I've got my buffer API to how you. It's fairly simple to use:


Posted Image
Posted Image

Code (for copying):
Spoiler

Latest download (2.0):
https://pastebin.com/kep0mppq
Or type the following into the CraftOS shell:
pastebin get kep0mppq bufferAPI

Download (1.0):
https://pastebin.com/qU2pf0jy
Or type the following into the CraftOS shell:
pastebin get qU2pf0jy bufferAPI


Let me know if you have any questions.
Edited by Xelostar, 14 July 2018 - 11:49 AM.
Quote

Jummit's Photo Jummit 04 Feb 2018

I always used the window api for buffering, but I guess you have way more control over what is drawn when with this api. You can also use the old terminal without worrying about your buffer window. I think the window api is better in that regard that you can just write a normal program, and put everything the term api draws on a buffer window you created.
Quote

Xella's Photo Xella 04 Feb 2018

View PostJummit, on 04 February 2018 - 08:53 AM, said:

I always used the window api for buffering, but I guess you have way more control over what is drawn when with this api. You can also use the old terminal without worrying about your buffer window. I think the window api is better in that regard that you can just write a normal program, and put everything the term api draws on a buffer window you created.

That is true. I found out about the Window API after having worked on this quite a bit :P
Though I'm using this API for my 3D rendering API, because I added the triangle function (which takes quite some time to get right) and I'm pretty happy with that. I just thought I'd share it :)
Quote