[core] move Texture to the gfx namespace

This commit is contained in:
Konstantin Käfer
2019-03-06 18:26:32 +01:00
parent 2a25270298
commit a7f151ab48
21 changed files with 182 additions and 137 deletions

View File

@@ -44,7 +44,7 @@ public:
return context.readFramebuffer<PremultipliedImage>(size);
}
gl::Texture& getTexture() {
gfx::Texture& getTexture() {
assert(texture);
return *texture;
}
@@ -57,7 +57,7 @@ private:
gl::Context& context;
const Size size;
optional<gl::Framebuffer> framebuffer;
optional<gl::Texture> texture;
optional<gfx::Texture> texture;
gl::Renderbuffer<gl::RenderbufferType::DepthComponent>* depth = nullptr;
const gfx::TextureChannelDataType type;
};
@@ -87,7 +87,7 @@ PremultipliedImage OffscreenTexture::readStillImage() {
return impl->readStillImage();
}
gl::Texture& OffscreenTexture::getTexture() {
gfx::Texture& OffscreenTexture::getTexture() {
return impl->getTexture();
}