Jump to content




Buffer API


2 replies to this topic

#1 Xella

  • Members
  • 145 posts
  • LocationOn Earth

Posted 03 February 2018 - 02:29 PM

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.


#2 Jummit

  • Members
  • 306 posts
  • LocationJulfander Squad Studio

Posted 04 February 2018 - 08:53 AM

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.

#3 Xella

  • Members
  • 145 posts
  • LocationOn Earth

Posted 04 February 2018 - 09:36 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users