From 895c7f1a06de2d89347909d62da41be9d62f0d09 Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 12 Apr 2023 00:05:57 +0300 Subject: glBlitFramebuffer. --- ReiLua_API.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index fe1cd0e..a7e194a 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -542,6 +542,14 @@ RL.HUEBAR_SELECTOR_OVERFLOW=20 RL.LIGHT_DIRECTIONAL=0 RL.LIGHT_POINT=1 + +-- Globals - OpenGL + +RL.GL_COLOR_BUFFER_BIT=16384 +RL.GL_DEPTH_BUFFER_BIT=256 +RL.GL_STENCIL_BUFFER_BIT=1024 +RL.GL_NEAREST=9728 +RL.GL_LINEAR=9729 -- Core - Window ---Check if window has been initialized successfully @@ -5199,6 +5207,21 @@ function RL.rlSetLineWidth( width ) end ---@return any width function RL.rlGetLineWidth() end +-- OpenGL - Framebuffer management + +---Copy a block of pixels from one framebuffer object to another. +---Use -1 RenderTexture for window framebuffer. +---- Failure return false +---- Success return true +---@param srcTex any +---@param dstTex any +---@param srcRect table +---@param dstRect table +---@param mask integer +---@param filter integer +---@return any success +function RL.glBlitFramebuffer( srcTex, dstTex, srcRect, dstRect, mask, filter ) end + -- Easings - Linear Easing functions ---Ease linear -- cgit v1.2.3