FIX: Upgrade the texture image

align texture image  to the grid of the x1 machine
Jira:STUDIO-4206

Change-Id: I7dcc5061017f355f30b3f584180751ec7a3f391b
(cherry picked from commit 7ec89042246162edc04e32abe2b609f5f561d810)
This commit is contained in:
zhou.xu 2023-08-24 16:25:24 +08:00 committed by Lane.Wei
parent ac988a5c53
commit 2d9451e545
10 changed files with 304 additions and 350 deletions

View file

@ -562,16 +562,16 @@ public:
class TexturePart {
public:
// position
int x;
int y;
int w;
int h;
float x;
float y;
float w;
float h;
unsigned int vbo_id;
std::string filename;
GLTexture* texture { nullptr };
Vec2d offset;
GeometryBuffer* buffer { nullptr };
TexturePart(int xx, int yy, int ww, int hh, std::string file) {
TexturePart(float xx, float yy, float ww, float hh, std::string file){
x = xx; y = yy;
w = ww; h = hh;
filename = file;