mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
LibGL: Attach device image to texture object and upload image data
This commit is contained in:
parent
908a6339ec
commit
39545d4b49
3 changed files with 63 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/RefCounted.h>
|
||||
#include <LibSoftGPU/Image.h>
|
||||
|
||||
namespace GL {
|
||||
|
||||
|
@ -18,6 +19,12 @@ public:
|
|||
virtual bool is_texture_2d() const { return false; }
|
||||
virtual bool is_texture_3d() const { return false; }
|
||||
virtual bool is_cube_map() const { return false; }
|
||||
|
||||
RefPtr<SoftGPU::Image> device_image() { return m_device_image; }
|
||||
void set_device_image(RefPtr<SoftGPU::Image> image) { m_device_image = image; }
|
||||
|
||||
private:
|
||||
RefPtr<SoftGPU::Image> m_device_image;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue