Arc compat
This commit is contained in:
@@ -157,7 +157,7 @@ public class BlockRenderer implements Disposable{
|
||||
shadows.end();
|
||||
shadowEvents.clear();
|
||||
|
||||
Draw.proj(camera.projection());
|
||||
Draw.proj(camera);
|
||||
}
|
||||
|
||||
float ww = world.width() * tilesize, wh = world.height() * tilesize;
|
||||
|
||||
@@ -119,7 +119,7 @@ public class FloorRenderer implements Disposable{
|
||||
return;
|
||||
}
|
||||
|
||||
cbatch.setProjection(Core.camera.projection());
|
||||
cbatch.setProjection(Core.camera.mat);
|
||||
cbatch.beginDraw();
|
||||
|
||||
Gl.enable(Gl.blend);
|
||||
@@ -185,7 +185,7 @@ public class FloorRenderer implements Disposable{
|
||||
}
|
||||
|
||||
private void cacheChunkLayer(int cx, int cy, Chunk chunk, CacheLayer layer){
|
||||
SpriteBatch current = Core.batch;
|
||||
Batch current = Core.batch;
|
||||
Core.batch = cbatch;
|
||||
|
||||
//begin a new cache
|
||||
|
||||
@@ -180,7 +180,7 @@ public class MenuRenderer implements Disposable{
|
||||
Draw.color();
|
||||
shadows.end();
|
||||
|
||||
SpriteBatch prev = Core.batch;
|
||||
Batch prev = Core.batch;
|
||||
|
||||
Core.batch = batch = new CacheBatch(new SpriteCache(width * height * 6, false));
|
||||
batch.beginCache();
|
||||
@@ -214,8 +214,8 @@ public class MenuRenderer implements Disposable{
|
||||
|
||||
mat.set(Draw.proj());
|
||||
Draw.flush();
|
||||
Draw.proj(camera.projection());
|
||||
batch.setProjection(camera.projection());
|
||||
Draw.proj(camera);
|
||||
batch.setProjection(camera.mat);
|
||||
batch.beginDraw();
|
||||
batch.drawCache(cacheFloor);
|
||||
batch.endDraw();
|
||||
|
||||
Reference in New Issue
Block a user