/*!
	@param _radarVolumeData 地面に投影する予定の雲のボリュームテクスチャ を渡す。floatでRGBAで既に虹色に変換されたデータにすること
	@param _size ボリュームデータのサイズ
*/
void CLand::Init(color<float>* _radarVolumeData,int _size){
	m_List[0]=glGenLists(2);
	//glGenBuffers(2, m_IdBufferId);
	//glGenBuffers(2, m_BufferId);
	InitData("../data/map/iruma.jmesh",0);
	InitData("../data/map/komaki.jmesh",1);
	
	
	glActiveTexture(GL_TEXTURE1);

	glGenTextures ( 1, &m_ProjectedSamp[0] );
	glBindTexture (GL_TEXTURE_2D, m_ProjectedSamp[0]);
	glTexImage2D ( GL_TEXTURE_2D, 0, GL_RGBA, _size, _size, 0, GL_RGBA, GL_FLOAT, _radarVolumeData);
	glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
	glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
	glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
	glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
	glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);
	
   glActiveTexture(GL_TEXTURE1);
   glGenTextures ( 1, &m_ProjectedSamp[1] );
   glBindTexture (GL_TEXTURE_2D, m_ProjectedSamp[1]);
   glTexImage2D ( GL_TEXTURE_2D, 0, GL_RGBA, _size, _size, 0, GL_RGBA, GL_FLOAT, _radarVolumeData);
   glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
   glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
   glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
   glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
   glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);
   glActiveTexture(GL_TEXTURE0);
 
   cout<<"地図バッファ情報"<<endl;
   mProgram=new CGLSLClipProjected("land.vert","land.frag");
   mProgram->UpdateTextureUniform();
}
Exemple #2
0
int Application::Execute()
{
    if (!LoadData(trainingImgs, Utils::TRAINING_IMAGES_PER_SUBJECT, true))
        return Utils::EXIT_F;
    if (!LoadData(validationImgs, Utils::VALIDATION_IMAGES_PER_SUBJECT, false))
        return Utils::EXIT_F;

    InitData(&trainingInputs, &trainingLabels, Utils::TRAINING_TOTAL_INPUT, trainingImgs);
    InitData(&validationInputs, &validationLabels, Utils::VALIDATION_TOTAL_INPUT, validationImgs);

    int hiddenLayerNeurons[] = { 5 };
    NeuralNetwork ann(Utils::PIXEL_COUNT, Utils::HIDDEN_LAYER_COUNT, hiddenLayerNeurons, Utils::SUBJECT_COUNT);

    printf(Utils::BEGIN_TRAINING);
    ann.Train(trainingInputs, trainingLabels, Utils::TRAINING_TOTAL_INPUT);
    printf(Utils::END_TRAINING);

    ann.Save("ocr.ann");

    for (int x = 0; x < Utils::VALIDATION_TOTAL_INPUT; x++)
    {
        for (int y = 0; y < Utils::SUBJECT_COUNT; y++)
            validationLabels[x][y] = ann.GetGuess(validationInputs[x], y);
    }

    for (int x = 0; x < Utils::VALIDATION_TOTAL_INPUT; x++)
    {
        for (int y = 0; y < Utils::SUBJECT_COUNT; y++)
            std::printf("%5.5f\n", validationLabels[x][y]);
        std::printf("\n");
    }

    Clean();
    return Utils::EXIT_S;
}
Exemple #3
0
void Data::LoadData()
{
#if defined(_WIN32) || defined(_WIN64)
	_finddata_t fd;
	long handle;
	int result = 1;

	handle = _findfirst("용사.txt", &fd);
	if (handle == -1)
	{
		InitData();
		return;
	}
#elif defined(__linux__)
	dirent **namelist;
	int n;

	n = scandir(".", &namelist, 0, alphasort);

	if (n < 0)
	{
		InitData();
		return;
	}

	int i;
	for (i = 0; i < n; i++)
	{
		if (strcmp(namelist[i]->d_name, "용사.txt") == 0)
		{
			free(namelist[n]);
			break;
		}
		free(namelist[n]);
	}
	free(namelist);

	if (i == n)
	{
		InitData();
		return;
	}
#endif

	char buffer[65536];
	FILE *file = fopen("용사.txt", "r");

	rapidjson::FileReadStream is(file, buffer, sizeof(buffer));
	document.ParseStream(is);
	fclose(file);
}
Exemple #4
0
BOOL TransientSet::IsDefine()
{
	InitData();
	if(ms_TotalSteps.GetnValue()<=0)
		return FALSE;
	return TRUE;
}
SmallImage::SmallImage(unsigned int width, unsigned int height, unsigned int iComponentCount) :
 m_size(width, height),
 m_iComponentCount(iComponentCount),
 m_pData(0)
{
  InitData();
}
BShape::BShape(BMessage* archive)
	:	BArchivable(archive)
{
	InitData();

	shape_data* data = (shape_data*)fPrivateData;

	ssize_t size = 0;
	int32 count = 0;
	type_code type = 0;
	archive->GetInfo("ops", &type, &count);
	if (!AllocateOps(count))
		return;

	int32 i = 0;
	const uint32* opPtr;
	while (archive->FindData("ops", B_INT32_TYPE, i++, (const void**)&opPtr, &size) == B_OK)
		data->opList[data->opCount++] = *opPtr;

	archive->GetInfo("pts", &type, &count);
	if (!AllocatePts(count)) {
		Clear();
		return;
	}

	i = 0;
	const BPoint* ptPtr;
	while (archive->FindData("pts", B_POINT_TYPE, i++, (const void**)&ptPtr, &size) == B_OK)
		data->ptList[data->ptCount++] = *ptPtr;
}
/*!	\brief Creates and initializes a new BMessageRunner.

	This constructor version additionally allows to specify the target for
	replies to the delivered message(s).

	The success of the initialization can (and should) be asked for via
	InitCheck().

	\note As soon as the last message has been sent, the message runner
		  becomes unusable. InitCheck() will still return \c B_OK, but
		  SetInterval(), SetCount() and GetInfo() will fail.

	\param target Target of the message(s).
	\param message The message to be sent to the target.
	\param interval Period of time before the first message is sent and
		   between messages (if more than one shall be sent) in microseconds.
	\param count Specifies how many times the message shall be sent.
		   A value less than \c 0 for an unlimited number of repetitions.
	\param replyTo Target replies to the delivered message(s) shall be sent to.
*/
BMessageRunner::BMessageRunner(BMessenger target, const BMessage *message,
							   bigtime_t interval, int32 count,
							   BMessenger replyTo)
	: fToken(-1)
{
	InitData(target, message, interval, count, replyTo);
}
//=================================================================================================================
//=================================================================================================================
TopdownTile::TopdownTile()
:	PhysicsBody2D()
,	m_D3DSystem(0)
,	m_engineOptions(0)
{
	InitData();
}
MP3File::MP3File(video::iStreamPort* pport)
{
  InitData();
  m_pPort = pport;
  m_bStreaming = true;
  m_pMP3FilePtr = OSCL_FileOpen(m_pPort);
  if(m_pPort)
  {
    int64 noffset = 0;
    uint64 size = MAX_FILE_SIZE;
    video::iStreamPort::DataSourceType eSourceType =
      video::iStreamPort::DS_FILE_SOURCE;
    if(video::iStreamPort::DS_SUCCESS == m_pPort->GetContentLength(&noffset))
    {
      size = (uint64)noffset;
    }
    m_pPort->GetSourceType(&eSourceType);
    if (video::iStreamPort::DS_STREAMING_SOURCE != eSourceType)
    {
      m_bStreaming = false;
    }
    m_nFileSize = size;
  }
  if(ParseMP3Header()== PARSER_ErrorNone )
  {
    _fileErrorCode = PARSER_ErrorNone;
    _success = true;
  }
}
Exemple #10
0
void emulator() {
	/* omit business about ModuleSP, as the compiler handles such
		things for us */

	InitData();
	RecognizeCart();
	SetupBanks();
	Reset();
	Init_Service();
	Controls();

	/* ExitEmulator gets set by Controls() if the user presses
		Escape */
	while( !ExitEmulator ) {
		VSync();
		srv_CopyScreen();
		ScanFrame();
		Controls();

		while(GamePaused) {
			Controls();
		}
	}

}
Exemple #11
0
int main (int argc, char * argv[]) {
    world = new World("Dclock", argc, argv);
    DoArgs(argc, argv);
    InitData();
    switch (CreateMode) {
	case SWEPT:
	    TheClock = new DFace(
		ShowDate, ShowBorder, ShowTime, TimeMode
	    );
	    world->InsertApplication(TheClock);
	    break;
	case PLACED:
	    TheClock = new DFace(
		ShowDate, ShowBorder, ShowTime, TimeMode, Width, Height
	    );
	    world->InsertApplication(TheClock);
	    break;
	case DEFINED:
	    TheClock = new DFace(
		ShowDate, ShowBorder, ShowTime, TimeMode, Width, Height
	    );
	    world->InsertApplication(TheClock, XPos, YPos);
	    break;
    }
    TheClock->Run();
    return 0;
}
Exemple #12
0
BTextControl::BTextControl(BMessage *data)
	:	BControl(data)
{
	InitData(Label(), NULL, data);

	int32 _a_label = B_ALIGN_LEFT;
	int32 _a_text = B_ALIGN_LEFT;

	if (data->HasInt32("_a_label"))
		data->FindInt32("_a_label", &_a_label);

	if (data->HasInt32("_a_text"))
		data->FindInt32("_a_text", &_a_text);
	
	SetAlignment((alignment)_a_label, (alignment)_a_text);

	if (data->HasFloat("_divide"))
		data->FindFloat("_a_text", &fDivider);

	if (data->HasMessage("_mod_msg")) {
		BMessage *_mod_msg = new BMessage;
		data->FindMessage("_mod_msg", _mod_msg);
		SetModificationMessage(_mod_msg);
	}
}
Exemple #13
0
void CTRL::ChangeStyle(BODY_TYPE newStyle)
//改变控件类型
{
	ASSERT(newStyle != style);
	free(data);			//释放原来类型对应的数据空间
	InitData(newStyle);	//初始化控件数据部分
}
Exemple #14
0
void MainWindow::Resetbro(long num){
    //QStringList bro_text;
    QString tmp_data = "";
    pstustr bro_ptemp;
    bro_ptemp = head;
    ui->textBrowser->clear();
    if(!head)
    {

        QMessageBox::warning(this,tr("警告"),tr("哈哈,没人了"),QMessageBox::Yes);
        InitData();
        Resetbro();
    }
    else
    {
        while(NULL!=bro_ptemp)
        {
            if(bro_ptemp->stunum==num)
            {
                tmp_data = "  "+QString::number(bro_ptemp->id,10) + "    姓名:" + QString(bro_ptemp->name) + "   学号:"
                        + QString::number(bro_ptemp->stunum,10) + "   专业:" + QString(bro_ptemp->major)
                        + "   学科:" + QString(bro_ptemp->psubinfo.subname) + "   分数:"
                        + QString::number(bro_ptemp->psubinfo.marks,10);

                ui->textBrowser->append(tmp_data);
            }
            bro_ptemp = bro_ptemp->pnext;

        }
    }
    // ui->textBrowser->append(tmp_data);
}
Exemple #15
0
BOOL CPanelDlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	InitView();
	InitData();
	return TRUE;
}
Exemple #16
0
int main()    
{	
	InitData();	 					
	
	while(1) {

		ReadTimeAndJudgeAlarmArrival();

		switch (mainLoop) {
		case 0:
			display_time();
			break;
		case 1:
			display_data();
			break;
		case 2:
			display_alarm();
			break;
		case 3:
			display_sWatch();
			break;
		}
		KeyScan();
	}

	return 0;
}
Exemple #17
0
E_AFV::E_AFV(enginetypename t)
{
	shapeType=S_Circle;
	LoadData(t);
	InitData();
	Init_GameEntity();
}
Exemple #18
0
MonitorThread::MonitorThread():ThreadEx()
{
//	m_hEvent=::CreateEvent(NULL,TRUE,FALSE,NULL);
	SetThreadName("Work thread");
	InitData();

}
MP3File:: MP3File(const FILESOURCE_STRING &filename,
                  unsigned char *pFileBuf,
                  uint64 bufSize)
{
  InitData();
  if (pFileBuf && bufSize)
  {
    m_pFileBuf = pFileBuf;
    m_nFileBufSize = bufSize;
    m_pMP3FilePtr = OSCL_FileOpen (pFileBuf, bufSize);
  }
  else
  {
    m_hFileName = filename;
#ifdef FEATURE_FILESOURCE_FILE_IO_CACHING
     /* Calling with 10K cache  buffer size */
     m_pMP3FilePtr = OSCL_FileOpen(filename, (OSCL_TCHAR *) _T("rb"), MP3_FILE_READ_BUFFER_SIZE);
#else
     m_pMP3FilePtr = OSCL_FileOpen(filename, (OSCL_TCHAR *) _T("rb"));
#endif
     m_nFileSize = OSCL_FileSize( m_hFileName );
  }
  if(ParseMP3Header() == PARSER_ErrorNone)
  {
    _fileErrorCode = PARSER_ErrorNone;
    _success = true;
  }
}
Exemple #20
0
void CMatchGame::UpdateGameState()
{
	//检查是否匹配
	int iBoomIndex = 0;
	for (int i = 0; i < BRICK_MATCH_NUM; ++i)
	{
		if (m_arrMyBrick[i] != m_arrDestBrick[i])
		{
			m_enGameState = GAMESTATE_OVER;
			PLAY_EFFECT(EFFECT_BOOM);
			m_arrBoomIndex[iBoomIndex++] = i;
		}
	}

	//如果都匹配,则加分,检查是否通过当前等级
	if (iBoomIndex == 0)
	{
		m_iScore += MACTHSUCC_ADDSCORE;
		m_pGameScene->UpdateScore(m_iScore);

		if (++m_iMatchSuccCount >= GAMEPASS_MATCHCOUNT)
		{
			m_enGameState = GAMESTATE_PASS;
		}
		else
		{
			//重新产生目标方块和我方方块
			InitData();
		}
	}
}
bool BattleEntity::init()
{	
	m_vecAnimation.resize(ES_MAX);
	m_vecAnimation[ES_IDLE] = "Idle";
	m_vecAnimation[ES_IDLE2] = "Idle";
	m_vecAnimation[ES_RUN] = "Move";
	m_vecAnimation[ES_WIN] = "Cheer";
	m_vecAnimation[ES_FALIURE] = "failure";
	m_vecAnimation[ES_ATTACK1] = "atk";
	m_vecAnimation[ES_ATTACK2] = "atk";
	m_vecAnimation[ES_SKILL1] = "atk2";
	m_vecAnimation[ES_SKILL2] = "atk2";
	m_vecAnimation[ES_HURT] = "Damaged";
	m_vecAnimation[ES_DEAD] = "Death";

    InitData();
    m_pAnimationNode = CreateAnimation();
    addChild(m_pAnimationNode);
	m_pAnimationNode->setPosition(getAnchorPointInPoints());
	
	OnAnimationCreate(m_pAnimationNode);

    scheduleUpdate();
    return true;
}
Exemple #22
0
BOOL DlgConfigUnits::OnInitDialog()
{
    InitUnit(IDC_COMBO1, uTime);
    InitUnit(IDC_COMBO2, uDist );
    InitUnit(IDC_COMBO3, uVol  );
    InitUnit(IDC_COMBO4, uMass );

    InitUnit(IDC_COMBO5, uFlow );
    InitUnit(IDC_COMBO6, uMflow);
    InitUnit(IDC_COMBO7, uPress);

    InitUnit(IDC_COMBO8, uK    );
    InitUnit(IDC_COMBO9, uPerm );
    InitUnit(IDC_COMBO10,uTran );
    InitUnit(IDC_COMBO11,uStor );
    InitUnit(IDC_COMBO12,uComp );
    InitUnit(IDC_COMBO13,uWbor );

    InitUnit(IDC_COMBO14,uDens );
    InitUnit(IDC_COMBO15,uVisc );
    InitUnit(IDC_COMBO16,uTemp );
    InitUnit(IDC_COMBO17,uTexp );
    InitUnit(IDC_COMBO18,uGeom );

    InitUnit(IDC_COMBO19,uTinv );
    InitUnit(IDC_COMBO20,uRatio);

    CGenericDialog::OnInitDialog();

    InitData(false);

    return TRUE;
}
Exemple #23
0
BControl::BControl(BMessage* data)
	:
	BView(data)
{
	InitData(data);

	BMessage message;
	if (data->FindMessage("_msg", &message) == B_OK)
		SetMessage(new BMessage(message));

	const char* label;
	if (data->FindString("_label", &label) == B_OK)
		SetLabel(label);

	int32 value;
	if (data->FindInt32("_val", &value) == B_OK)
		SetValue(value);

	bool toggle;
	if (data->FindBool("_disable", &toggle) == B_OK)
		SetEnabled(!toggle);

	if (data->FindBool("be:wants_nav", &toggle) == B_OK)
		fWantsNav = toggle;
}
Exemple #24
0
BOOL SteadySet::IsDefine()
{
	InitData();
	if(ms_PresTolType.GetnValue() != 0)
	{
		if(ms_PresRelTol.GetfValue()<=0)
			return FALSE;
	}
	if(ms_PresTolType.GetnValue() != 1)
	{
		if(ms_PresAbsTol.GetfValue()<=0)
			return FALSE;
	}

	if(ms_FlowTolType.GetnValue() != 0)
	{
		if(ms_FlowRelTol.GetfValue()<=0)
			return FALSE;
	}
	if(ms_FlowTolType.GetnValue() != 1)
	{
		if(ms_FlowAbsTol.GetfValue()<=0)
			return FALSE;
	}
	if(ms_MaxIterations.GetnValue()<=0)
		return FALSE;
	return TRUE;
}
Exemple #25
0
BOOL Fuild::IsDefine()
{
	InitData();
	if(ms_Density.GetfValue()<=0)
		return FALSE;
	return TRUE;
}
Exemple #26
0
void PageJunOutControl::LoadShowAtt( OutMgr& outMgr )
{
    m_lstShowAtt.DeleteAllItems();
	OutAttrArray& outShowArr = outMgr.GetArray();

	CString str[50];//保存Key;
	InitData(m_strJunOrder,str);

	int k=0;
	int j;   
	for (k = 0; k < 30;k++)
	{
		if (str[k] == "0")
			break;

		for(j = 0; j < 30; j++)
		{	
			if (str[k] != "0" && str[k] == outMgr.m_OutPutSys.GetJunOutArray()[j].GetKey())
			{
				CString strName = /*outMgr.m_OutPutSys.GetJunOutArray()[j].GetStrName();*/outShowArr.GetAt(j+1).Name();
				CString strUnit = /*outMgr.m_OutPutSys.GetJunOutArray()[j].GetStrUnit();*/outShowArr.GetAt(j+1).Unit();
				CString strKey = outMgr.m_OutPutSys.GetJunOutArray()[j].GetKey();

				//m_outShowArr.Add( outShowArr.GetAt(j+1) );
				m_lstShowAtt.InsertItem( m_lstShowAtt.GetItemCount() ,strName );
				m_lstShowAtt.SetItemText( m_lstShowAtt.GetItemCount()-1, 1, strUnit );
				m_lstShowAtt.SetItemData( m_lstShowAtt.GetItemCount()-1, _ttoi(strKey) );
				break;
			}
		}
	}
}
Exemple #27
0
static ubyte StartupMenu(void)
{
    LIST *menu = txtGoKey(MENU_TXT, "STARTUP_MENU");
    U32 activ;
    char line[TXT_KEY_LENGTH];
    ubyte ret = 0;

    ShowMenuBackground();

    if (setup.Profidisk) {
        if (setup.CDRom) {
            PrintStatus(txtGetFirstLine(THECLOU_TXT,
                "BITTE_WARTEN_PC_CD_ROM_PROFI", line));
        } else {
            PrintStatus(txtGetFirstLine(THECLOU_TXT,
                "BITTE_WARTEN_PC_PROFI", line));
        }
    } else {
        if (setup.CDRom) {
            PrintStatus(txtGetFirstLine(THECLOU_TXT,
                "BITTE_WARTEN_PC_CD_ROM", line));
        } else {
            PrintStatus(txtGetFirstLine(THECLOU_TXT,
                "BITTE_WARTEN_PC", line));
        }
    }

    inpTurnFunctionKey(0);
    inpTurnESC(0);

    activ = Menu(menu, 7L, 0, NULL, 0L);

    inpTurnESC(1);
    inpTurnFunctionKey(1);

    switch (activ) {
    case 0:
	InitData();
	ret = 1;
	break;

    case 1:
	txtReset(OBJECTS_TXT);

	if (tcLoadTheClou()) {
	    film->StartScene = SceneArgs.ReturnValue;
	    ret = 1;
	}
	break;

    case 2:
	ret = 2;
	break;
    }

    RemoveList(menu);

    return ret;
}
Exemple #28
0
static int 
Initialize(int gpu)
{
	int err;
	err = SetupGraphics();
	if (err != GL_NO_ERROR)
	{
		printf ("Failed to setup OpenGL state!");
		exit (err);
	}

	err = SetupComputeDevices(gpu);
	if(err != CL_SUCCESS)
	{
		printf ("Failed to connect to compute device! Error %d\n", err);
		exit (err);
	}

	err = SetupGLProgram();
	if (err != 1)
	{
		printf ("Failed to setup OpenGL Shader! Error %d\n", err);
		exit (err);
	}

	err = InitData();
	if (err != 1)
	{
		printf ("Failed to Init FFT Data! Error %d\n", err);
		exit (err);
	}

	err = CreateGLResouce();
	if (err != 1)
	{
		printf ("Failed to create GL resource! Error %d\n", err);
		exit (err);
	}

	glFinish();

	err = SetupComputeKernel();
	if (err != CL_SUCCESS)
	{
		printf ("Failed to setup compute kernel! Error %d\n", err);
		exit (err);
	}

	err = CreateComputeResource();
	if(err != CL_SUCCESS)
	{
		printf ("Failed to create compute result! Error %d\n", err);
		exit (err);
	}

	clFlush(ComputeCommands);

	return CL_SUCCESS;
}
Exemple #29
0
CDisplayInfo::CDisplayInfo(LPGUID lpGuid, LPSTR lpDriverDescription, LPSTR lpDriverName)
{
	InitData();

	// Copy the GUID if found
	if (lpGuid)
	{
		memcpy(&mID, lpGuid, sizeof(GUID));
		mIsDefault = FALSE;
	}
	else
	{
		mID = GUID(GUID_NULL);
		mIsDefault = TRUE;
	}

	// Store description
	CopyString(&mDriverDescription, lpDriverDescription);

	// Store name
	CopyString(&mDriverName, lpDriverName);

	// Get friendly name
	if (mIsDefault)
	{
		CopyString(&mFriendlyName, DEFAULT_DISPLAY_NAME);
	}
	else if ((mDriverName != NULL) && (mDriverDescription != NULL))
	{
		// Get lengths of name and description
		size_t nameLen = strlen(mDriverName);
		size_t onLen = strlen(DISPLAY_ON_TEXT);
		size_t descLen = strlen(mDriverDescription);
		size_t friendlyLen = nameLen + onLen + descLen + 1;

		// Pointer to the start of the name
		char* nameStart = mDriverName;

		// Is it the standard device notation of \\.\?
		if (strncmp("\\\\.\\", mDriverName, 4) == 0)
		{
			// Update to skip the notation
			nameLen -= 4;
			friendlyLen -= 4;
			nameStart += 4;
		}

		// Allocate
		mFriendlyName = new char[friendlyLen];
		
		// Pointer for text insertion
		char* insertion = mFriendlyName;

		// Build friendly name
		strcpy(insertion, nameStart);
		strcpy((insertion += nameLen), DISPLAY_ON_TEXT);
		strcpy((insertion += onLen), mDriverDescription);
	}
}
Exemple #30
0
void Texture::LoadFromImage(gui::Image* image)
{
	size = image->GetSize();
	internalFormat = Format::RGBA;
	format = Format::RGBA;
	dataType = DataType::Byte;
	InitData(reinterpret_cast<uint8*>(&(image->data[0])));
}