private void load(Storage storage, GameHost host, ShaderManager manager, FrameworkConfigManager config, TypeProyect game) { this.storage = storage; this.host = host; this.game = game; loadTargets.Add(manager.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.TEXTURE_ROUNDED)); loadTargets.Add(manager.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.BLUR)); loadTargets.Add(manager.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.TEXTURE)); loadTargets.Add(manager.Load(VertexShaderDescriptor.TEXTURE_3, FragmentShaderDescriptor.TEXTURE_ROUNDED)); loadTargets.Add(manager.Load(VertexShaderDescriptor.TEXTURE_3, FragmentShaderDescriptor.TEXTURE)); config.GetBindable <WindowMode>(FrameworkSetting.WindowMode).Value = WindowMode.Fullscreen; config.GetBindable <FrameSync>(FrameworkSetting.FrameSync).Value = FrameSync.Unlimited; }
private void load(Storage storage, TypeProyect proyect) { this.storage = storage; this.proyect = proyect; if (!storage.Exists("list.json")) { return; } using (StreamReader r = new StreamReader(storage.GetStream("list.json"))) foreach (string s in JsonConvert.DeserializeObject <List <string> >(r.ReadToEnd())) { using (StreamReader sr = new StreamReader(storage.GetStream(s))) metadataList.Add(JsonConvert.DeserializeObject <AudioMetadata>(sr.ReadToEnd())); } Schedule(PlayNext); }
private void load(TypeProyect proyect, ShaderManager shaders) { shader = shaders?.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.TEXTURE); meta.BindTo(proyect.Metadata); }
private void load(Storage storage, TypeProyect proyect) { this.storage = storage; metadata.BindTo(proyect.Metadata); }
private void load(ShaderManager shaders, TypeProyect proyect) { meta.BindTo(proyect.Metadata); shader = shaders?.Load(VertexShaderDescriptor.TEXTURE_2, FragmentShaderDescriptor.TEXTURE_ROUNDED); }
private void load(TypeProyect proj) { proyect = proj; metadata.BindTo(proj.Metadata); metadata.ValueChanged += selfText; }