mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Rm Texture::createFromStorage
This commit is contained in:
parent
5c004e2a5c
commit
f2b9acd84d
2 changed files with 0 additions and 9 deletions
|
@ -221,13 +221,6 @@ Texture* Texture::create(Type type, const Element& texelFormat, uint16 width, ui
|
||||||
return tex;
|
return tex;
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture* Texture::createFromStorage(Storage* storage) {
|
|
||||||
Texture* tex = new Texture();
|
|
||||||
tex->_storage.reset(storage);
|
|
||||||
storage->assignTexture(tex);
|
|
||||||
return tex;
|
|
||||||
}
|
|
||||||
|
|
||||||
Texture::Texture():
|
Texture::Texture():
|
||||||
Resource()
|
Resource()
|
||||||
{
|
{
|
||||||
|
|
|
@ -280,8 +280,6 @@ public:
|
||||||
static Texture* create3D(const Element& texelFormat, uint16 width, uint16 height, uint16 depth, const Sampler& sampler = Sampler());
|
static Texture* create3D(const Element& texelFormat, uint16 width, uint16 height, uint16 depth, const Sampler& sampler = Sampler());
|
||||||
static Texture* createCube(const Element& texelFormat, uint16 width, const Sampler& sampler = Sampler());
|
static Texture* createCube(const Element& texelFormat, uint16 width, const Sampler& sampler = Sampler());
|
||||||
|
|
||||||
static Texture* createFromStorage(Storage* storage);
|
|
||||||
|
|
||||||
Texture();
|
Texture();
|
||||||
Texture(const Texture& buf); // deep copy of the sysmem texture
|
Texture(const Texture& buf); // deep copy of the sysmem texture
|
||||||
Texture& operator=(const Texture& buf); // deep copy of the sysmem texture
|
Texture& operator=(const Texture& buf); // deep copy of the sysmem texture
|
||||||
|
|
Loading…
Reference in a new issue