载入中...
搜索中...
未找到
eve::graphics::Canvas类 参考abstract

#include <Canvas.h>

类 eve::graphics::Canvas 继承关系图:
eve::graphics::Drawable eve::graphics::Graphics eve::graphics::vulkan::OffscreenCanvas eve::graphics::webgpu::OffscreenCanvas eve::graphics::vulkan::Graphics eve::graphics::webgpu::Graphics

Public 成员函数

 Canvas ()
 
 ~Canvas () override
 
virtual int getWidth () const =0
 
virtual int getHeight () const =0
 
virtual TexturegetTexture ()=0
 Sampleable color buffer; screen Canvas returns nullptr.
 
virtual void clear (std::optional< Color > color, std::optional< int > stencil, std::optional< double > depth)=0
 
virtual Color getPixel (int x, int y)=0
 
virtual image::ImageDatanewImageData ()=0
 
virtual void draw (Canvas *C, const glm::mat4 &matrix) const =0
 
- Public 成员函数 继承自 eve::graphics::Drawable
virtual ~Drawable ()
 
virtual void draw (Graphics *gfx, const glm::mat4 &matrix) const =0
 Draws the object with the specified transformation matrix.
 
bool getCastOcclusion () const
 When false, skipped by Graphics::drawOcclusion / volumetric occluder passes.
 
void setCastOcclusion (bool cast)
 
virtual void drawOcclusion (Graphics *gfx, const glm::mat4 &matrix) const
 Draw as an opaque black silhouette for volumetric occlusion maps (screen-space god rays / light shafts). Default is a no-op; Texture / Mesh override with 2D black rects (alpha preserved for textures).
 

详细描述

在文件 Canvas.h16 行定义.

构造及析构函数说明

◆ Canvas()

eve::graphics::Canvas::Canvas ( )
inline

在文件 Canvas.h18 行定义.

◆ ~Canvas()

eve::graphics::Canvas::~Canvas ( )
inlineoverride

在文件 Canvas.h19 行定义.

成员函数说明

◆ clear()

virtual void eve::graphics::Canvas::clear ( std::optional< Color color,
std::optional< int >  stencil,
std::optional< double >  depth 
)
pure virtual

◆ draw()

virtual void eve::graphics::Canvas::draw ( Canvas C,
const glm::mat4 &  matrix 
) const
pure virtual

◆ getHeight()

◆ getPixel()

virtual Color eve::graphics::Canvas::getPixel ( int  x,
int  y 
)
pure virtual

◆ getTexture()

◆ getWidth()

◆ newImageData()

virtual image::ImageData * eve::graphics::Canvas::newImageData ( )
pure virtual

该类的文档由以下文件生成: