# `Cauldron3D.Formats.Tga`
[🔗](https://github.com/jaman/cauldron/blob/v0.3.3/cauldron_3d_formats/lib/cauldron_3d/formats/tga.ex#L1)

Truevision TGA pictures read into RGBA `Cauldron3D.Texture`s: colour-mapped,
true-colour (24 or 32 bits) and greyscale, plain or run-length encoded, stored either
way up.

    {:ok, texture} = Cauldron3D.Formats.Tga.parse(File.read!("gfx/env/desertup.tga"))

# `parse`

```elixir
@spec parse(binary()) :: {:ok, Cauldron3D.Texture.t()} | {:error, :not_a_tga}
```

The picture in `data`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
