static private GetLocation ( string textFileName, int stackIndex, |
||
textFileName | string | |
stackIndex | int | |
executingAssembly | ||
location | string | |
return | void |
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); } } }