2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/Graphics/GrGlideInternal.h $
15 * Common include file for Glide modules
18 * Revision 1.2 2002/06/09 04:41:13 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 4 7/09/99 9:51a Dave
26 * Added thick polyline code.
28 * 3 6/29/99 10:35a Dave
29 * Interface polygon bitmaps! Whee!
31 * 2 10/07/98 10:53a Dave
34 * 1 10/07/98 10:49a Dave
36 * 4 5/06/98 11:21p John
37 * Fixed a bitmap bug with Direct3D. Started adding new caching code into
40 * 3 4/09/98 4:38p John
41 * Made non-darkening and transparent textures work under Glide. Fixed
42 * bug with Jim's computer not drawing any bitmaps.
44 * 2 4/08/98 8:47a John
45 * Moved all texture caching into a new module
47 * 1 3/03/98 4:42p John
48 * Added in Leighton's code to do texture caching on Glide.
53 #ifndef _GRGLIDEINTERNAL_H
54 #define _GRGLIDEINTERNAL_H
56 #include "grinternal.h"
58 void glide_tcache_init();
59 void glide_tcache_cleanup();
60 void glide_tcache_flush();
61 void glide_tcache_frame();
63 // Bitmap_type see TCACHE_ defines in GrInternal.h
64 int glide_tcache_set(int bitmap_id, int bitmap_type, float *u_ratio, float *v_ratio, int fail_on_full = 0, int sx = -1, int sy = -1, int force = 0);
66 extern int Glide_textures_in;
68 #endif //_GRGLIDEINTERNAL_H