载入中...
搜索中...
未找到
Canvas.h
浏览该文件的文档.
Definition Canvas.h:16
Definition Graphics.h:56
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:17
vkb::ColorAttachmentImage & colorImage()
Definition Canvas.h:33
vkb::DepthTarget & depthImage()
Definition Canvas.h:34
int getHeight() const override
Definition Canvas.h:20
Color pendingClearColor() const
Definition Canvas.h:35
Color getPixel(int x, int y) override
Definition Canvas.cpp:125
Texture * getTexture() override
Sampleable color buffer; screen Canvas returns nullptr.
Definition Canvas.h:21
~OffscreenCanvas() override
Definition Canvas.cpp:57
void clear(std::optional< Color > color, std::optional< int > stencil, std::optional< double > depth) override
Definition Canvas.cpp:91
void draw(Canvas *, const glm::mat4 &) const override
Definition Canvas.h:29
void draw(eve::graphics::Graphics *, const glm::mat4 &) const override
Draws the object with the specified transformation matrix.
Definition Canvas.h:28
vk::Framebuffer framebuffer3D() const
Definition Canvas.h:32
vk::Framebuffer framebuffer() const
Definition Canvas.h:31
bool takePendingClear()
Definition Canvas.cpp:76
image::ImageData * newImageData() override
Definition Canvas.cpp:138
void ensure3D()
Ensure a D32 depth attachment + 3D (color+depth) framebuffer exist.
Definition Canvas.cpp:82
Definition VulkanSequence.h:8
glm::vec4 Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13