Index: render.c
===================================================================
--- render.c	(revision 117)
+++ render.c	(revision 118)
@@ -216,6 +216,7 @@
    (y+raydium_camera_cursor_place[1])<(raydium_camera_y+raydium_projection_far) ) return 1; else return 0;
 }
 
+// used by shadows
 void raydium_rendering_from_to_simple(GLuint from, GLuint to)
 {
 GLuint i;
@@ -228,6 +229,10 @@
     glVertex3f(raydium_vertex_x[i+2], raydium_vertex_y[i+2], raydium_vertex_z[i+2]);
     }
 glEnd();
+
+glBegin(GL_POINTS);
+    glVertex3f(raydium_vertex_x[from], raydium_vertex_y[from], raydium_vertex_z[from]);
+glEnd();
 }
 
 void raydium_rendering_from_to(GLuint from, GLuint to)
@@ -341,11 +346,21 @@
 char name[128];
 static int frame;
 sprintf(name,"movie/frame%04d.jpg",frame);
-raydium_capture_frame_jpeg(name);
+raydium_capture_frame_jpeg_now(name);
 frame++;
 }
 #endif
 
+switch(raydium_capture_asked)
+    {
+    case RAYDIUM_CAPTURE_TGA:
+	raydium_capture_frame_now(raydium_capture_filename);
+	break;
+    case RAYDIUM_CAPTURE_JPG:
+	raydium_capture_frame_jpeg_now(raydium_capture_filename);
+	break;
+}
+raydium_capture_asked=RAYDIUM_CAPTURE_NONE;
 
 #ifndef DEBUG_SHADOW_MAP_VIEW
 glutSwapBuffers();
ium_rendering (void);
+/**
+Renders all vertices (probably useless, now).
+**/
+
+extern void raydium_rendering_finish (void);
+/**
+You must call this function at the end of each frame. This will flush all
+commands to hardware, fire a lot off callbacks, and prepare next frame.
+**/
+
+extern void raydium_rendering_wireframe (void);
+/**
+Switch to wireframe rendering.
+**/
+
+extern void raydium_rendering_normal (void);
+/**
+Switch back to standard rendering.
+**/
+
+extern void raydium_rendering_rgb_force (GLfloat r, GLfloat g, GLfloat b);
+/**
+Force all RGB colored vertices to take ##(r,g,b)## color. One example of this
+use is for making "team colored" cars : Do not apply textures to some faces
+while modelling, and force to team color each time you render a car.
+**/
+
+extern void raydium_rendering_rgb_normal (void);
+/**
+Disable "rgb force" state. See above.
+**/
+
+extern void raydium_rendering_displaylists_disable(void);
+/**
+Disable display lists usage.
+Some old video cards and broken drivers may get better performances WITHOUT
+display lists (on large objects, mainly).
+**/
+
+extern void raydium_rendering_displaylists_enable(void);
+/**
+Enable display lists usage. default state.
+**/
+
+#endif