uniform buffer change prep

This commit is contained in:
James Seibel
2026-05-22 14:08:08 -05:00
parent 7239b51073
commit 8cd926f4ac
3 changed files with 4 additions and 37 deletions
@@ -75,8 +75,6 @@ public class LodBufferContainer implements AutoCloseable
this.minCornerBlockPos = minCornerBlockPos; this.minCornerBlockPos = minCornerBlockPos;
this.vboOpaqueWrappers = new IVertexBufferWrapper[0]; this.vboOpaqueWrappers = new IVertexBufferWrapper[0];
this.vboTransparentWrappers = new IVertexBufferWrapper[0]; this.vboTransparentWrappers = new IVertexBufferWrapper[0];
this.uniformContainer.createUniformData(this);
} }
//endregion //endregion
@@ -24,11 +24,11 @@ import com.seibel.distanthorizons.core.dataObjects.render.bufferBuilding.LodBuff
/** /**
* @see LodBufferContainer * @see LodBufferContainer
*/ */
public interface ILodContainerUniformBufferWrapper extends IUniformBufferWrapper public interface ILodContainerUniformBufferWrapper extends AutoCloseable
{ {
/** does nothing if the buffer has already been uploaded */
void tryUpload(LodBufferContainer bufferContainer);
void createUniformData(LodBufferContainer bufferContainer); @Override void close();
void tryUpload();
} }
@@ -1,31 +0,0 @@
/*
* This file is part of the Distant Horizons mod
* licensed under the GNU LGPL v3 License.
*
* Copyright (C) 2020 James Seibel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.seibel.distanthorizons.core.wrapperInterfaces.render.objects;
import com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IBindable;
public interface IUniformBufferWrapper extends IBindable, AutoCloseable
{
void upload();
@Override
void close();
}