#include "common.h"
#include "stdafx.h"
#include "texture.h"
#include "dds.h"

void DdsInit(ddsheader *dds)
{
	sprintf(dds->magic, "%s", "DDS ");
	dds->headersize = 124;
	dds->ddscaps = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT | DDSD_LINEARSIZE;
	dds->depth = 0;
	dds->mipmapcount = 0;
	for(int i=0; i<11; i++)	dds->reserved[i] = 0;
			
	dds->ddpfsize = 32;
	dds->ddpfflags = DDPF_FOURCC;
	dds->ddpfrgbbitcount = 0;
	dds->ddpfrgbrmask = 0;
	dds->ddpfrgbgmask = 0;
	dds->ddpfrgbbmask = 0;
	dds->ddpfrgbamask = 0;

	dds->caps1 = DDSCAPS_TEXTURE;
	dds->caps2 = 0;

	dds->reserved1 = 0;
	dds->reserved2 = 0;
	dds->reserved3 = 0;
}
