+typedef enum texturelayertype_e
+{
+ TEXTURELAYERTYPE_INVALID,
+ TEXTURELAYERTYPE_LITTEXTURE_COMBINE,
+ TEXTURELAYERTYPE_LITTEXTURE_MULTIPASS,
+ TEXTURELAYERTYPE_LITTEXTURE_VERTEX,
+ TEXTURELAYERTYPE_TEXTURE,
+ TEXTURELAYERTYPE_FOG,
+}
+texturelayertype_t;
+
+typedef enum texturelayerflag_e
+{
+ // indicates that the pass should apply fog darkening; used on
+ // transparent surfaces where simply blending an alpha fog as a final
+ // pass would not behave properly, so all the surfaces must be darkened,
+ // and the fog color added as a separate pass
+ TEXTURELAYERFLAG_FOGDARKEN = 1,
+}
+texturelayerflag_t;
+
+typedef struct texturelayer_s
+{
+ texturelayertype_t type;
+ qboolean depthmask;
+ int blendfunc1;
+ int blendfunc2;
+ rtexture_t *texture;
+ matrix4x4_t texmatrix;
+ vec4_t color;
+ int flags;
+}
+texturelayer_t;
+