/* * Glide64 - Glide video plugin for Nintendo 64 emulators. * Copyright (c) 2002 Dave2001 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ //**************************************************************** // // Glide64 - Glide Plugin for Nintendo 64 emulators (tested mostly with Project64) // Project started on December 29th, 2001 // // To modify Glide64: // * Write your name and (optional)email, commented by your work, so I know who did it, and so that you can find which parts you modified when it comes time to send it to me. // * Do NOT send me the whole project or file that you modified. Take out your modified code sections, and tell me where to put them. If people sent the whole thing, I would have many different versions, but no idea how to combine them all. // // Official Glide64 development channel: #Glide64 on EFnet // // Original author: Dave2001 (Dave2999@hotmail.com) // Other authors: Gonetz, Gugaman // //**************************************************************** #ifndef COMBINE_H #define COMBINE_H extern DWORD ccolor; // constant color to set at the end, color and alpha extern DWORD c_fnc, c_fac, c_loc, c_oth; // grColorCombine flags extern DWORD a_fnc, a_fac, a_loc, a_oth; // grAlphaCombine flags extern DWORD tex, tmu0_func, tmu0_fac, tmu0_invert, tmu1_func, tmu1_fac, tmu1_invert; extern DWORD tmu0_a_func, tmu0_a_fac, tmu0_a_invert, tmu1_a_func, tmu1_a_fac, tmu1_a_invert; extern int dc0_lodbias, dc1_lodbias; extern BYTE dc0_detailscale, dc1_detailscale; extern float dc0_detailmax, dc1_detailmax; extern DWORD abf1, abf2; extern BOOL force_full_alpha; extern float lodbias0, lodbias1; extern DWORD mod_0, modcolor_0, modcolor1_0, modcolor2_0, modfactor_0, mod_1, modcolor_1, modcolor1_1, modcolor2_1, modfactor_1; // texture MOD types #define TMOD_TEX_INTER_COLOR_USING_FACTOR 1 #define TMOD_TEX_INTER_COL_USING_COL1 2 #define TMOD_FULL_COLOR_SUB_TEX 3 #define TMOD_COL_INTER_COL1_USING_TEX 4 #define TMOD_COL_INTER_COL1_USING_TEXA 5 #define TMOD_COL_INTER_COL1_USING_TEXA__MUL_TEX 6 #define TMOD_COL_INTER_TEX_USING_TEXA 7 #define TMOD_COL2_INTER__COL_INTER_COL1_USING_TEX__USING_TEXA 8 #define TMOD_TEX_SCALE_FAC_ADD_FAC 9 #define TMOD_TEX_SUB_COL_MUL_FAC_ADD_TEX 10 #define TMOD_TEX_SCALE_COL_ADD_COL 11 #define TMOD_TEX_ADD_COL 12 #define TMOD_TEX_SUB_COL 13 #define TMOD_TEX_SUB_COL_MUL_FAC 14 #define TMOD_COL_INTER_TEX_USING_COL1 15 #define TMOD_COL_MUL_TEXA_ADD_TEX 16 #define TMOD_COL_INTER_TEX_USING_TEX 17 void Combine (); void CombineBlender (); void CountCombine (); #endif //COMBINE _H