[Fencommits] libvob: Create Ren(derable).java with tag interfaces.

Matti J. Katila majukati at cc.jyu.fi
Tue Mar 7 02:05:33 EET 2006


Tue Mar  7 01:16:49 EET 2006  Matti J. Katila <majukati at cc.jyu.fi>
  * Create Ren(derable).java with tag interfaces.

diff -rN -u libvob-old/org/nongnu/libvob/gl/Ren.java libvob-new/org/nongnu/libvob/gl/Ren.java
--- libvob-old/org/nongnu/libvob/gl/Ren.java	1970-01-01 02:00:00.000000000 +0200
+++ libvob-new/org/nongnu/libvob/gl/Ren.java	2006-03-07 01:34:37.000000000 +0200
@@ -0,0 +1,118 @@
+// (c) Matti J. Katila
+
+package org.nongnu.libvob.gl;
+
+import org.nongnu.libvob.GraphicsAPI;
+import org.nongnu.libvob.TextStyle;
+import org.nongnu.libvob.Vob;
+import org.nongnu.libvob.gl.PaperMill.Paper;
+import org.nongnu.libvob.gl.impl.lwjgl.LWJGLRen;
+import org.nongnu.libvob.impl.gl.GLTextStyle;
+import org.nongnu.libvob.impl.lwjgl.LWJGL_API;
+
+
+/** The Ren class contains abstraction layer to create and use objects 
+ * able to render in OpenGL. This class has many tag interfaces.
+ * 
+ * @author Matti J. Katila
+ */
+public class Ren {
+
+    public interface SelectVob {
+    }
+    public interface TransTest {
+    }
+    public interface Quad {
+    }
+    public interface CallListBoxCoorded {
+    }
+    public interface CallListCoorded {
+    }
+    public interface CallList {
+    }
+    public interface NonFilledRectangle {
+    }
+    public interface PinStub {
+    }
+    public interface LineConnector {
+    }
+    public interface CopyPixels {
+    }
+    public interface ReadPixels {
+    }
+    public interface DrawPixels {
+    }
+    public interface TextSuper4 {
+    }
+    public interface Text1 {
+    }
+    public interface BasisPaperQuad {
+    }
+    public interface EasyPaperQuad {
+    }
+    public interface PaperQuad extends Vob {
+    }
+    public interface FixedPaperQuad {
+    }
+    public interface DiceTester {
+    }
+    public interface IrregularEdge {
+    }
+    public interface IrregularQuad {
+    }
+    public interface ProgramNamedParameterNV {
+    }
+    public interface ProgramLocalParameterARB {
+    }
+    public interface TestStateRetainTest {
+    }
+    public interface TestStateRetainSetup {
+    }
+    public interface TransMatrix {
+    }
+    public interface ContinuousLine {
+    }
+    public interface Fillet3DBlend {
+    }
+    public interface Fillet3D {
+    }
+    public interface FilletSpan2 {
+    }
+    public interface IterConnections {
+    }
+    public interface SortedConnections {
+    }
+    public interface DebugSwitch {
+    }
+    public interface TexSubImage2D {
+    }
+    public interface CopyTexSubImage2D {
+    }
+
+    static LWJGLRen lwjglRenderables = null;
+    static {
+	if (GraphicsAPI.getInstance() instanceof LWJGL_API)
+	    lwjglRenderables = new LWJGLRen();
+    }
+    
+    public static PaperQuad createPaperQuad(Paper paper, 
+	    float x0, float y0, float x1, float y1, float dicefactor) {
+
+	if (lwjglRenderables != null)
+	    return lwjglRenderables.createPaperQuad(paper, x0,y0,x1,y1, dicefactor);
+	else
+	    return (PaperQuad)GLRen.createPaperQuad(paper, x0, y0, x1, y1, dicefactor);
+    }
+
+    /* Where it's easier to directly call implementation - do it.
+    public static Text1 createText1(TextStyle p0, String p1, float p2, int p3) { 
+	if (lwjglRenderables != null)
+	    return lwjglRenderables.createText1(p0,p1,p2,p3);
+	else {
+	    GLTextStyle gls = (GLTextStyle)p0;
+	    return (Text1)GLRen.createText1(gls.getQuadFont(), p1, p2, p3);
+	}
+    }
+    */
+
+}




More information about the Fencommits mailing list