FIX: Upgrade the texture image

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

Change-Id: I7dcc5061017f355f30b3f584180751ec7a3f391b
This commit is contained in:
zhou.xu
2023-08-24 16:25:24 +08:00
committed by Lane.Wei
parent 22d5ea002e
commit aaeebd7fe3
10 changed files with 302 additions and 348 deletions

View File

@@ -568,16 +568,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;