1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00
GLideN64/src/CombinerKey.h

36 lines
652 B
C
Raw Normal View History

#pragma once
2017-01-07 15:46:51 +00:00
#include <istream>
#include "gDP.h"
class CombinerKey {
public:
2017-09-24 11:36:07 +00:00
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;
2017-01-07 15:46:51 +00:00
bool isHWLSupported() const;
2017-01-07 15:46:51 +00:00
u32 getCycleType() const;
u32 getBilerp() const;
u64 getMux() const { return m_key.mux; }
2017-01-07 15:46:51 +00:00
void read(std::istream & _is);
static const CombinerKey & getEmpty();
private:
gDPCombine m_key;
};