Start implementing experimental interface.

This commit is contained in:
castano
2009-01-05 10:17:06 +00:00
parent e965b0e4a9
commit 508f9fbdc2
7 changed files with 329 additions and 15 deletions

View File

@ -1,16 +1,16 @@
#include "nvtt_experimental.h"
struct NvttImage
struct NvttTexture
{
NvttImage() :
NvttTexture() :
m_constant(false),
m_image(NULL),
m_floatImage(NULL)
{
}
~NvttImage()
~NvttTexture()
{
if (m_constant && m_image) m_image->unwrap();
delete m_image;
@ -22,14 +22,14 @@ struct NvttImage
FloatImage * m_floatImage;
};
NvttImage * nvttCreateImage()
NvttTexture * nvttCreateTexture()
{
return new NvttImage();
return new NvttTexture();
}
void nvttDestroyImage(NvttImage * img)
void nvttDestroyTexture(NvttTexture * tex)
{
delete img;
delete tex;
}
void nvttSetImageData(NvttImage * img, NvttInputFormat format, uint w, uint h, void * data)