File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed
common/src/main/kotlin/com/lambda/graphics/buffer Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import com.lambda.graphics.gl.bufferValid
2323import org.lwjgl.opengl.GL44.*
2424import java.nio.ByteBuffer
2525
26- abstract class IBuffer (
26+ abstract class Buffer (
2727 /* *
2828 * Specifies how many buffer must be used
2929 *
Original file line number Diff line number Diff line change 1717
1818package com.lambda.graphics.buffer.pixel
1919
20- import com.lambda.graphics.buffer.IBuffer
20+ import com.lambda.graphics.buffer.Buffer
2121import com.lambda.graphics.gl.putTo
2222import com.lambda.graphics.texture.Texture
2323import com.lambda.util.math.MathUtils.toInt
@@ -47,7 +47,7 @@ class PixelBuffer(
4747 private val texture : Texture ,
4848 private val asynchronous : Boolean = false ,
4949 private val bufferMapping : Boolean = false ,
50- ) : IBuffer (buffers = asynchronous.toInt() + 1 ) {
50+ ) : Buffer (buffers = asynchronous.toInt() + 1 ) {
5151 override val usage: Int = GL_STATIC_DRAW
5252 override val target: Int = GL_PIXEL_UNPACK_BUFFER
5353 override val access: Int = GL_MAP_WRITE_BIT
Original file line number Diff line number Diff line change 1717
1818package com.lambda.graphics.buffer.vertex
1919
20- import com.lambda.graphics.buffer.IBuffer
20+ import com.lambda.graphics.buffer.Buffer
2121import com.lambda.graphics.buffer.vertex.attributes.VertexMode
2222import com.lambda.graphics.gl.kibibyte
2323import org.lwjgl.opengl.GL30C.*
2424import java.nio.ByteBuffer
2525
2626class ElementBuffer (mode : VertexMode ) :
27- IBuffer (buffers = 1 )
27+ Buffer (buffers = 1 )
2828{
2929 override val usage: Int = GL_DYNAMIC_DRAW
3030 override val target: Int = GL_ELEMENT_ARRAY_BUFFER
Original file line number Diff line number Diff line change 1717
1818package com.lambda.graphics.buffer.vertex
1919
20- import com.lambda.graphics.buffer.IBuffer
20+ import com.lambda.graphics.buffer.Buffer
2121import net.minecraft.client.render.BufferRenderer
2222import org.lwjgl.opengl.GL30C.*
2323import java.nio.ByteBuffer
2424
25- class VertexArray : IBuffer (isVertexArray = true ) {
25+ class VertexArray : Buffer (isVertexArray = true ) {
2626 override val usage: Int = - 1
2727 override val target: Int = - 1
2828 override val access: Int = - 1
Original file line number Diff line number Diff line change 1717
1818package com.lambda.graphics.buffer.vertex
1919
20- import com.lambda.graphics.buffer.IBuffer
20+ import com.lambda.graphics.buffer.Buffer
2121import com.lambda.graphics.buffer.vertex.attributes.VertexAttrib
2222import com.lambda.graphics.buffer.vertex.attributes.VertexMode
2323import com.lambda.graphics.gl.kibibyte
24- import com.lambda.graphics.gl.putTo
2524import org.lwjgl.opengl.GL30C.*
2625import java.nio.ByteBuffer
2726
2827class VertexBuffer (
2928 mode : VertexMode ,
3029 attributes : VertexAttrib .Group ,
31- ) : IBuffer (buffers = 1 ) {
30+ ) : Buffer (buffers = 1 ) {
3231 override val usage: Int = GL_DYNAMIC_DRAW
3332 override val target: Int = GL_ARRAY_BUFFER
3433 override val access: Int = GL_MAP_WRITE_BIT
You can’t perform that action at this time.
0 commit comments