Skip to content

Commit d24db09

Browse files
committed
IBuffer -> Buffer
1 parent bc30ebc commit d24db09

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

common/src/main/kotlin/com/lambda/graphics/buffer/IBuffer.kt renamed to common/src/main/kotlin/com/lambda/graphics/buffer/Buffer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import com.lambda.graphics.gl.bufferValid
2323
import org.lwjgl.opengl.GL44.*
2424
import java.nio.ByteBuffer
2525

26-
abstract class IBuffer(
26+
abstract class Buffer(
2727
/**
2828
* Specifies how many buffer must be used
2929
*

common/src/main/kotlin/com/lambda/graphics/buffer/pixel/PixelBuffer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package com.lambda.graphics.buffer.pixel
1919

20-
import com.lambda.graphics.buffer.IBuffer
20+
import com.lambda.graphics.buffer.Buffer
2121
import com.lambda.graphics.gl.putTo
2222
import com.lambda.graphics.texture.Texture
2323
import 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

common/src/main/kotlin/com/lambda/graphics/buffer/vertex/ElementBuffer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
package com.lambda.graphics.buffer.vertex
1919

20-
import com.lambda.graphics.buffer.IBuffer
20+
import com.lambda.graphics.buffer.Buffer
2121
import com.lambda.graphics.buffer.vertex.attributes.VertexMode
2222
import com.lambda.graphics.gl.kibibyte
2323
import org.lwjgl.opengl.GL30C.*
2424
import java.nio.ByteBuffer
2525

2626
class 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

common/src/main/kotlin/com/lambda/graphics/buffer/vertex/VertexArray.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
package com.lambda.graphics.buffer.vertex
1919

20-
import com.lambda.graphics.buffer.IBuffer
20+
import com.lambda.graphics.buffer.Buffer
2121
import net.minecraft.client.render.BufferRenderer
2222
import org.lwjgl.opengl.GL30C.*
2323
import 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

common/src/main/kotlin/com/lambda/graphics/buffer/vertex/VertexBuffer.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717

1818
package com.lambda.graphics.buffer.vertex
1919

20-
import com.lambda.graphics.buffer.IBuffer
20+
import com.lambda.graphics.buffer.Buffer
2121
import com.lambda.graphics.buffer.vertex.attributes.VertexAttrib
2222
import com.lambda.graphics.buffer.vertex.attributes.VertexMode
2323
import com.lambda.graphics.gl.kibibyte
24-
import com.lambda.graphics.gl.putTo
2524
import org.lwjgl.opengl.GL30C.*
2625
import java.nio.ByteBuffer
2726

2827
class 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

0 commit comments

Comments
 (0)