mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Remove unused variables.
This commit is contained in:
parent
21fb55f292
commit
8918b146aa
@ -25,7 +25,6 @@ namespace ClassicalSharp {
|
|||||||
fpsCount++;
|
fpsCount++;
|
||||||
maxDelta = Math.Max( maxDelta, delta );
|
maxDelta = Math.Max( maxDelta, delta );
|
||||||
accumulator += delta;
|
accumulator += delta;
|
||||||
long vertices = Window.Vertices;
|
|
||||||
|
|
||||||
if( accumulator >= 1 ) {
|
if( accumulator >= 1 ) {
|
||||||
fixed( char* ptr = text.value ) {
|
fixed( char* ptr = text.value ) {
|
||||||
|
@ -211,8 +211,7 @@ namespace ClassicalSharp {
|
|||||||
|
|
||||||
const int axisSize = 128;
|
const int axisSize = 128;
|
||||||
void DrawXPlaneParts( int x, int z1, int z2, int y1, int y2, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
void DrawXPlaneParts( int x, int z1, int z2, int y1, int y2, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
||||||
int length = z2 - z1, endZ = z2;
|
int endZ = z2, endY = y2, startY = y1;
|
||||||
int height = y2 - y1, endY = y2, startY = y1;
|
|
||||||
for( ; z1 < endZ; z1 += axisSize ) {
|
for( ; z1 < endZ; z1 += axisSize ) {
|
||||||
z2 = z1 + axisSize;
|
z2 = z1 + axisSize;
|
||||||
if( z2 > endZ ) z2 = endZ;
|
if( z2 > endZ ) z2 = endZ;
|
||||||
@ -226,8 +225,7 @@ namespace ClassicalSharp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DrawZPlaneParts( int z, int x1, int x2, int y1, int y2, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
void DrawZPlaneParts( int z, int x1, int x2, int y1, int y2, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
||||||
int width = x2 - x1, endX = x2;
|
int endX = x2, endY = y2, startY = y1;
|
||||||
int height= y2 - y1, endY = y2, startY = y1;
|
|
||||||
for( ; x1 < endX; x1 += axisSize ) {
|
for( ; x1 < endX; x1 += axisSize ) {
|
||||||
x2 = x1 + axisSize;
|
x2 = x1 + axisSize;
|
||||||
if( x2 > endX ) x2 = endX;
|
if( x2 > endX ) x2 = endX;
|
||||||
@ -241,8 +239,7 @@ namespace ClassicalSharp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DrawYPlaneParts( int x1, int z1, int x2, int z2, int y, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
void DrawYPlaneParts( int x1, int z1, int x2, int z2, int y, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
||||||
int width = x2 - x1, endX = x2;
|
int endX = x2, endZ = z2, startZ = z1;
|
||||||
int length = z2 - z1, endZ = z2, startZ = z1;
|
|
||||||
for( ; x1 < endX; x1 += axisSize ) {
|
for( ; x1 < endX; x1 += axisSize ) {
|
||||||
x2 = x1 + axisSize;
|
x2 = x1 + axisSize;
|
||||||
if( x2 > endX ) x2 = endX;
|
if( x2 > endX ) x2 = endX;
|
||||||
|
@ -203,8 +203,7 @@ namespace ClassicalSharp.Renderers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DrawSkyYPlaneParts( int x1, int z1, int x2, int z2, int y, FastColour col, VertexPos3fCol4b[] vertices ) {
|
void DrawSkyYPlaneParts( int x1, int z1, int x2, int z2, int y, FastColour col, VertexPos3fCol4b[] vertices ) {
|
||||||
int width = x2 - x1, endX = x2;
|
int endX = x2, endZ = z2, startZ = z1;
|
||||||
int length = z2 - z1, endZ = z2, startZ = z1;
|
|
||||||
|
|
||||||
for( ; x1 < endX; x1 += 128 ) {
|
for( ; x1 < endX; x1 += 128 ) {
|
||||||
x2 = x1 + 128;
|
x2 = x1 + 128;
|
||||||
@ -219,8 +218,7 @@ namespace ClassicalSharp.Renderers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DrawCloudsYPlaneParts( int x1, int z1, int x2, int z2, int y, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
void DrawCloudsYPlaneParts( int x1, int z1, int x2, int z2, int y, FastColour col, VertexPos3fTex2fCol4b[] vertices ) {
|
||||||
int width = x2 - x1, endX = x2;
|
int endX = x2, endZ = z2, startZ = z1;
|
||||||
int length = z2 - z1, endZ = z2, startZ = z1;
|
|
||||||
|
|
||||||
for( ; x1 < endX; x1 += 128 ) {
|
for( ; x1 < endX; x1 += 128 ) {
|
||||||
x2 = x1 + 128;
|
x2 = x1 + 128;
|
||||||
|
@ -59,7 +59,6 @@ namespace ClassicalSharp.Selections {
|
|||||||
Line( vertices, ref index, p2.X, p1.Y, p2.Z, p2.X, p2.Y, p2.Z );
|
Line( vertices, ref index, p2.X, p1.Y, p2.Z, p2.X, p2.Y, p2.Z );
|
||||||
Line( vertices, ref index, p1.X, p1.Y, p2.Z, p1.X, p2.Y, p2.Z );
|
Line( vertices, ref index, p1.X, p1.Y, p2.Z, p1.X, p2.Y, p2.Z );
|
||||||
LineVerticesCount = vertices.Length;
|
LineVerticesCount = vertices.Length;
|
||||||
int size = vertices.Length * VertexPos3fCol4b.Size;
|
|
||||||
LineVboId = Graphics.InitVb( vertices, VertexFormat.Pos3fCol4b );
|
LineVboId = Graphics.InitVb( vertices, VertexFormat.Pos3fCol4b );
|
||||||
|
|
||||||
vertices = new VertexPos3fCol4b[6 * 6];
|
vertices = new VertexPos3fCol4b[6 * 6];
|
||||||
@ -72,7 +71,6 @@ namespace ClassicalSharp.Selections {
|
|||||||
RenderZPlane( vertices, ref index, p1.Z, p2.Z, p1.Y, p2.Y, p1.X );
|
RenderZPlane( vertices, ref index, p1.Z, p2.Z, p1.Y, p2.Y, p1.X );
|
||||||
RenderZPlane( vertices, ref index, p1.Z, p2.Z, p1.Y, p2.Y, p2.X );
|
RenderZPlane( vertices, ref index, p1.Z, p2.Z, p1.Y, p2.Y, p2.X );
|
||||||
VerticesCount = vertices.Length;
|
VerticesCount = vertices.Length;
|
||||||
size = vertices.Length * VertexPos3fCol4b.Size;
|
|
||||||
VboId = Graphics.InitVb( vertices, VertexFormat.Pos3fCol4b );
|
VboId = Graphics.InitVb( vertices, VertexFormat.Pos3fCol4b );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user