SetTetureDlg.cpp
资源名称:3dwind2.0.rar [点击查看]
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:3k
源码类别:
游戏引擎
开发平台:
Visual C++
- // SetTetureDlg.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "OGRESceneMgr.h"
- #include "SetTetureDlg.h"
- #include ".setteturedlg.h"
- CString importtextruename;
- // CSetTetureDlg 对话框
- IMPLEMENT_DYNAMIC(CSetTetureDlg, CDialog)
- CSetTetureDlg::CSetTetureDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CSetTetureDlg::IDD, pParent)
- {
- bimporttexture=false;
- texturename=0;
- }
- CSetTetureDlg::~CSetTetureDlg()
- {
- }
- void CSetTetureDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_COMBOTEXTURE, SetTextureCombo);
- SetTextureCombo.AddString("Examples/EnvMappedRustySteel");
- SetTextureCombo.AddString("Examples/DarkMaterial");
- SetTextureCombo.AddString("Examples/SpaceSkyBox");
- SetTextureCombo.AddString("Examples/OgreLogo");
- SetTextureCombo.AddString("Examples/SceneSkyBox1");
- SetTextureCombo.AddString("Examples/SceneCubeMap1");
- SetTextureCombo.AddString("Examples/SceneSkyBox2");
- SetTextureCombo.AddString("Examples/SceneCubeMap2");
- SetTextureCombo.AddString("Examples/CloudyNoonSkyBox");
- SetTextureCombo.AddString("Examples/StormySkyBox");
- SetTextureCombo.AddString("Examples/MorningSkyBox");
- SetTextureCombo.AddString("Examples/EveningSkyBox");
- SetTextureCombo.AddString("Examples/CloudySky");
- SetTextureCombo.AddString("Examples/RustySteel");
- SetTextureCombo.AddString("Examples/Chrome");
- SetTextureCombo.AddString("Examples/SpaceSkyPlane");
- SetTextureCombo.AddString("Examples/TextureEffect1");
- SetTextureCombo.AddString("Examples/TextureEffect2");
- SetTextureCombo.AddString("Examples/TextureEffect3");
- SetTextureCombo.AddString("Examples/TextureEffect4");
- SetTextureCombo.AddString("Examples/BumpyMetal");
- SetTextureCombo.AddString("Examples/TransparentTest");
- SetTextureCombo.AddString("Examples/Flare");
- SetTextureCombo.AddString("Examples/Flare2");
- SetTextureCombo.AddString("Examples/Droplet");
- SetTextureCombo.AddString("Examples/Hilite/Yellow");
- SetTextureCombo.AddString("Examples/Rocky");
- SetTextureCombo.AddString("Examples/10PointBlock");
- SetTextureCombo.AddString("Material__25");
- SetTextureCombo.AddString("2 - Default");
- SetTextureCombo.AddString("Material #8");
- SetTextureCombo.AddString("Material #3");
- SetTextureCombo.AddString("Material #9");
- SetTextureCombo.AddString("Examples/Fish");
- SetTextureCombo.AddString("Examples/Ninja");
- SetTextureCombo.AddString("Examples/Robot");
- }
- BEGIN_MESSAGE_MAP(CSetTetureDlg, CDialog)
- ON_BN_CLICKED(IDC_BUTTONIMPORTTEXTURE, OnBnClickedButtonimporttexture)
- END_MESSAGE_MAP()
- // CSetTetureDlg 消息处理程序
- void CSetTetureDlg::OnBnClickedButtonimporttexture()
- {
- // TODO: 在此添加控件通知处理程序代码
- this->SetTextureCombo.GetLBText(this->SetTextureCombo.GetCurSel(),importtextruename);
- texturename=importtextruename.GetBuffer(importtextruename.GetLength());
- if(0==strlen(texturename)){
- MessageBox("纹理名不可为空!");}
- else
- bimporttexture=true;
- }