nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Is it possible to have TGA files from snowball demo to make t


From: Cyril 'Hulud' Corvazier
Subject: Re: [Nel] Is it possible to have TGA files from snowball demo to make tile
Date: Fri, 1 Mar 2002 11:56:38 +0100

Using NeL, it should be something like:

#include <nel/misc/file.h>
#include <nel/misc/bitmap.h>

using namespace NL3D;
using namespace NLMISC;

void main ()
{
    CIFile input;
    if (input.open ("texture.dds"))
    {
        CBitmap bitmap;
        bitmap.load (input);
        bitmap.convertToType (CBitmap::RGBA);
        
        COFile output;
        if (output.open ("texture.tga"))
        { 
            bitmap.writeTGA (output, 32);
        }
    }
}

Hld.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]