/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { m_SpriteBatch = new SpriteBatch(GraphicsDevice); m_RayCaster = new RayCaster(m_Graphics.GraphicsDevice, RayCastRenderWidth, RayCastRenderHeight); m_Font1 = Content.Load <SpriteFont>("Courier New"); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load <Texture2D>("Textures/242"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load <Texture2D>("Textures/244"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load <Texture2D>("Textures/241"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load <Texture2D>("Textures/203"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load <Texture2D>("Textures/245"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load <Texture2D>("Textures/233"))); m_RayCasterCamera = new RayCasterCamera(); m_RayCasterMap = new RayCasterMap(); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { m_SpriteBatch = new SpriteBatch(GraphicsDevice); m_RayCaster = new RayCaster(m_Graphics.GraphicsDevice, RayCastRenderWidth, RayCastRenderHeight); m_Font1 = Content.Load<SpriteFont>("Courier New"); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load<Texture2D>("Textures/242"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load<Texture2D>("Textures/244"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load<Texture2D>("Textures/241"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load<Texture2D>("Textures/203"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load<Texture2D>("Textures/245"))); m_RayCaster.AddRayCasterTexture(new RayCasterTexture(Content.Load<Texture2D>("Textures/233"))); m_RayCasterCamera = new RayCasterCamera(); m_RayCasterMap = new RayCasterMap(); }