package de.dakror.tube.game.tube;

import static org.lwjgl.opengl.GL11.*;
import de.dakror.tube.util.RenderAssistant;

public class Field
{
	public static final float SIZE = 1;
	
	int pos;
	boolean block;
	
	public Field(int pos, boolean block)
	{
		this.pos = pos;
		this.block = block;
	}
	
	public void render()
	{
		glTranslatef(0, 0, pos);
		glRotatef(90, 1, 0, 0);
		glEnable(GL_TEXTURE_2D);
		if (System.getProperty("os.version").equals("6.0")) glColor3f(1, 0, 0);
		RenderAssistant.bindTexture("/img/field.png");
		
		float size = 0.85f;
		
		RenderAssistant.renderRect(0, 0, 1, 1, 0, 0, size, size);
	}
}

@@ -392,32 +392,31 @@
 %0D%0A%09%09
-glEnable(GL_TEXTURE_2D);
+float size = 0.85f;%0D%0A%09%09
 %0D%0A%09%09
@@ -471,29 +471,414 @@
 %22)) 
-glColor3f(1, 0, 0);%0D%0A
+// vista fix%0D%0A%09%09%7B%0D%0A%09%09%09glLineWidth(5f);%0D%0A%09%09%09glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);%0D%0A%09%09%09glColor3f(0, 0, 0);%0D%0A%09%09%09%0D%0A%09%09%09RenderAssistant.renderRect(0, 0, 1, 1, 0, 0, size, size);%0D%0A%09%09%09glLineWidth(1f);%0D%0A%09%09%09%0D%0A%09%09%09glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);%0D%0A%09%09%09%0D%0A%09%09%09glColor3f(1, 1, 1);%0D%0A%09%09%09RenderAssistant.renderRect(0.01f, 0.01f, 0.98f, 0.98f, 0, 0, size, size);%0D%0A%09%09%7D%0D%0A%09%09else%0D%0A%09%09%7B%0D%0A%09%09%09glEnable(GL_TEXTURE_2D);%0D%0A%09
 %09%09Re
@@ -929,38 +929,37 @@
 %0D%0A%09%09
+%09
 %0D%0A%09%09
-float size = 0.85f
+%09glColor3f(1, 1, 1)
 ;%0D%0A%09%09
-%0D%0A%09
 %09Ren
@@ -1014,15 +1014,24 @@
 size);%0D%0A
+%09%09%7D%0D%0A%09%09%0D%0A
 %09%7D%0D%0A%7D%0D%0A

fix for evlotz' laptop