| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.Render.Camera
Synopsis
- data Camera = Camera
- data OutputTo = OutputTo
- newtype CameraTexture = CameraTexture SwappableTexture
- newtype CameraMatrices = CameraMatrices (Buffer Matrices)
- data CameraPlugin
- updateCameraMatrices :: System ()
- onAddCameraOutputTo :: OnAddRel OutputTo -> System ()
- onUpdateWindowSize :: OnSet WindowSize -> System ()
- updateCameraTexture :: Entity -> Entity -> System ()
- newTextureDescriptor :: Int -> Int -> WGPUStringView -> WGPUTextureDescriptor
- data Matrices f = Matrices {}
- getCameraProjection :: Int -> Int -> Transform -> Matrices CPU
- cameraView :: Entity -> Query System TextureView
- cameraSwapView :: Entity -> Query System TextureView
Documentation
Constructors
| Camera |
Instances
| Component Camera Source # | |||||
Defined in Mischief.Render.Camera Associated Types
| |||||
| type IsExclusiveRel Camera Source # | |||||
Defined in Mischief.Render.Camera | |||||
Add this as a relationship between a camera and a window to have the camera's output texture be rendered to that window.
Exclusive.
Constructors
| OutputTo |
Instances
| Component OutputTo Source # | |||||
Defined in Mischief.Render.Camera Associated Types
| |||||
| type IsExclusiveRel OutputTo Source # | |||||
Defined in Mischief.Render.Camera | |||||
newtype CameraTexture Source #
Constructors
| CameraTexture SwappableTexture |
Instances
| Component CameraTexture Source # | |||||
Defined in Mischief.Render.Camera Associated Types
Methods required :: Set DefaultComponentType # onAdd :: [Hook CameraTexture] # onSet :: [Hook CameraTexture] # onRemove :: [Hook CameraTexture] # onAddRel :: [HookRel CameraTexture] # onSetRel :: [HookRel CameraTexture] # onRemoveRel :: [HookRel CameraTexture] # | |||||
| type IsExclusiveRel CameraTexture Source # | |||||
Defined in Mischief.Render.Camera | |||||
newtype CameraMatrices Source #
Constructors
| CameraMatrices (Buffer Matrices) |
Instances
| Component CameraMatrices Source # | |||||
Defined in Mischief.Render.Camera Associated Types
Methods required :: Set DefaultComponentType # onAdd :: [Hook CameraMatrices] # onSet :: [Hook CameraMatrices] # onRemove :: [Hook CameraMatrices] # onAddRel :: [HookRel CameraMatrices] # onSetRel :: [HookRel CameraMatrices] # | |||||
| type IsExclusiveRel CameraMatrices Source # | |||||
Defined in Mischief.Render.Camera | |||||
data CameraPlugin Source #
Instances
| Plugin CameraPlugin Source # | |
Defined in Mischief.Render.Camera | |
updateCameraMatrices :: System () Source #
onUpdateWindowSize :: OnSet WindowSize -> System () Source #
updateCameraTexture :: Entity -> Entity -> System () Source #
Creates a new CameraTexture component that fits the targeted window.
newTextureDescriptor :: Int -> Int -> WGPUStringView -> WGPUTextureDescriptor Source #
Instances
cameraView :: Entity -> Query System TextureView Source #