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

GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle. 更多...

#include <Texture.h>

类 eve::graphics::Texture 继承关系图:
eve::graphics::Drawable

Public 成员函数

 Texture ()
 
 ~Texture () override
 
void draw (Graphics *gfx, const glm::mat4 &matrix) const override
 Draws the object with the specified transformation matrix.
 
void drawOcclusion (Graphics *gfx, const glm::mat4 &matrix) const override
 Black silhouette using texture alpha (volumetric occlusion map).
 
int getWidth () const
 
int getHeight () const
 
int getPixelWidth () const
 
int getPixelHeight () const
 
int getMipmapCount () const
 
const TextureSamplergetSampler () const
 
- Public 成员函数 继承自 eve::graphics::Drawable
virtual ~Drawable ()
 
bool getCastOcclusion () const
 When false, skipped by Graphics::drawOcclusion / volumetric occluder passes.
 
void setCastOcclusion (bool cast)
 

Public 属性

void * gpuHandle = nullptr
 
int width = 0
 
int height = 0
 
int depth = 1
 
int layers = 1
 
int mipmapCount = 1
 
int pixelWidth = 0
 
int pixelHeight = 0
 
TextureSampler sampler {}
 

详细描述

GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.

在文件 Texture.h17 行定义.

构造及析构函数说明

◆ Texture()

eve::graphics::Texture::Texture ( )
default

◆ ~Texture()

eve::graphics::Texture::~Texture ( )
override

在文件 Texture.cpp12 行定义.

引用了 gpuHandle.

成员函数说明

◆ draw()

void eve::graphics::Texture::draw ( Graphics gfx,
const glm::mat4 &  matrix 
) const
overridevirtual

Draws the object with the specified transformation matrix.

实现了 eve::graphics::Drawable.

在文件 Texture.cpp17 行定义.

◆ drawOcclusion()

void eve::graphics::Texture::drawOcclusion ( Graphics gfx,
const glm::mat4 &  matrix 
) const
overridevirtual

Black silhouette using texture alpha (volumetric occlusion map).

重载 eve::graphics::Drawable .

在文件 Texture.cpp21 行定义.

引用了 eve::graphics::Graphics::drawOcclusionTexture(), eve::graphics::Drawable::getCastOcclusion(), h, w, x , 以及 y.

◆ getHeight()

◆ getMipmapCount()

int eve::graphics::Texture::getMipmapCount ( ) const
inline

在文件 Texture.h30 行定义.

引用了 mipmapCount.

◆ getPixelHeight()

int eve::graphics::Texture::getPixelHeight ( ) const
inline

在文件 Texture.h29 行定义.

引用了 pixelHeight.

◆ getPixelWidth()

int eve::graphics::Texture::getPixelWidth ( ) const
inline

在文件 Texture.h28 行定义.

引用了 pixelWidth.

◆ getSampler()

const TextureSampler & eve::graphics::Texture::getSampler ( ) const
inline

在文件 Texture.h31 行定义.

引用了 sampler.

被这些函数引用 eve::graphics::Graphics::setTextureSamplerParams().

◆ getWidth()

类成员变量说明

◆ depth

int eve::graphics::Texture::depth = 1

◆ gpuHandle

◆ height

◆ layers

int eve::graphics::Texture::layers = 1

在文件 Texture.h39 行定义.

◆ mipmapCount

int eve::graphics::Texture::mipmapCount = 1

◆ pixelHeight

int eve::graphics::Texture::pixelHeight = 0

◆ pixelWidth

int eve::graphics::Texture::pixelWidth = 0

◆ sampler

◆ width


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