void InitData() { vertices = new VertexPos3fCol4b[256 * VerticesCount]; lineVertices = new VertexPos3fCol4b[256 * LineVerticesCount]; vb = Graphics.CreateDynamicVb(VertexFormat.Pos3fCol4b, vertices.Length); lineVb = Graphics.CreateDynamicVb(VertexFormat.Pos3fCol4b, lineVertices.Length); }
void ContextRecreated() { if (vertices == null) { return; } vb = gfx.CreateDynamicVb(VertexFormat.P3fC4b, vertices.Length); lineVb = gfx.CreateDynamicVb(VertexFormat.P3fC4b, lineVertices.Length); }
public void InitCache() { vertices = new VertexPos3fTex2fCol4b[24 * 12]; vb = api.CreateDynamicVb(VertexFormat.Pos3fTex2fCol4b, vertices.Length); cache["humanoid"] = new HumanoidModel(game); cache["human"] = cache["humanoid"]; }
public void InitCache() { vertices = new VertexP3fT2fC4b[24 * 12]; vb = api.CreateDynamicVb(VertexFormat.P3fT2fC4b, vertices.Length); RegisterDefaultModels(); game.Events.TextureChanged += TextureChanged; }
public void Init(Game game) { api = game.Graphics; vb = api.CreateDynamicVb(VertexFormat.P3fC4b, verticesCount); this.game = game; col = new FastColour(0, 0, 0, 102).Pack(); }
public WeatherRenderer( Game game ) { this.game = game; map = game.Map; graphics = game.Graphics; info = game.BlockInfo; weatherVb = graphics.CreateDynamicVb( VertexFormat.Pos3fTex2fCol4b, 12 * 9 * 9 ); }
public WeatherRenderer(Game game) { this.game = game; map = game.Map; graphics = game.Graphics; info = game.BlockInfo; weatherVb = graphics.CreateDynamicVb(VertexFormat.Pos3fTex2fCol4b, vertices.Length); }
public void Init( Game game ) { this.game = game; map = game.World; graphics = game.Graphics; info = game.BlockInfo; weatherVb = graphics.CreateDynamicVb( VertexFormat.P3fT2fC4b, vertices.Length ); }
public void Init(Game game) { this.game = game; map = game.World; graphics = game.Graphics; info = game.BlockInfo; weatherVb = graphics.CreateDynamicVb(VertexFormat.P3fT2fC4b, vertices.Length); game.Events.TextureChanged += TextureChanged; }
public void InitCache() { vertices = new VertexP3fT2fC4b[24 * 12]; vb = api.CreateDynamicVb(VertexFormat.P3fT2fC4b, vertices.Length); IModel model = new HumanoidModel(game); model.CreateParts(); cache["humanoid"] = model; cache["human"] = cache["humanoid"]; game.Events.TextureChanged += TextureChanged; }
public PickingRenderer( Game window ) { graphics = window.Graphics; vb = graphics.CreateDynamicVb( VertexFormat.Pos3fCol4b, verticesCount ); info = window.BlockInfo; }
public ParticleManager( Game game ) { this.game = game; graphics = game.Graphics; vb = graphics.CreateDynamicVb( VertexFormat.Pos3fTex2fCol4b, 1000 ); }
public PickingRenderer(Game game) { graphics = game.Graphics; vb = graphics.CreateDynamicVb(VertexFormat.Pos3fCol4b, verticesCount); this.game = game; }
void ContextRecreated() { vb = gfx.CreateDynamicVb(VertexFormat.P3fT2fC4b, vertices.Length); }
public void Init( Game game ) { graphics = game.Graphics; vb = graphics.CreateDynamicVb( VertexFormat.P3fC4b, verticesCount ); this.game = game; }
public void Init(Game game) { graphics = game.Graphics; vb = graphics.CreateDynamicVb(VertexFormat.P3fC4b, verticesCount); this.game = game; }