Getting there...?
This commit is contained in:
@@ -30,9 +30,9 @@ namespace GTETest {
|
||||
return true;
|
||||
}
|
||||
|
||||
const auto matrix = GTE::MATRIX::rotation(0, 0, rotation);
|
||||
GTE::set_trans_matrix(matrix);
|
||||
GTE::set_rot_matrix(matrix);
|
||||
auto matrix = GTE::MATRIX::rotation(0, rotation, rotation);
|
||||
matrix.trans[0] = (Assets::Main::DoenerFishInfo.size.width/2);
|
||||
matrix.trans[1] = (Assets::Main::DoenerFishInfo.size.height/2);
|
||||
|
||||
doener_fish.apply(matrix);
|
||||
rotation += 5_DEG;
|
||||
|
@@ -19,10 +19,15 @@ namespace GTETest {
|
||||
|
||||
void apply(const GTE::MATRIX& matrix) {
|
||||
static const auto apply_to = [](const GTE::MATRIX& matrix, GTE::SVECTOR vector) -> GPU::Vertex {
|
||||
GTE::MATRIX move_back = GTE::MATRIX::identity();
|
||||
GTE::SVECTOR output;
|
||||
int32_t flag;
|
||||
|
||||
return GTE::apply_matrix(matrix, vector, output).to<GPU::Vertex>();
|
||||
move_back.trans[0] = -matrix.trans[0];
|
||||
move_back.trans[1] = -matrix.trans[1];
|
||||
move_back.trans[2] = -matrix.trans[2];
|
||||
|
||||
return GTE::apply_matrix(matrix, GTE::apply_matrix(move_back, vector, output), output).to<GPU::Vertex>();
|
||||
};
|
||||
|
||||
const auto& area = this->area;
|
||||
|
Reference in New Issue
Block a user