aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2006-11-20 21:25:19 +0000
committerCarsten Weisse <[email protected]>2006-11-20 21:25:19 +0000
commit942dac5e4612e87e6021339c6b1f308e2e0a3e1e (patch)
tree15d8baa7f38abe9cb7dea699fb06ed9462a2cb10
parent3ef4cd447cffe68fe8f5c2a92905dd5de9bda159 (diff)
API interface for basic and fast renderer impl
-rw-r--r--src/jake2/render/RenderAPI.java52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/jake2/render/RenderAPI.java b/src/jake2/render/RenderAPI.java
new file mode 100644
index 0000000..6bf869b
--- /dev/null
+++ b/src/jake2/render/RenderAPI.java
@@ -0,0 +1,52 @@
+package jake2.render;
+
+import jake2.client.refdef_t;
+import jake2.render.opengl.GLDriver;
+
+import java.awt.Dimension;
+
+public interface RenderAPI {
+
+ void setGLDriver(GLDriver impl);
+
+ boolean R_Init(int vid_xpos, int vid_ypos);
+
+ boolean R_Init2();
+
+ void R_Shutdown();
+
+ void R_BeginRegistration(String map);
+
+ model_t R_RegisterModel(String name);
+
+ image_t R_RegisterSkin(String name);
+
+ image_t Draw_FindPic(String name);
+
+ void R_SetSky(String name, float rotate, float[] axis);
+
+ void R_EndRegistration();
+
+ void R_RenderFrame(refdef_t fd);
+
+ void Draw_GetPicSize(Dimension dim, String name);
+
+ void Draw_Pic(int x, int y, String name);
+
+ void Draw_StretchPic(int x, int y, int w, int h, String name);
+
+ void Draw_Char(int x, int y, int num);
+
+ void Draw_TileClear(int x, int y, int w, int h, String name);
+
+ void Draw_Fill(int x, int y, int w, int h, int c);
+
+ void Draw_FadeScreen();
+
+ void Draw_StretchRaw(int x, int y, int w, int h, int cols, int rows,
+ byte[] data);
+
+ void R_SetPalette(byte[] palette);
+
+ void R_BeginFrame(float camera_separation);
+}