SetShadowTechnich.cpp
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:2k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. // SetShadowTechnich.cpp : 实现文件
  2. //
  3. #include "stdafx.h"
  4. #include "OGRESceneMgr.h"
  5. #include "SetShadowTechnich.h"
  6. #include ".setshadowtechnich.h"
  7. // SetShadowTechnich 对话框
  8. IMPLEMENT_DYNAMIC(SetShadowTechnich, CDialog)
  9. SetShadowTechnich::SetShadowTechnich(CWnd* pParent /*=NULL*/)
  10. : CDialog(SetShadowTechnich::IDD, pParent)
  11. {
  12. shadowtechenum="";
  13. }
  14. SetShadowTechnich::~SetShadowTechnich()
  15. {
  16. }
  17. void SetShadowTechnich::DoDataExchange(CDataExchange* pDX)
  18. {
  19. CDialog::DoDataExchange(pDX);
  20. DDX_Control(pDX, IDC_COMBO1, ShadowTechCombo);
  21. ShadowTechCombo.AddString("SHADOWTYPE_NONE");
  22. ShadowTechCombo.AddString("SHADOWDETAILTYPE_ADDITIVE");
  23. ShadowTechCombo.AddString("SHADOWDETAILTYPE_MODULATIVE");
  24. ShadowTechCombo.AddString("SHADOWDETAILTYPE_INTEGRATED");
  25. ShadowTechCombo.AddString("SHADOWDETAILTYPE_STENCIL ");
  26. ShadowTechCombo.AddString("SHADOWDETAILTYPE_TEXTURE");
  27. ShadowTechCombo.AddString("SHADOWTYPE_STENCIL_MODULATIVE ");
  28. ShadowTechCombo.AddString("SHADOWTYPE_STENCIL_ADDITIVE");
  29. ShadowTechCombo.AddString("SHADOWTYPE_TEXTURE_MODULATIVE");
  30. ShadowTechCombo.AddString("SHADOWTYPE_TEXTURE_ADDITIVE");
  31. ShadowTechCombo.AddString("SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED");
  32. ShadowTechCombo.AddString("SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED");
  33. }
  34. BEGIN_MESSAGE_MAP(SetShadowTechnich, CDialog)
  35. ON_CBN_SELCHANGE(IDC_COMBO1, OnCbnSelchangeCombo1)
  36. END_MESSAGE_MAP()
  37. // SetShadowTechnich 消息处理程序
  38. void SetShadowTechnich::OnCbnSelchangeCombo1()
  39. {
  40. // TODO: 在此添加控件通知处理程序代码
  41. //ShadowTechCombo.GetLBText(ShadowTechCombo.GetCurSel(),shadowtechenum);
  42. shadowtecenshu=ShadowTechCombo.GetCurSel();
  43. }