Starchasers / OCGlasses

mod for minecraft and addon for Open Computers
zlib License
31 stars 17 forks source link

Add OpenGL-esk triangle strip widget. #35

Closed elijahlorden closed 6 years ago

elijahlorden commented 7 years ago

In OpenGL you can pass the renderer a list of vertices to be rendered in one call, rather than many calls for each individual triangle. I propose a widget that takes an table of vertices in it's initializer and renders them all at once. The table would be a simple numeric array {#, #, #, #, #, #, #, #, #}, with each set of 3 numbers representing a triangle.

Kubuxu commented 7 years ago

It is done in the backend.

elijahlorden commented 7 years ago

Is it possible for this to be directly accessible via the LUA API?

Kubuxu commented 7 years ago

No that I know of.

marcin212 commented 6 years ago

Duplicate of #15

ben-mkiv commented 6 years ago

supported by OpenGlasses2 (custom shapes) https://minecraft.curseforge.com/projects/openglasses2

https://github.com/StarChasers/OCGlasses/wiki/Widget_Custom2D https://github.com/StarChasers/OCGlasses/wiki/Widget_Custom3D