GetLocation() static private method

static private GetLocation ( string textFileName, int stackIndex, Assembly &executingAssembly, string &location ) : void
textFileName string
stackIndex int
executingAssembly System.Reflection.Assembly
location string
return void
Example #1
0
            internal static TeapotModel Load()
            {
                Assembly executingAssembly;
                string   location;

                ManifestResourceLoader.GetLocation(@"IBufferables\TeapotModel.obj", 1, out executingAssembly, out location);

                using (Stream stream = executingAssembly.GetManifestResourceStream(location))
                {
                    using (var reader = new StreamReader(stream))
                    {
                        TeapotModel model = LoadModels(reader);
                        GenNormals(model);

                        return(model);
                    }
                }
            }