修改底层渲染为OpenGL
This commit is contained in:
@@ -85,6 +85,11 @@ typedef struct VecPos
|
||||
return *this;
|
||||
}
|
||||
|
||||
// 乘法
|
||||
VecPos operator*(float value) const
|
||||
{
|
||||
return VecPos(x * value, y * value);
|
||||
}
|
||||
} VecPos;
|
||||
|
||||
// 浮点数坐标向量
|
||||
@@ -195,6 +200,12 @@ typedef struct VecSize
|
||||
height -= other.height;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// 乘法
|
||||
VecSize operator*(float value) const
|
||||
{
|
||||
return VecSize(width * value, height * value);
|
||||
}
|
||||
} VecSize;
|
||||
|
||||
typedef struct VecPos3
|
||||
@@ -247,4 +258,10 @@ typedef struct VecSpeed3
|
||||
{
|
||||
return x == other.x && y == other.y && z == other.z;
|
||||
}
|
||||
} VecSpeed3;
|
||||
} VecSpeed3;
|
||||
|
||||
enum LE_BlEND_MODE
|
||||
{
|
||||
NONE,
|
||||
LINEARDODGE
|
||||
};
|
||||
Reference in New Issue
Block a user