| 1 | /****************************************************************************** |
| 2 | * Arachnoid Graphics Plugin for Mupen64Plus |
| 3 | * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/ |
| 4 | * |
| 5 | * Copyright (C) 2007 Kristofer Karlsson, Rickard Niklasson |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * as published by the Free Software Foundation; either version 2 |
| 10 | * of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20 | *****************************************************************************/ |
| 21 | |
| 22 | #ifndef UCODE_4_H_ |
| 23 | #define UCODE_4_H_ |
| 24 | |
| 25 | //Includes |
| 26 | #include "UCodeDefs.h" |
| 27 | |
| 28 | //Forward declaration |
| 29 | class GBI; |
| 30 | class RSP; |
| 31 | |
| 32 | //***************************************************************************** |
| 33 | //! UCode4 |
| 34 | //! Microcode used for Wave Race 64 |
| 35 | //***************************************************************************** |
| 36 | class UCode4 |
| 37 | { |
| 38 | public: |
| 39 | |
| 40 | UCode4(); |
| 41 | ~UCode4(); |
| 42 | |
| 43 | static void initialize(GBI* gbi, RSP* rsp); |
| 44 | static void initializeGBI(); |
| 45 | |
| 46 | static void WaveRace64_Vertex(MicrocodeArgument* ucode); |
| 47 | static void WaveRace64_Tri1(MicrocodeArgument* ucode); |
| 48 | static void WaveRace64_Tri2(MicrocodeArgument* ucode); |
| 49 | static void WaveRace64_Quad(MicrocodeArgument* ucode); |
| 50 | |
| 51 | private: |
| 52 | |
| 53 | static GBI* m_gbi; |
| 54 | static RSP* m_rsp; //!< Pointer to Reality Signal Processor |
| 55 | |
| 56 | }; |
| 57 | |
| 58 | |
| 59 | #endif |