1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00
GLideN64/src/CombinerKey.h
Sergey Lipskiy 955c2f3b17 Add isHWLSupported bit to CombinerKey.
A game may use several microcodes, where some microcodes support HW lighting and others are not.
The same combiner can be used for both cases. isHWLSupported bit helps to resolve that problem.
2020-12-28 16:18:18 +07:00

36 lines
652 B
C++

#pragma once
#include <istream>
#include "gDP.h"
class CombinerKey {
public:
CombinerKey() {
m_key.mux = 0;
}
explicit CombinerKey(u64 _mux, bool _setModeBits = true);
CombinerKey(const CombinerKey & _other);
void operator=(u64 _mux);
void operator=(const CombinerKey & _other);
bool operator==(const CombinerKey & _other) const;
bool operator<(const CombinerKey & _other) const;
bool isRectKey() const;
bool isHWLSupported() const;
u32 getCycleType() const;
u32 getBilerp() const;
u64 getMux() const { return m_key.mux; }
void read(std::istream & _is);
static const CombinerKey & getEmpty();
private:
gDPCombine m_key;
};