+// allocates a static element array buffer object
+// (storing triangle data in video memory)
+int R_Mesh_CreateStaticEBO(void *data, size_t size);
+// frees an element array buffer object
+void R_Mesh_DestroyEBO(int bufferobject);
+// allocates a static vertex/element array buffer object
+// (storing vertex or element data in video memory)
+// target is GL_ELEMENT_ARRAY_BUFFER_ARB (triangle elements)
+// or GL_ARRAY_BUFFER_ARB (vertex data)
+int R_Mesh_CreateStaticBufferObject(unsigned int target, void *data, size_t size, const char *name);
+// frees a vertex/element array buffer object
+void R_Mesh_DestroyBufferObject(int bufferobject);
+void GL_Mesh_ListVBOs(qboolean printeach);
+
+// sets up the requested vertex transform matrix
+void R_EntityMatrix(const matrix4x4_t *matrix);
+// sets the vertex array pointer
+void R_Mesh_VertexPointer(const float *vertex3f, int bufferobject, size_t bufferoffset);
+// sets the color array pointer (GL_Color only works when this is NULL)
+void R_Mesh_ColorPointer(const float *color4f, int bufferobject, size_t bufferoffset);
+// sets the texcoord array pointer for an array unit
+void R_Mesh_TexCoordPointer(unsigned int unitnum, unsigned int numcomponents, const float *texcoord, int bufferobject, size_t bufferoffset);
+// returns current texture bound to this identifier
+int R_Mesh_TexBound(unsigned int unitnum, int id);
+// copies a section of the framebuffer to a 2D texture
+void R_Mesh_CopyToTexture(rtexture_t *tex, int tx, int ty, int sx, int sy, int width, int height);
+// bind a given texture to a given image unit
+void R_Mesh_TexBind(unsigned int unitnum, rtexture_t *tex);
+// sets the texcoord matrix for a texenv unit, can be NULL or blank (will use identity)
+void R_Mesh_TexMatrix(unsigned int unitnum, const matrix4x4_t *matrix);
+// sets the combine state for a texenv unit
+void R_Mesh_TexCombine(unsigned int unitnum, int combinergb, int combinealpha, int rgbscale, int alphascale);
+// set up a blank texture state (unbinds all textures, texcoord pointers, and resets combine settings)
+void R_Mesh_ResetTextureState(void);