aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/RenderAPI.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2006-11-21 00:52:51 +0000
committerCarsten Weisse <[email protected]>2006-11-21 00:52:51 +0000
commit17b95195843d63063d989d6a99893ae6300f5ba5 (patch)
tree4ccd4fa9039724687039209c039344f285ef0b16 /src/jake2/render/RenderAPI.java
parent6cfce25cd7b75c03ee2fc6b238e68f7e4cabb058 (diff)
merge render-refactoring branch into the HEAD
Diffstat (limited to 'src/jake2/render/RenderAPI.java')
-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);
+}