Merge pull request #180 from Wellinator/feature/texture_wraping
Adds support for texture region repeat
This commit is contained in:
@@ -62,7 +62,8 @@ class Texture {
|
||||
|
||||
/** Set texture wrapping */
|
||||
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
|
||||
@@ -96,9 +97,10 @@ class Texture {
|
||||
void print(const std::string& name) const { print(name.c_str()); }
|
||||
std::string getPrint(const char* name = nullptr) const;
|
||||
|
||||
void setDefaultWrapSettings();
|
||||
|
||||
private:
|
||||
void setPsm();
|
||||
void setDefaultWrapSettings();
|
||||
|
||||
texwrap_t wrap;
|
||||
};
|
||||
|
||||
@@ -29,6 +29,12 @@ class RendererCoreTexture {
|
||||
|
||||
RendererCoreTextureBuffers useTexture(const Texture* t_tex);
|
||||
|
||||
/**
|
||||
* Called by user after changing texture wrap settings
|
||||
* Updates texture packet without reallocate it
|
||||
*/
|
||||
RendererCoreTextureBuffers updateTextureInfo(const Texture* t_tex);
|
||||
|
||||
/** Called by renderer during initialization */
|
||||
void init(RendererCoreGS* gs, Path3* path3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user