Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. gLContextSetUseEs :: (HasCallStack, MonadIO m, IsGLContext a) => a -> Int32 -> m ()

    gi-gdk4 GI.Gdk.Objects.GLContext

    Requests that GDK create an OpenGL ES context instead of an OpenGL one. Not all platforms support OpenGL ES. The context must not have been realized. By default, GDK will attempt to automatically detect whether the underlying GL implementation is OpenGL or OpenGL ES once the context is realized. You should check the return value of gLContextGetUseEs after calling gLContextRealize to decide whether to use the OpenGL or OpenGL ES API, extensions, or shaders.

  2. gLTextureBuilderSetContext :: (HasCallStack, MonadIO m, IsGLTextureBuilder a, IsGLContext b) => a -> Maybe b -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the context to be used for the texture. This is the context that owns the texture. The context must be set before calling gLTextureBuilderBuild. Since: 4.12

  3. gLTextureBuilderSetFormat :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> MemoryFormat -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the format of the texture. The default is GDK_MEMORY_R8G8B8A8_PREMULTIPLIED. The format is the preferred format the texture data should be downloaded to. The format must be supported by the GL version of GLTextureBuilder:context. GDK's texture download code assumes that the format corresponds to the storage parameters of the GL texture in an obvious way. For example, a format of GDK_MEMORY_R16G16B16A16_PREMULTIPLIED is expected to be stored as GL_RGBA16 texture, and GDK_MEMORY_G8A8 is expected to be stored as GL_RG8 texture. Setting the right format is particularly useful when using high bit depth textures to preserve the bit depth, to set the correct value for unpremultiplied textures and to make sure opaque textures are treated as such. Non-RGBA textures need to have swizzling parameters set up properly to be usable in GSK's shaders. Since: 4.12

  4. gLTextureBuilderSetHasMipmap :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> Bool -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets whether the texture has a mipmap. This allows the renderer and other users of the generated texture to use a higher quality downscaling. Typically, the glGenerateMipmap function is used to generate a mimap. Since: 4.12

  5. gLTextureBuilderSetHeight :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> Int32 -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the height of the texture. The height must be set before calling gLTextureBuilderBuild. Since: 4.12

  6. gLTextureBuilderSetId :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> Word32 -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the texture id of the texture. The texture id must remain unmodified until the texture was finalized. See gLTextureBuilderBuild for a longer discussion. The id must be set before calling gLTextureBuilderBuild. Since: 4.12

  7. gLTextureBuilderSetSync :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> Ptr () -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the GLSync object to use for the texture. GTK will wait on this object before using the created GdkTexture. The destroy function that is passed to gLTextureBuilderBuild is responsible for freeing the sync object when it is no longer needed. The texture builder does not destroy it and it is the callers responsibility to make sure it doesn't leak. Since: 4.12

  8. gLTextureBuilderSetUpdateRegion :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> Maybe Region -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the region to be updated by this texture. Together with GLTextureBuilder:updateTexture this describes an update of a previous texture. When rendering animations of large textures, it is possible that consecutive textures are only updating contents in parts of the texture. It is then possible to describe this update via these two properties, so that GTK can avoid rerendering parts that did not change. An example would be a screen recording where only the mouse pointer moves. Since: 4.12

  9. gLTextureBuilderSetUpdateTexture :: (HasCallStack, MonadIO m, IsGLTextureBuilder a, IsTexture b) => a -> Maybe b -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the texture to be updated by this texture. See gLTextureBuilderSetUpdateRegion for an explanation. Since: 4.12

  10. gLTextureBuilderSetWidth :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> Int32 -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the width of the texture. The width must be set before calling gLTextureBuilderBuild. Since: 4.12

Page 1408 of many | Previous | Next