mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
16 lines
378 B
C
16 lines
378 B
C
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
|
|
struct PcTextureId {
|
|
u16 page = -1;
|
|
u16 tex = -1;
|
|
|
|
PcTextureId(u16 p, u16 t) : page(p), tex(t) {}
|
|
PcTextureId() = default;
|
|
|
|
static PcTextureId from_combo_id(u32 val) { return PcTextureId(val >> 16, val & 0xffff); }
|
|
|
|
bool operator==(const PcTextureId& other) const { return page == other.page && tex == other.tex; }
|
|
};
|