Skip to content

Commit a6665c0

Browse files
GLTexture: expose OpenGL format publicly
1 parent 072efa0 commit a6665c0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/java/cleargl/GLTexture.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package cleargl;
22

3+
import com.jogamp.opengl.GL4;
4+
import com.jogamp.opengl.GLException;
5+
6+
import javax.imageio.ImageIO;
37
import java.awt.*;
48
import java.awt.color.ColorSpace;
59
import java.awt.geom.AffineTransform;
@@ -11,9 +15,6 @@
1115
import java.nio.channels.FileChannel;
1216
import java.util.Arrays;
1317
import java.util.Hashtable;
14-
import javax.imageio.ImageIO;
15-
import com.jogamp.opengl.GL4;
16-
import com.jogamp.opengl.GLException;
1718

1819
@SuppressWarnings({"WeakerAccess", "unused"})
1920
public class GLTexture implements GLInterface, GLCloseable {
@@ -640,6 +641,10 @@ public int getChannels() {
640641
return mNumberOfChannels;
641642
}
642643

644+
public int getFormat() {
645+
return mTextureOpenGLFormat;
646+
}
647+
643648
public int getInternalFormat() {
644649
return mTextureOpenGLInternalFormat;
645650
}

0 commit comments

Comments
 (0)