CoriEngine
Loading...
Searching...
No Matches
Cori::Graphics::Texture::Params Struct Reference

Params to use when creating a texture. More...

#include <Texture.hpp>

Public Attributes

PixelFormat m_PixelFormat { RGBA8888 }
WrapMode m_WrapMode { CLAMP_TO_EDGE }
Filter m_Filter { NEAREST }
int32_t m_UnpackAlignment { 0 }
 Generally you want to leave this by default if you're creating a texture from an image, they all have align of 4.
bool m_HasSemiTransparency { false }
 Whether or no to flag the texture as semi transparent.

Detailed Description

Params to use when creating a texture.

Definition at line 45 of file Texture.hpp.

Member Data Documentation

◆ m_Filter

Filter Cori::Graphics::Texture::Params::m_Filter { NEAREST }

Definition at line 48 of file Texture.hpp.

◆ m_HasSemiTransparency

bool Cori::Graphics::Texture::Params::m_HasSemiTransparency { false }

Whether or no to flag the texture as semi transparent.

Definition at line 58 of file Texture.hpp.

◆ m_PixelFormat

PixelFormat Cori::Graphics::Texture::Params::m_PixelFormat { RGBA8888 }

Definition at line 46 of file Texture.hpp.

◆ m_UnpackAlignment

int32_t Cori::Graphics::Texture::Params::m_UnpackAlignment { 0 }

Generally you want to leave this by default if you're creating a texture from an image, they all have align of 4.

Definition at line 53 of file Texture.hpp.

◆ m_WrapMode

WrapMode Cori::Graphics::Texture::Params::m_WrapMode { CLAMP_TO_EDGE }

Definition at line 47 of file Texture.hpp.


The documentation for this struct was generated from the following file: