/*----------------------------------------------------------------------------*
*								Load 			
*-----------------------------------------------------------------------------*/	
void cPCBANGPET::Load()
{
	//MatPetImage[0] =  CreateTextureMaterial( "Image\\SinImage\\PetData\\PR_Box.tga" , 0, 0, 0,0, SMMAT_BLEND_LAMP );
	MatPcBangPetImage[0] =  CreateTextureMaterial( "Effect\\PcBangPet\\Pet_Phoenimin\\Pet_terry01.TGA" , 0, 0, 0,0, SMMAT_BLEND_ALPHA );
	MatPcBangPetImage[1] =  CreateTextureMaterial( "Effect\\PcBangPet\\Pet_Phoenimin\\Pet_terry01.TGA" , 0, 0, 0,0, SMMAT_BLEND_ALPHA );
	MatPcBangPetImage[2] =  CreateTextureMaterial( "Effect\\PcBangPet\\Pet_Phoenimin\\Pet_terry01.TGA" , 0, 0, 0,0, SMMAT_BLEND_ALPHA );
	MatPcBangPetImage[3] =  CreateTextureMaterial( "Effect\\PcBangPet\\Pet_Phoenimin\\Pet_terry01.TGA" , 0, 0, 0,0, SMMAT_BLEND_ALPHA );

}
//######################################################################################
//작 성 일 : 2004-04-20 오전 10:53:15
//리 턴 값 :
//설    명 :
//작 성 자 : 오 영 석
//######################################################################################//
void CreateFontImage(void)
{
	//
	s_iFontImageMatNum = CreateTextureMaterial( "image\\Bellatra\\FontImage.tga", NULL, 0, 0, 0, SMMAT_BLEND_ALPHA );
	
	FILE *fp = fopen( "image\\Bellatra\\FontImagePos.dat", "rb" );
	if( fp )
	{
		fread( s_FontImageChInfo, sizeof(s_FontImageChInfo), 1, fp );
		fread( s_SpecialFontImageChInfo, sizeof(s_SpecialFontImageChInfo), 1, fp );
		fclose(fp);
	}
}
Ejemplo n.º 3
0
/*----------------------------------------------------------------------------*
*					  퀘스트 타이머			
*-----------------------------------------------------------------------------*/
int cHaQuest::haSetQuestTimer(sQUEST_ELEMENTARY *pQuest)
{
	sSKILL TempSkill;
	memset(&TempSkill,0,sizeof(sSKILL)); 
	//텍스쳐 로딩
	char *Path = "image\\Sinimage\\skill\\keep\\QuestTimer.tga";      
	if(!MatQuestTimer){
		MatQuestTimer = CreateTextureMaterial(Path, 0, 0, 0,0, SMMAT_BLEND_ALPHA );
		ReadTextures();	//텍스쳐 로딩
	}

	TempSkill.CODE = CHANGE_ELEMENTARY_QUEST; 
	TempSkill.UseTime = 70*70;
	TempSkill.Point = 1;
	TempSkill.MatIcon = MatQuestTimer;
	sinContinueSkillSet(&TempSkill);
	sinPlaySound(SIN_SOUND_EAT_POTION2);//대박 사운드
	return TRUE;
}
int HoNewParticleResMgr::AddTexture(const char *mat)
{
    if(MAX_MATERIAL <= NumMaterial)
        return false;
	
	
	char testBuffer[256];
	memset(testBuffer, 0, sizeof(testBuffer));

	for(int index = 0; index < NumMaterial; index++)
	{
 		strcpy(testBuffer, MatRes[index].matName.c_str());
        
		if(strcmp(MatRes[index].matName.c_str(), mat) == 0)
		//if(MatRes[index].matName.compare(mat) == 0)
               return MatRes[index].matNum;
    }

    char buffer[256];
    char FullDirectoryName[500];
	memset(buffer, 0, sizeof(buffer));
    strcpy(buffer, mat);
	
	HoNewParticleMatRes partScriptRes;
	partScriptRes.matName = buffer;
	MakeUpperCase(partScriptRes.matName);
	
	wsprintf(FullDirectoryName, "%s%s", "effect\\particle\\", mat);
	partScriptRes.matNum = CreateTextureMaterial( FullDirectoryName, 0, 0, 0,0, SMMAT_BLEND_LAMP);
	
    MatRes.push_back(partScriptRes);
	if(MatRes[NumMaterial].matNum != -1)
    {
		//ReadTextures();
		smMaterialGroup->ReadTextures();
        NumMaterial++;
        return MatRes[NumMaterial-1].matNum;
    }
    return -1;
}
Ejemplo n.º 5
0
void CHelp::Load()
{
	nHelp0 = CreateTextureMaterial( "image\\Sinimage\\Help\\help_icon03.tga", 0, 0, 64,64, SMMAT_BLEND_ALPHA );
	nHelp1 = CreateTextureMaterial( "image\\Sinimage\\Help\\help_icon04.tga", 0, 0, 64,64, SMMAT_BLEND_ALPHA );

	nBox1  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box01.tga", 0, 0, 32,32, SMMAT_BLEND_ALPHA );
	nBox2  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box02.tga", 0, 0, 16,32, SMMAT_BLEND_ALPHA );
	nBox3  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box03.tga", 0, 0, 32,32, SMMAT_BLEND_ALPHA );
	nBox4  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box04.tga", 0, 0, 32,16, SMMAT_BLEND_ALPHA );
	nBox5  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box05.tga", 0, 0, 16,16, SMMAT_BLEND_ALPHA );
	nBox6  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box06.tga", 0, 0, 32,16, SMMAT_BLEND_ALPHA );
	nBox7  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box07.tga", 0, 0, 32,32, SMMAT_BLEND_ALPHA );
	nBox8  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box08.tga", 0, 0, 16,32, SMMAT_BLEND_ALPHA );
	nBox9  = CreateTextureMaterial( "image\\Sinimage\\Help\\GH-Box09.tga", 0, 0, 32,32, SMMAT_BLEND_ALPHA );

	hClose[0] = LoadDibSurfaceOffscreen("image\\clanImage\\MessageBox\\c.bmp");
	hClose[1] = LoadDibSurfaceOffscreen("image\\clanImage\\MessageBox\\c1.bmp");

	nGuideHelp = CreateTextureMaterial(  "image\\Sinimage\\Help\\help_icon02t.tga", 0, 0, 64,64, SMMAT_BLEND_ALPHA );
	
	
}