feat: allow changing the texture wrap settings
This commit is contained in:
@@ -62,7 +62,8 @@ class Texture {
|
|||||||
|
|
||||||
/** Set texture wrapping */
|
/** Set texture wrapping */
|
||||||
void setWrapSettings(const TextureWrap t_horizontal,
|
void setWrapSettings(const TextureWrap t_horizontal,
|
||||||
const TextureWrap t_vertical);
|
const TextureWrap t_vertical, int minu = 0, int minv = 0,
|
||||||
|
int maxu = 0, int maxv = 0);
|
||||||
|
|
||||||
// ----
|
// ----
|
||||||
// Other
|
// Other
|
||||||
|
|||||||
@@ -167,9 +167,14 @@ void Texture::setDefaultWrapSettings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Texture::setWrapSettings(const TextureWrap t_horizontal,
|
void Texture::setWrapSettings(const TextureWrap t_horizontal,
|
||||||
const TextureWrap t_vertical) {
|
const TextureWrap t_vertical, int minu, int minv,
|
||||||
|
int maxu, int maxv) {
|
||||||
wrap.horizontal = t_horizontal;
|
wrap.horizontal = t_horizontal;
|
||||||
wrap.vertical = t_vertical;
|
wrap.vertical = t_vertical;
|
||||||
|
wrap.minu = minu;
|
||||||
|
wrap.minv = minv;
|
||||||
|
wrap.maxu = maxu;
|
||||||
|
wrap.maxv = maxv;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Texture::addLink(const u32& t_id) {
|
void Texture::addLink(const u32& t_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user