1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-25 22:09:35 +00:00
GLideN64/src/CombinerKey.h
Sergey Lipskiy 5604bb94fa Code refactor: CombinerProgram()::getKey() returns reference instead of object
to avoid copy of the key to temp object when combiner added to combiners map.
2017-12-15 12:38:10 +07:00

34 lines
621 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;
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;
};