Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

SharpDX loading TGA textures

$
0
0

Hello, I am trying to load TGA textures in sharpdx, but it seems it is not supported.

 

Is there any simple method or do I have to write my own TGA format parser, parse the file into pixel array and then use those pixels?

 

I was trying to use 

var bitmapDecoder = new SharpDX.WIC.BitmapDecoder(
                factory,
                filename,
                SharpDX.WIC.DecodeOptions.CacheOnDemand
                );

But I get WINCODEC_ERR_COMPONENTNOTFOUND/Componentnotfound on this code, so I presume TGA is not supported.


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>