flaw-gl/Flaw/Graphics/OpenGL/FFI.hs
Eta reduce Open
Open
glBufferData_null target size usage = glBufferData target size nullPtr usage
- Read upRead up
- Exclude checks
Found
glBufferData_null target size usage
= glBufferData target size nullPtr usage
Perhaps
glBufferData_null target size = glBufferData target size nullPtr
Use camelCase Open
Open
glGetUniformBlockIndex_s programName uniformBlockName = B.useAsCString (T.encodeUtf8 uniformBlockName) $ glGetUniformBlockIndex programName
- Read upRead up
- Exclude checks
Found
glGetUniformBlockIndex_s programName uniformBlockName = ...
Perhaps
glGetUniformBlockIndexS programName uniformBlockName = ...
Use camelCase Open
Open
glBufferData_bs target bytes usage = B.unsafeUseAsCStringLen bytes $ \(bytesPtr, bytesLen) ->
glBufferData target (fromIntegral bytesLen) bytesPtr usage
- Read upRead up
- Exclude checks
Found
glBufferData_bs target bytes usage = ...
Perhaps
glBufferDataBs target bytes usage = ...
Use camelCase Open
Open
glBufferData_null :: GLenum -> GLsizeiptr -> GLenum -> IO ()
- Read upRead up
- Exclude checks
Found
glBufferData_null :: GLenum -> GLsizeiptr -> GLenum -> IO ()
Perhaps
glBufferDataNull :: GLenum -> GLsizeiptr -> GLenum -> IO ()
Use camelCase Open
Open
glDrawBuffers_n :: Int -> IO ()
- Read upRead up
- Exclude checks
Found
glDrawBuffers_n :: Int -> IO ()
Perhaps
glDrawBuffersN :: Int -> IO ()
Use camelCase Open
Open
glGetUniformLocation_s programName locationName = B.useAsCString (T.encodeUtf8 locationName) $ glGetUniformLocation programName
- Read upRead up
- Exclude checks
Found
glGetUniformLocation_s programName locationName = ...
Perhaps
glGetUniformLocationS programName locationName = ...
Use camelCase Open
Open
glShaderSource_s :: GLuint -> T.Text -> IO ()
- Read upRead up
- Exclude checks
Found
glShaderSource_s :: GLuint -> T.Text -> IO ()
Perhaps
glShaderSourceS :: GLuint -> T.Text -> IO ()
Use camelCase Open
Open
glGetProgramInfoLog_s :: GLuint -> IO T.Text
- Read upRead up
- Exclude checks
Found
glGetProgramInfoLog_s :: GLuint -> IO T.Text
Perhaps
glGetProgramInfoLogS :: GLuint -> IO T.Text
Use camelCase Open
Open
glDrawBuffers_n colorBuffersCount =
withArray [GL_COLOR_ATTACHMENT0 + fromIntegral i | i <- [0..(colorBuffersCount - 1)]] $
glDrawBuffers $ fromIntegral colorBuffersCount
- Read upRead up
- Exclude checks
Found
glDrawBuffers_n colorBuffersCount = ...
Perhaps
glDrawBuffersN colorBuffersCount = ...
Use camelCase Open
Open
glGetShaderInfoLog_s :: GLuint -> IO T.Text
- Read upRead up
- Exclude checks
Found
glGetShaderInfoLog_s :: GLuint -> IO T.Text
Perhaps
glGetShaderInfoLogS :: GLuint -> IO T.Text
Use camelCase Open
Open
glGetUniformLocation_s :: GLuint -> T.Text -> IO GLint
- Read upRead up
- Exclude checks
Found
glGetUniformLocation_s :: GLuint -> T.Text -> IO GLint
Perhaps
glGetUniformLocationS :: GLuint -> T.Text -> IO GLint
Use camelCase Open
Open
glGetUniformBlockIndex_s :: GLuint -> T.Text -> IO GLuint
- Read upRead up
- Exclude checks
Found
glGetUniformBlockIndex_s :: GLuint -> T.Text -> IO GLuint
Perhaps
glGetUniformBlockIndexS :: GLuint -> T.Text -> IO GLuint
Use camelCase Open
Open
glBufferData_bs :: GLenum -> B.ByteString -> GLenum -> IO ()
- Read upRead up
- Exclude checks
Found
glBufferData_bs :: GLenum -> B.ByteString -> GLenum -> IO ()
Perhaps
glBufferDataBs :: GLenum -> B.ByteString -> GLenum -> IO ()
Use camelCase Open
Open
glGetShaderInfoLog_s shaderName = do
logLength <- alloca $ \logLengthPtr -> do
poke logLengthPtr 0
glGetShaderiv shaderName GL_INFO_LOG_LENGTH logLengthPtr
peek logLengthPtr
- Read upRead up
- Exclude checks
Found
glGetShaderInfoLog_s shaderName = ...
Perhaps
glGetShaderInfoLogS shaderName = ...
Use camelCase Open
Open
glShaderSource_s shaderName source = B.unsafeUseAsCStringLen (T.encodeUtf8 source) $ \(sourcePtr, sourceLen) ->
with sourcePtr $ \sourcePtrPtr ->
with (fromIntegral sourceLen) $ \sourceLenPtr ->
glShaderSource shaderName 1 sourcePtrPtr sourceLenPtr
- Read upRead up
- Exclude checks
Found
glShaderSource_s shaderName source = ...
Perhaps
glShaderSourceS shaderName source = ...
Use camelCase Open
Open
glGetProgramInfoLog_s programName = do
logLength <- alloca $ \logLengthPtr -> do
glGetProgramiv programName GL_INFO_LOG_LENGTH logLengthPtr
peek logLengthPtr
fmap T.decodeUtf8 $ allocaBytes (fromIntegral logLength) $ \logPtr -> do
- Read upRead up
- Exclude checks
Found
glGetProgramInfoLog_s programName = ...
Perhaps
glGetProgramInfoLogS programName = ...
Use camelCase Open
Open
glBufferData_null target size usage = glBufferData target size nullPtr usage
- Read upRead up
- Exclude checks
Found
glBufferData_null target size usage = ...
Perhaps
glBufferDataNull target size usage = ...
Use camelCase Open
Open
glBindAttribLocation_s :: GLuint -> GLuint -> T.Text -> IO ()
- Read upRead up
- Exclude checks
Found
glBindAttribLocation_s :: GLuint -> GLuint -> T.Text -> IO ()
Perhaps
glBindAttribLocationS :: GLuint -> GLuint -> T.Text -> IO ()
Use camelCase Open
Open
glBindAttribLocation_s programName index attributeName = B.useAsCString (T.encodeUtf8 attributeName) $ glBindAttribLocation programName index
- Read upRead up
- Exclude checks
Found
glBindAttribLocation_s programName index attributeName = ...
Perhaps
glBindAttribLocationS programName index attributeName = ...