コード例 #1
0
        public MaterialRepository(string materialsDirectory, Material defaultLandmarkMaterial, TextureLoadHandler textureLoadHandler)
        {
            m_materialDirectory = materialsDirectory;
            m_materials         = new Dictionary <string, MaterialRecord>();
            m_defaultMaterial   = defaultLandmarkMaterial == null?LoadPlaceHolderMaterial("placeholder") : defaultLandmarkMaterial;

            m_defaultRasterTerrainMaterial = LoadOrCreateMaterial("placeholder", "placeholder_rasterTerrain");
            m_textureLoadHandler           = textureLoadHandler;
        }
コード例 #2
0
 public TextureLoadHandler()
 {
     ms_instance = this;
 }