|
|
using | RawData = uint8_t |
| |
|
using | RawDataPointer = RawData * |
| |
|
using | TextureBindId = BindableId |
| |
|
|
| Texture (const Texture &)=delete |
| |
|
| Texture (Texture &&texture) noexcept |
| |
|
Texture & | operator= (const Texture &texture)=delete |
| |
|
Texture & | operator= (Texture &&texture) noexcept |
| |
|
| Texture (const MxString &filepath, TextureWrap wrap=TextureWrap::REPEAT, bool genMipmaps=true, bool flipImage=true) |
| |
|
void | Bind () const |
| |
|
void | Unbind () const |
| |
|
BindableId | GetNativeHandle () const |
| |
|
void | Load (const MxString &filepath, TextureWrap wrap=TextureWrap::REPEAT, bool genMipmaps=true, bool flipImage=true) |
| |
|
void | Load (RawDataPointer data, int width, int height, TextureFormat format=TextureFormat::RGB, TextureWrap wrap=TextureWrap::REPEAT, bool genMipmaps=true) |
| |
|
void | LoadMipmaps (RawDataPointer *data, size_t mipmaps, int biggestWidth, int biggestHeight, TextureWrap wrap=TextureWrap::REPEAT) |
| |
|
void | LoadDepth (int width, int height, TextureWrap wrap=TextureWrap::CLAMP_TO_BORDER) |
| |
|
void | LoadMultisample (int width, int height, TextureFormat format, int samples, TextureWrap wrap=TextureWrap::REPEAT) |
| |
|
Image | GetRawTextureData () const |
| |
|
void | GenerateMipmaps () |
| |
|
void | SetBorderColor (const Vector3 &color) |
| |
|
bool | IsMultisampled () const |
| |
|
bool | IsFloatingPoint () const |
| |
|
bool | IsDepthOnly () const |
| |
|
int | GetSampleCount () const |
| |
|
size_t | GetPixelSize () const |
| |
|
TextureFormat | GetFormat () const |
| |
|
TextureWrap | GetWrapType () const |
| |
|
void | Bind (TextureBindId id) const |
| |
|
const MxString & | GetPath () const |
| |
|
unsigned int | GetTextureType () const |
| |
|
size_t | GetWidth () const |
| |
|
size_t | GetHeight () const |
| |
|
size_t | GetChannelCount () const |
| |
The documentation for this class was generated from the following files:
- src/Platform/OpenGL/Texture.h
- src/Platform/OpenGL/Texture.cpp