|
Kanzi Graphics Engine
|
Abstract texture. More...
#include "kzu_resource_common.h"#include <system/debug/kzs_error.h>#include <system/kzs_types.h>#include <system/kzs_header.h>Functions | |
| struct KzuGPUResource * | kzuTextureToGPUResource (const struct KzuTexture *texture) |
| Converts texture to GPU resource. More... | |
| struct KzuTexture * | kzuTextureFromGPUResource (const struct KzuGPUResource *gpuResource) |
| Converts GPU resource to texture. More... | |
| struct KzuResource * | kzuTextureToResource (const struct KzuTexture *texture) |
| Converts texture to resource. More... | |
| struct KzuTexture * | kzuTextureFromResource (const struct KzuResource *resource) |
| Converts resource to texture. More... | |
| struct KzuTexture * | kzuTextureCastFromResource (const struct KzuResource *resource) |
| Casts texture from resource, KZ_NULL if invalid type. More... | |
| enum KzuTextureDataType | kzuTextureGetDataType (const struct KzuTexture *texture) |
| Gets the data type of a texture. More... | |
| enum KzuTextureChannels | kzuTextureGetChannels (const struct KzuTexture *texture) |
| Gets the channels of a texture. More... | |
| enum KzuTextureCompression | kzuTextureGetCompression (const struct KzuTexture *texture) |
| Gets the compression of a texture. More... | |
| kzBool | kzuTextureHasAlphaChannel (const struct KzuTexture *texture) |
| Checks if a texture has an alpha channel. More... | |
| kzUint | kzuTextureGetWidth (const struct KzuTexture *texture) |
| Gets the width of a texture. More... | |
| kzUint | kzuTextureGetHeight (const struct KzuTexture *texture) |
| Gets the height of a texture. More... | |
| void | kzuTextureSetFilter (struct KzuTexture *texture, enum KzuTextureFilter filter) |
| Sets the filter of a texture. More... | |
| enum KzuTextureFilter | kzuTextureGetFilter (const struct KzuTexture *texture) |
| Gets the filter of a texture. More... | |
| void | kzuTextureSetWrap (struct KzuTexture *texture, enum KzuTextureWrap wrap) |
| Sets the wrap mode of a texture. More... | |
| enum KzuTextureWrap | kzuTextureGetWrap (const struct KzuTexture *texture) |
| Gets the wrap mode of a texture. More... | |
| void | kzuTextureSetAnisotropy (struct KzuTexture *texture, kzFloat anisotropy) |
| Set maximum texture anisotropy. More... | |
| kzFloat | kzuTextureGetAnisotropy (const struct KzuTexture *texture) |
| Get desired texture anisotropy. More... | |
| kzBool | kzuTextureIsRenderable (const struct KzuTexture *texture) |
| Returns true if the texture is deployed and valid. More... | |
| kzsError | kzuTextureBind (struct KzuTexture *texture) |
| Binds the texture for rendering. More... | |
| kzsError | kzuTextureUnbind (struct KzuTexture *texture) |
| Unbinds the texture from rendering. More... | |
Variables | |
| const KzuResourceType | KZU_RESOURCE_TYPE_TEXTURE |
| Resource type identifier for texture. More... | |
Abstract texture.
Copyright 2008-2019 by Rightware. All rights reserved.
| enum KzuTextureDataType |
Data type of texture data.
| enum KzuTextureChannels |
Channels of texture data.
Compression of texture data.
| enum KzuTextureFilter |
| enum KzuTextureWrap |
| struct KzuGPUResource* kzuTextureToGPUResource | ( | const struct KzuTexture * | texture) |
Converts texture to GPU resource.
| struct KzuTexture* kzuTextureFromGPUResource | ( | const struct KzuGPUResource * | gpuResource) |
Converts GPU resource to texture.
| struct KzuResource* kzuTextureToResource | ( | const struct KzuTexture * | texture) |
Converts texture to resource.
| struct KzuTexture* kzuTextureFromResource | ( | const struct KzuResource * | resource) |
Converts resource to texture.
| struct KzuTexture* kzuTextureCastFromResource | ( | const struct KzuResource * | resource) |
Casts texture from resource, KZ_NULL if invalid type.
| enum KzuTextureDataType kzuTextureGetDataType | ( | const struct KzuTexture * | texture) |
Gets the data type of a texture.
| enum KzuTextureChannels kzuTextureGetChannels | ( | const struct KzuTexture * | texture) |
Gets the channels of a texture.
| enum KzuTextureCompression kzuTextureGetCompression | ( | const struct KzuTexture * | texture) |
Gets the compression of a texture.
| kzBool kzuTextureHasAlphaChannel | ( | const struct KzuTexture * | texture) |
Checks if a texture has an alpha channel.
| kzUint kzuTextureGetWidth | ( | const struct KzuTexture * | texture) |
Gets the width of a texture.
| kzUint kzuTextureGetHeight | ( | const struct KzuTexture * | texture) |
Gets the height of a texture.
| void kzuTextureSetFilter | ( | struct KzuTexture * | texture, |
| enum KzuTextureFilter | filter | ||
| ) |
Sets the filter of a texture.
| enum KzuTextureFilter kzuTextureGetFilter | ( | const struct KzuTexture * | texture) |
Gets the filter of a texture.
| void kzuTextureSetWrap | ( | struct KzuTexture * | texture, |
| enum KzuTextureWrap | wrap | ||
| ) |
Sets the wrap mode of a texture.
| enum KzuTextureWrap kzuTextureGetWrap | ( | const struct KzuTexture * | texture) |
Gets the wrap mode of a texture.
| void kzuTextureSetAnisotropy | ( | struct KzuTexture * | texture, |
| kzFloat | anisotropy | ||
| ) |
Set maximum texture anisotropy.
This specifies the amount of anisotropy to improve image quality on surfaces angled obliquely away from the viewer. In this case, 1.0f would be the default, isotropic texture for cases where projection of pixel filter footprint into texture space is square. Values of 1.0f and smaller turn off the anisotropy completely (this is the default mode of operation).
| kzFloat kzuTextureGetAnisotropy | ( | const struct KzuTexture * | texture) |
Get desired texture anisotropy.
| kzBool kzuTextureIsRenderable | ( | const struct KzuTexture * | texture) |
Returns true if the texture is deployed and valid.
| kzsError kzuTextureBind | ( | struct KzuTexture * | texture) |
Binds the texture for rendering.
| kzsError kzuTextureUnbind | ( | struct KzuTexture * | texture) |
Unbinds the texture from rendering.
| const KzuResourceType KZU_RESOURCE_TYPE_TEXTURE |
Resource type identifier for texture.