载入中...
搜索中...
未找到
Canvas.h
浏览该文件的文档.
Definition Canvas.h:16
Definition Graphics.h:57
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:17
Offscreen render target (RGBA8Unorm color, optional Depth32Float). 2D batches are flushed into the ca...
Definition Canvas.h:16
image::ImageData * newImageData() override
Definition Canvas.cpp:79
int getHeight() const override
Definition Canvas.h:22
Texture * getTexture() override
Sampleable color buffer; screen Canvas returns nullptr.
Definition Canvas.h:23
void draw(eve::graphics::Graphics *, const glm::mat4 &) const override
Draws the object with the specified transformation matrix.
Definition Canvas.h:31
~OffscreenCanvas() override
Color getPixel(int x, int y) override
Definition Canvas.cpp:75
void clear(std::optional< Color > color, std::optional< int > stencil, std::optional< double > depth) override
Definition Canvas.cpp:69
void draw(Canvas *, const glm::mat4 &) const override
Definition Canvas.h:30
Definition Canvas.cpp:10
glm::vec4 Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
Texture resources backed by a wgpu texture + view + sampler + bind groups.
Definition Graphics.h:51