public ModelManager(GameScreen gameScreen) { this.gameScreen = gameScreen; ListModels = new List<ModelStruct>(); DiccModels = new Dictionary<int, string>(); }
public Terrain(GameScreen gameScreen, Vector2 size) { this.gameScreen = gameScreen; this.Size = size; planeEffect = new BasicEffect(gameScreen.GraphicsDevice); }
public Sphere(GameScreen GameScreen, float Radius) { this.gameScreen = GameScreen; radius = Radius; graphicd = gameScreen.GraphicsDevice; effect = new BasicEffect(graphicd); nvertices = 90 * 90; nindices = 90 * 90 * 6; vbuffer = new VertexBuffer(graphicd, typeof(VertexPositionNormalTexture), nvertices, BufferUsage.WriteOnly); ibuffer = new IndexBuffer(graphicd, IndexElementSize.SixteenBits, nindices, BufferUsage.WriteOnly); createspherevertices(); createindices(); vbuffer.SetData<VertexPositionColor>(vertices); ibuffer.SetData<short>(indices); effect.VertexColorEnabled = true; }
public Cube(GameScreen gameScreen, Vector3 size, Vector3 position) { this.gameScreen = gameScreen; Size = size; Position = position; cubeTexture = gameScreen.Content.Load<Texture2D>("Textures/cube"); cubeEffect = new BasicEffect(gameScreen.GraphicsDevice); }
public Pause(GameScreen gameScreen) { this.gameScreen = gameScreen; }
protected override void Initialize() { loadScreen = new LoadScreen(this, this); gameScreen = new GameScreen(this, this); main = new Main(this, this); cutScenes = new CutScenes(this, this); //Crea Camara Statica objCamara = new Camara1(this, new Vector3(0, 0, 100), new Vector3(0, 0, 1), Vector3.Up); //Create Options Menu controls = new Controls(this, this); // this.Components.Add(loadScreen); // this.Components.Add(cutScenes); setState(GameStates.CUTSCENE); base.Initialize(); }