Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 void ContextRecreated()
 {
     if (vertices == null)
     {
         return;
     }
     vb     = gfx.CreateDynamicVb(VertexFormat.P3fC4b, vertices.Length);
     lineVb = gfx.CreateDynamicVb(VertexFormat.P3fC4b, lineVertices.Length);
 }
Esempio n. 3
0
 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();
 }
Esempio n. 6
0
 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;
        }
Esempio n. 11
0
 public PickingRenderer( Game window )
 {
     graphics = window.Graphics;
     vb = graphics.CreateDynamicVb( VertexFormat.Pos3fCol4b, verticesCount );
     info = window.BlockInfo;
 }
Esempio n. 12
0
 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;
 }
Esempio n. 14
0
 void ContextRecreated()
 {
     vb = gfx.CreateDynamicVb(VertexFormat.P3fT2fC4b, vertices.Length);
 }
Esempio n. 15
0
 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;
 }