Exemple #1
0
 public graphtex()
 {
     texMeth   = textureMethE.none;
     texGeom   = textureGeomE.none;
     scale     = Vector3.zero;
     rotate    = Vector3.zero;
     translate = Vector3.zero;
 }
Exemple #2
0
 public graphtex(graphtex gt)
 {
     this.texMeth      = gt.texMeth;
     this.texGeom      = gt.texGeom;
     this.bitmapName   = gt.bitmapName;
     this.materialName = gt.materialName;
     this.bitmapXpix   = gt.bitmapXpix;
     this.bitmapYpix   = gt.bitmapYpix;
     this.aspectXoY    = gt.aspectXoY;
     this.scale        = gt.scale;
     this.rotate       = gt.rotate;
     this.translate    = gt.translate;
 }
Exemple #3
0
 public void SetMaterialPlane(string matname, int xpix, int ypix, Vector3 sca, Vector3 rot, Vector3 trn)
 {
     // here we store the bitmap values for possible future reference, but we do not use them
     this.texMeth      = textureMethE.material;
     this.texGeom      = textureGeomE.plane;
     this.materialName = matname;
     this.bitmapXpix   = xpix;
     this.bitmapYpix   = ypix;
     this.aspectXoY    = xpix * 1f / ypix;
     this.scale        = sca;
     this.rotate       = rot;
     this.translate    = trn;
 }
Exemple #4
0
        public void SetMaterialPlane(string matname, int xpix, int ypix, Vector3 rot, Vector3 trn, float scalefak = 1)
        {
            // here we calculate the scale factor from the aspect ratio
            this.texMeth      = textureMethE.material;
            this.texGeom      = textureGeomE.plane;
            this.materialName = matname;
            this.bitmapXpix   = xpix;
            this.bitmapYpix   = ypix;
            this.aspectXoY    = xpix * 1f / ypix;
            var sca = new Vector3(10 * aspectXoY, 1, 10);

            this.scale     = sca * scalefak;
            this.rotate    = rot;
            this.translate = trn;
        }