-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssets.cs
41 lines (32 loc) · 1.32 KB
/
Assets.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using LeyStoneEngine;
using LeyStoneEngine.Utility;
using LeyStoneEngine.Interface;
using LeyStoneEngine.Graphics;
using Microsoft.Xna.Framework.Content;
namespace LeyStoneGame
{
public class Assets : BaseAssets
{
public override void Load(GraphicsDevice device, ContentManager manager)
{
LoadWhitePixel(device, manager);
base.Load(device, manager);
textures.Add("porto", manager.Load<Texture2D>("Textures/Porto"));
textures.Add("test", manager.Load<Texture2D>("Textures/test"));
textures.Add("glowMask", manager.Load<Texture2D>("Textures/glowMask"));
textures.Add("bolt", manager.Load<Texture2D>("Textures/bolt"));
EffectContainer sharpen = new EffectContainer(manager.Load<Effect>("Effects/sharpen"), EffectUse.Pre);
effectContainers.Add("sharpen", sharpen);
EffectContainer chromaticAbberation = new EffectContainer(manager.Load<Effect>("Effects/chromaticAbberation"), EffectUse.Pre);
effectContainers.Add("chromaticAbberation", chromaticAbberation);
}
}
}