aboutsummaryrefslogtreecommitdiffstats
path: root/demos/RonsDemos/HardCodedTexture.java
diff options
context:
space:
mode:
Diffstat (limited to 'demos/RonsDemos/HardCodedTexture.java')
-rw-r--r--demos/RonsDemos/HardCodedTexture.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/demos/RonsDemos/HardCodedTexture.java b/demos/RonsDemos/HardCodedTexture.java
new file mode 100644
index 0000000..6395c8a
--- /dev/null
+++ b/demos/RonsDemos/HardCodedTexture.java
@@ -0,0 +1,31 @@
+/**
+ * @(#) HardCodedTexture.java
+ * @(#) author: Ronald B. Cemer
+ * @(#) version: 1.0
+ */
+
+import java.io.*;
+
+public interface HardCodedTexture
+{
+ public void dispose();
+
+ /* GL_RGBA, etc. arg #3 in glTexImage2D() */
+ public int getComponents();
+
+ /* arg #4 in glTexImage2D() */
+ public int getWidth();
+
+ /* arg #5 in glTexImage2D() */
+ public int getHeight();
+
+ /* GL_RGBA, etc. arg #7 in glTexImage2D() */
+ public int getFormat();
+
+ /* GL_UNSIGNED_BYTE, etc. arg #8 in glTexImage2D() */
+ public int getType();
+
+ /* arg #9 in glTexImage2D() */
+ public byte[] getBits();
+}
+