mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
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:
parent
ac988a5c53
commit
2d9451e545
10 changed files with 304 additions and 350 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue