// E3D基本部分

//////////////
// test
/*static int hsid1;
static int motid1;
static int maxframe1;*/
/*
char szMediaDir[MAX_PATH];

int SetMediaDir()
{
	char filename[1024];
	char* endptr = 0;

	ZeroMemory( filename, 1024 );
	int ret;

	ret = GetModuleFileName( NULL, filename, 1024 );
	if( ret == 0 ){
		_ASSERT( 0 );
		E3DDbgOut( "SetMediaDir : GetModuleFileName error !!!\n" );
		return 1;
	}

	int ch = '\\';
	char* lasten = 0;
	lasten = strrchr( filename, ch );
	if( !lasten ){
		_ASSERT( 0 );
		E3DDbgOut( "SetMediaDir : strrchr error !!!\n" );
		return 1;
	}

	*lasten = 0;

	char* last2en = 0;
	char* last3en = 0;
	last2en = strrchr( filename, ch );
	if( last2en ){
		*last2en = 0;
		last3en = strrchr( filename, ch );
		if( last3en ){
			if( (strcmp( last2en + 1, "debug" ) == 0) ||
				(strcmp( last2en + 1, "Debug" ) == 0) ||
				(strcmp( last2en + 1, "DEBUG" ) == 0) ||
				(strcmp( last2en + 1, "release" ) == 0) ||
				(strcmp( last2en + 1, "Release" ) == 0) ||
				(strcmp( last2en + 1, "RELEASE" ) == 0)
				){

				endptr = last2en;
			}else{
				endptr = lasten;
			}
		}else{
			endptr = lasten;
		}
	}else{
		endptr = lasten;
	}

	*lasten = '\\';
	if( last2en )
		*last2en = '\\';
	if( last3en )
		*last3en = '\\';

	int leng;
	ZeroMemory( szMediaDir, MAX_PATH );
	leng = (int)( endptr - filename + 1 );
	strncpy_s( szMediaDir, MAX_PATH, filename, leng );
	strcat_s( szMediaDir, MAX_PATH, "Media\\" );

	E3DDbgOut( "SetMediaDir : %s\n", szMediaDir );

	return 0;
}
*/

TitleScene::render

	/*		// オプション
			{
				// チェックボックス
				int nSpriteW;
				int nSpriteH;
				int nCheckedSpriteID = staticData->m_SpriteIndexManager.get( Sprite::CHECK_BOX_CHECKED ) ;
				int nNoCheckedSpriteID = staticData->m_SpriteIndexManager.get( Sprite::CHECK_BOX );

				ret = E3DGetSpriteSize( nCheckedSpriteID, 
					&nSpriteW, &nSpriteH );
				if( ret ) {
					_ASSERT( 0 );
					return ret;
				}

				int nLeft = nClientWidth  - OPTION_MERGINE_X;
				int nTop = UI_TOP;

				char aryLabelList[][100] = {
					"切断",
					"丸呑み透過",
					"黒",
					"寝ぼけて忘れた",
					"無限バンダナ",
				};

				// 間隔
				const int STEP = 32;
				for(int i = 0; i < TitleSceneConsts::CheckType::NUM_MAX; i ++ ) {
					// 首オプションの縦座標
					int nTopNow = nTop + STEP * i;

					int nSpriteID = staticData->m_aryOptionList[i] == TRUE ? nCheckedSpriteID : nNoCheckedSpriteID;
					BOOL bIsChecked = staticData->m_aryOptionList[i];

					// ボタンの上にカーソルが来ているか？は解除する
					this->m_aryIsChecked[i] = FALSE;

					if( staticData->set_MouseOverSpriteColor(
						nSpriteID, p.x, p.y, nLeft, nTopNow, nSpriteW, nSpriteH, 
						255,100,100,200, 255,255,255, 200 ) )
					{
						this->m_aryIsChecked[i] = TRUE;
					}

					ret = E3DRenderSprite( nSpriteID,
						1, 1, D3DXVECTOR3(static_cast<FLOAT>(nLeft),
						static_cast<FLOAT>(nTopNow), 0.0f ) );
					if( ret ) {
						_ASSERT( 0 );
						return ret;
					}



					// 文字列表示
					ret = E3DTool::drawTextWithFont(
						nLeft + nSpriteW, nTopNow + OPTION_TEXT_MERGINE_Y,
						255, 255, 255, 255,	//col RGBA
						staticData->get_SwapChainID(),
						staticData->get_FontID(),				// zoom
						aryLabelList[i]
						);

				}
			}*/
