y2jinc / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Support all OutputFormat's as InputFormat's #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to be able to use this library for both converting to dxt formats 
and FROM dxt formats. Is it feasible to add InputFormat.DXT1/2/3?

Original issue reported on code.google.com by ja...@sickheadgames.com on 9 May 2014 at 8:34

GoogleCodeExporter commented 9 years ago
This is certainly possible. However, the the InputOptions API is deprecated, 
instead I now favor an imperative API using the Surface and CubeSurface 
classes. The way to do what you suggest is now using:

Surface::setImage2D(Format format, Decoder decoder, int w, int h, const void * 
data);

for example:

surface.setImage2D(Format_DXT1, Decoder_D3D9, w, h, data);

If you would still wish to extend the InputOptions API, I'd be happy to 
integrate your patches.

Original comment by cast...@gmail.com on 21 May 2014 at 5:55

GoogleCodeExporter commented 9 years ago
Ah, then perhaps the problem is that the C# bindings are out of date, since I 
do not have access to that API.

Original comment by ja...@sickheadgames.com on 21 May 2014 at 8:13

GoogleCodeExporter commented 9 years ago
Ah, yes, I haven't exposed the new API through the C# wrapper yet. If you would 
like to submit patches to the wrapper, I think many users would highly 
appreciate it!

Original comment by cast...@gmail.com on 22 May 2014 at 7:12

GoogleCodeExporter commented 9 years ago
I'm not certain yet if we intend to continue using this library. We are also 
considering some alternatives (like FreeImage), but if I decide to start work 
on this I will let you know first.

Thanks.

Original comment by ja...@sickheadgames.com on 22 May 2014 at 7:14