#include "CFTTRenderToTextureOGLES.h"
#include "FTTGraphics.h"
#include "CFTTGLES2Wrapper.h"
#include "CFTTRenderBufferOGLES.h"
#include "HalfConverter.h"
#include "CFTTGraphicsDeviceOGLES.h"
#include "FTT2D.h"
#include "memctrl.h"

//-------------------------------------------------------------------------------------------------
//00223A78 -_- 经过单元测试，功能正常
CFTTRenderToTextureOGLES::CFTTRenderToTextureOGLES(EFTTTexFormat eFormat1,  //r1
                                                   int aWidth2,             //r2
                                                   int aHeight3,            //r3
                                                   uint ua4,
                                                   int a5,
                                                   EFTTRTTZBufMode eMode6,
                                                   bool b7,
                                                   EFTTTextureType eType8,
                                                   uchar uc9,
                                                   CFTTRenderToTexture* pRenderToTexture10) {
  LOGI("CFTTRenderToTextureOGLES::CFTTRenderToTextureOGLES Entry");
}
//-------------------------------------------------------------------------------------------------
//00223E38
CFTTRenderToTextureOGLES::~CFTTRenderToTextureOGLES() {
}
//-------------------------------------------------------------------------------------------------
//00223E98 //^_^ 经过单元测试，功能正常
void CFTTRenderToTextureOGLES::BeginRenderToTexture(CFTTClearSettings const& setting) {
  //bool FTTBeginScene(CFTTClearSettings const &pSetting, CFTTRenderTarget *pRenderTarget, bool a3);  //0020078C
  LOGI("CFTTRenderToTextureOGLES::BeginRenderToTexture entry");

  LOGI("CFTTRenderToTextureOGLES::BeginRenderToTexture end");
}
//-------------------------------------------------------------------------------------------------
//00223EE4 -_- 经过单元测试，功能正常
CFTTTexture* CFTTRenderToTextureOGLES::EndRenderToTexture(EFTTRTTCopyMode eMode1) {
  LOGI("CFTTRenderToTextureOGLES::EndRenderToTexture entry");
  CFTTTexture* r9_texture;

  return nullptr;
}
//-------------------------------------------------------------------------------------------------
//00224628 //^_^
void CFTTRenderToTextureOGLES::SetTarget(uchar u1, EFTTTextureTarget eTarget2) {
}
//-------------------------------------------------------------------------------------------------
//00224630 //^_^
CFTTTexture* CFTTRenderToTextureOGLES::GetTexture() {
  return nullptr;
}
//-------------------------------------------------------------------------------------------------
//00224634 //^_^
CFTTRenderTargetOGLES* CFTTRenderToTextureOGLES::GetRenderTargets() {
  return nullptr;
}
//-------------------------------------------------------------------------------------------------
//00224638 //^_^
CFTTTexture* CFTTRenderToTextureOGLES::GetDepthTexture() {
  return nullptr;
}
//-------------------------------------------------------------------------------------------------

/*
00224630	 CFTTRenderToTextureOGLES::GetTexture	              4    OK
00224634	 CFTTRenderToTextureOGLES::GetRenderTargets	        4    OK
00223EE4	 CFTTRenderToTextureOGLES::EndRenderToTexture	      717  OK
00223A78	 CFTTRenderToTextureOGLES::CFTTRenderToTextureOGLES	373  OK
00223E98	 CFTTRenderToTextureOGLES::BeginRenderToTexture	    25   OK
*/