texture_rect run ok!

This commit is contained in:
2023-09-21 22:11:20 +08:00
parent 907cb3c852
commit 4e144072e4
9 changed files with 48 additions and 34 deletions

View File

@@ -21,8 +21,10 @@ constexpr uint32_t SCREEN_HEIGHT=256;
constexpr float position_data[4]=
{
-1,-1,
2,2
-1, //left
-1, //top
1, //right
1 //bottom;
};
constexpr float tex_coord_data[4]=