feat(JOML): migrate BlockSelectionRenderer
import org.terasology.math.JomlUtil;
import org.terasology.math.geom.Rect2f;
import org.terasology.math.geom.Vector3f;
-import org.terasology.math.geom.Vector3i;
import org.terasology.module.sandbox.API;
import org.terasology.registry.CoreRegistry;
import org.terasology.rendering.assets.material.Material;
@@ -110,27 +109,6 @@ public void endRenderOverlay() {
defaultTextured.deactivateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT);
}
- /**
- *
- * @param blockPos
- * @deprecated This method is scheduled for removal in an upcoming version.
- * Use the JOML implementation instead: {@link #renderMark(Vector3ic)}.
- */
- @Deprecated
- public void renderMark(Vector3i blockPos) {
- Vector3f cameraPos = getCameraPosition();
-
- glPushMatrix();
- glTranslated(blockPos.x - cameraPos.x, blockPos.y - cameraPos.y, blockPos.z - cameraPos.z);
-
- glMatrixMode(GL_MODELVIEW);
-
- overlayMesh.render();
-
- glPopMatrix();
- }
-
-
public void renderMark(Vector3ic blockPos) {
Vector3f cameraPos = getCameraPosition();
@@ -144,11 +122,11 @@ public void renderMark(Vector3ic blockPos) {
glPopMatrix();
}
- public void renderMark2(Vector3i blockPos) {
+ public void renderMark2(Vector3ic blockPos) {
Vector3f cameraPos = getCameraPosition();
glPushMatrix();
- glTranslated(blockPos.x - cameraPos.x, blockPos.y - cameraPos.y, blockPos.z - cameraPos.z);
+ glTranslated(blockPos.x() - cameraPos.x, blockPos.y() - cameraPos.y, blockPos.z() - cameraPos.z);
glMatrixMode(GL_MODELVIEW);
