Back to post

Revisions 4


1 years ago
Texture from PixImage
Texture from PixImage
How do I create a `Texture : ITexture` from a `PixImage`? I actually want to create a Texture from a `Stream`, this is how far I got: ```fsharp let s = GetStream( ... ) let p = (PixImage.Create s) let t = PixTexture2d(PixImageMipMap [| p |], true) :> ITexture ``` Is this correct?
How do I create a `Texture : ITexture` from a `PixImage`? I actually want to create a Texture from a `Stream`, this is how far I got: ```fsharp let s = GetStream( ... ) let p = (PixImage.Create s) let t = PixTexture2d(PixImageMipMap [| p |], true) :> ITexture ``` Is this correct?
#piximage #rendering #textures
#piximage #rendering #textures

1 years ago
Texture from PixImage
Texture from PixImage
How do I create a `Texture : ITexture` from a `PixImage`? I actually want to create a Texture from a `Stream`, this is how far I got: ```fsharp let s = GetStream( ... ) let p = (PixImage.Create s) let t = PixTexture2d(PixImageMipMap [| p |], true) :> ITexture ``` Is this correct?
How do I create a `Texture : ITexture` from a `PixImage`? I actually want to create a Texture from a `Stream`, this is how far I got: ```fsharp let s = GetStream( ... ) let p = (PixImage.Create s) let t = PixTexture2d(PixImageMipMap [| p |], true) :> ITexture ``` Is this correct?
#piximage #rendering #textures
#piximage #rendering #textures

1 years ago
Texture from PixImage
Texture from PixImage
How do I create a `Texture : ITexture` from a `PixImage`? I actually want to create a Texture from a `Stream`, this is how far I got: ```fsharp let s = GetStream( ... ) let p = (PixImage.Create s) let t = PixTexture2d(PixImageMipMap [| p |], true) :> ITexture ``` Is this correct?
How do I create a `Texture : ITexture` from a `PixImage`?
#piximage #rendering #textures
#piximage #rendering #textures

1 years ago
Original
Texture from PixImage
Texture from PixImage
How do I create a `Texture : ITexture` from a `PixImage`?
How do I create a `Texture : ITexture` from a `PixImage`?
#piximage #rendering #textures
#piximage #rendering #textures