packages feed

dear-imgui-raw-1.0.0: src/DearImGui/Raw/Enums/ImTextureFormat.hsc

{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}

-- This file was generated by dear-bindings-ffi. Do not edit by hand.

module DearImGui.Raw.Enums.ImTextureFormat
  ( ImTextureFormat
  , pattern Alpha8
  , pattern RGBA32
  ) where

import Foreign.C.Types

#include "dcimgui_nodefaultargfunctions.h"

-- enums

-- | Most standard backends only support RGBA32 but we provide a single channel option for low-resource/embedded systems.
type ImTextureFormat = CInt

-- | 4 components per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight * 4
pattern RGBA32 :: ImTextureFormat
pattern RGBA32 = #{const ImTextureFormat_RGBA32}

-- | 1 component per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight
pattern Alpha8 :: ImTextureFormat
pattern Alpha8 = #{const ImTextureFormat_Alpha8}