-
-
Notifications
You must be signed in to change notification settings - Fork 4
GPU3D
tom5454 edited this page Nov 5, 2023
·
2 revisions
A special GPU context capable of drawing 3D scenes. Use the render function to finish drawing the current frame.
Don't forget the sync to send the output buffer to the default GPU context.
Render the 3D scene into the window buffer.
Sync the Window
Return all constants
local glc = {}
local allConst = { gl.getConstants() }
for i=1,#allConst/2 do
glc[allConst[i * 2 - 1]] = allConst[i * 2]
end
-- Usage example: glc.GL_TEXTURE_2D