~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/video/rdpblend.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "emu.h"
5
5
 
6
 
namespace N64
7
 
{
8
 
 
9
 
namespace RDP
10
 
{
11
 
 
12
 
class OtherModesT;
13
 
class MiscStateT;
14
 
class Processor;
 
6
struct OtherModesT;
 
7
struct MiscStateT;
 
8
class n64_rdp;
 
9
struct rdp_span_aux;
15
10
class Color;
 
11
struct rdp_poly_state;
16
12
 
17
 
class BlenderT
 
13
class N64BlenderT
18
14
{
19
15
        public:
20
 
                BlenderT()
 
16
                N64BlenderT()
21
17
                {
22
 
                        BlendEnable = false;
23
18
                }
24
19
 
25
 
                bool                            Blend2Cycle(UINT32* fr, UINT32* fg, UINT32* fb, int dith, int adseed, int partialreject, int bsel0, int bsel1);
26
 
                bool                            Blend1Cycle(UINT32* fr, UINT32* fg, UINT32* fb, int dith, int adseed, int partialreject, int special_bsel);
 
20
                bool                            Blend2Cycle(UINT32* fr, UINT32* fg, UINT32* fb, int dith, int adseed, int partialreject, int bsel0, int bsel1, rdp_span_aux *userdata, const rdp_poly_state& object);
 
21
                bool                            Blend1Cycle(UINT32* fr, UINT32* fg, UINT32* fb, int dith, int adseed, int partialreject, int special_bsel, rdp_span_aux *userdata, const rdp_poly_state& object);
27
22
 
28
23
                void                            SetMachine(running_machine& machine) { m_machine = &machine; }
29
 
                void                            SetProcessor(Processor* rdp) { m_rdp = rdp; }
 
24
                void                            SetProcessor(n64_rdp* rdp) { m_rdp = rdp; }
30
25
 
31
26
                running_machine &machine() const { assert(m_machine != NULL); return *m_machine; }
32
27
 
33
 
                bool                            BlendEnable;
34
 
                INT32                           ShiftA;
35
 
                INT32                           ShiftB;
36
 
 
37
28
        private:
38
29
                running_machine*        m_machine;
39
 
                Processor*                      m_rdp;
40
 
 
41
 
                void                            BlendEquationCycle0(INT32* r, INT32* g, INT32* b, int bsel_special);
42
 
                void                            BlendEquationCycle1(INT32* r, INT32* g, INT32* b, int bsel_special);
43
 
 
44
 
                bool                            AlphaCompare(UINT8 alpha);
 
30
                n64_rdp*                        m_rdp;
 
31
 
 
32
                void                            BlendEquationCycle0(INT32* r, INT32* g, INT32* b, int bsel_special, rdp_span_aux *userdata, const rdp_poly_state& object);
 
33
                void                            BlendEquationCycle1(INT32* r, INT32* g, INT32* b, int bsel_special, rdp_span_aux *userdata, const rdp_poly_state& object);
 
34
 
 
35
                bool                            AlphaCompare(UINT8 alpha, const rdp_span_aux *userdata, const rdp_poly_state& object);
45
36
 
46
37
                void                            DitherRGB(INT32* r, INT32* g, INT32* b, int dith);
47
38
                void                            DitherA(UINT8* a, int dith);
48
39
};
49
40
 
50
 
} // namespace RDP
51
 
 
52
 
} // namespace N64
53
 
 
54
41
#endif // _VIDEO_RDPBLEND_H_