Skip to content

Commit 46bd9c6

Browse files
committed
added checkFramebufferStatus to interface.
1 parent d91d408 commit 46bd9c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Graphics/WebGLFramebuffer.purs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ module Graphics.WebGLFramebuffer
1616
(
1717
WebGLBuf(..)
1818
, createFramebuffer
19+
, checkFramebufferStatus
1920
, bindFramebuffer
2021
, unbindFramebuffer
2122
, WebGLRendBuf(..)
2223
, createRenderbuffer
23-
, bindRenderbuffer
24+
, bindRenderbuffer
2425
, unbindRenderbuffer
2526
, RenderbufferFormat(..)
2627
, renderbufferStorage
@@ -62,6 +63,9 @@ attachementPointToConst DEPTH_ATTACHMENT = _DEPTH_ATTACHMENT
6263
attachementPointToConst STENCIL_ATTACHMENT = _STENCIL_ATTACHMENT
6364
attachementPointToConst DEPTH_STENCIL_ATTACHMENT = _DEPTH_STENCIL_ATTACHMENT
6465

66+
checkFramebufferStatus :: forall eff. GLenum -> Eff (webgl :: WebGl | eff) GLenum
67+
checkFramebufferStatus = runFn1 checkFramebufferStatus_
68+
6569
createFramebuffer :: forall eff. EffWebGL eff WebGLBuf
6670
createFramebuffer = do
6771
b <- runFn0 createFramebuffer_

0 commit comments

Comments
 (0)