// FieldWarp.h: interface for the CFieldWarp class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FIELDWARP_H__69F15483_5014_4732_8590_56E9553128E4__INCLUDED_)
#define AFX_FIELWARP_H__69F15483_5014_4732_8590_56E9553128E4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

typedef struct _FIELDPOINT {
	int x;
	int y;
} FIELDPOINT;

typedef struct _FIELDLINE {
	FIELDPOINT start;
	FIELDPOINT end;
} FIELDLINE;

#include "IMG.h"

class CFieldWarp : public CIMG 
{
public:
	void Morphing(CIMG*src1, CIMG*src2, CIMG*dest, FIELDLINE *srcField, FIELDLINE *destField, int numField, float u);
	void FieldWarp(CIMG *src, CIMG *dest, FIELDLINE *srcField, FIELDLINE *destField, int numField);
	void LoadSrcIMG(CString filename);
	CFieldWarp();
	virtual ~CFieldWarp();
private:
	BOOL		m_bLoaded;
	CIMG		*m_pSrcIMG;
	CIMG		*m_pDestIMG;
	int			m_nWidth;
	int			m_nHeight;
};

#endif // !defined(AFX_FIELWARP_H__69F15483_5014_4732_8590_56E9553128E4__INCLUDED_)
