Example #1
0
        public void tangY()
        {
            CTerrainMesh expr_0B_cp_0 = this.myTerrain;

            expr_0B_cp_0.lightDirection.Y   = expr_0B_cp_0.lightDirection.Y + 1f;
            this.device.Lights[0].Direction = this.myTerrain.lightDirection;
            this.device.Lights[0].Update();
        }
Example #2
0
        public void giamZ()
        {
            CTerrainMesh expr_0B_cp_0 = this.myTerrain;

            expr_0B_cp_0.lightDirection.Z   = expr_0B_cp_0.lightDirection.Z - 1f;
            this.device.Lights[0].Direction = this.myTerrain.lightDirection;
            this.device.Lights[0].Update();
        }
Example #3
0
 public CTerrain(Panel pMapPanel, float[,] pheightData, float pSCALE_FACTOR, char pDecSepa, char pGrpSepa)
 {
     this.m_MapPanel = pMapPanel;
     this.InitializeDevice();
     this.myTerrain        = new CTerrainMesh(this.device, pheightData, pSCALE_FACTOR);
     this.m_BillboardMeshs = new List <CBillboardMesh>();
     this.Billboards       = new List <CBillboard>();
     this.m_ModelMeshs     = new List <CModelMesh>();
     this.Models           = new List <CModel>();
 }
 public CBillboard(CTerrainMesh pTerrain, string pName, Device device, CBillboardMesh pBillboardMesh, Vector3 position, float pAngleZ)
 {
     this.visible         = true;
     this.m_frame         = 0;
     this.Name            = pName;
     this.m_BillboardMesh = pBillboardMesh;
     this.m_frameMax      = this.m_BillboardMesh.GetFrameMax();
     this.myTerrain       = pTerrain;
     this.Position        = position;
     this.angleZ          = pAngleZ;
     this.m_currrow       = 0;
 }
Example #5
0
 public CThucHanh(Form pMapPanel, float[,] pheightData, float pSCALE_FACTOR, char pDecSepa, char pGrpSepa)
 {
     try
     {
         this.m_MapPanel = pMapPanel;
         this.InitializeDevice(pMapPanel);
         this.myTerrain        = new CTerrainMesh(this.device, pheightData, pSCALE_FACTOR);
         this.mySound          = new CSounds(pMapPanel);
         this.m_SoundNames     = new List <string>();
         this.m_BillboardMeshs = new List <CBillboardMesh>();
         this.Billboards       = new List <CBillboard>();
         this.ModelMeshs       = new List <CModelMesh>();
         this.Models           = new List <CModel>();
         this.SpriteTexs       = new List <CSpriteTex>();
         this.SpriteObjs       = new List <CSpriteObj>();
         this.texObjs          = new List <CTexObj>();
         this.runactions       = new CRunActs();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }