fix mouse picking

This commit is contained in:
2023-06-03 20:43:40 +02:00
parent cb5f5a4cf8
commit 193e4db651
6 changed files with 67 additions and 65 deletions

View File

@@ -114,6 +114,14 @@ struct Mat4 {
return reinterpret_cast<T*>(this)[offset];
}
T* data() {
return reinterpret_cast<T*>(this);
}
const T* data() const{
return reinterpret_cast<const T*>(this);
}
T at(std::size_t row, std::size_t column) const {
return operator[](row * MATRIX_SIZE + column);
}