vrdTextureChunk

class vrdTextureChunk

(Inherits vrdMaterialChunk)

This class represents a texture chunk.

class MinFilter
Fastest
Fast
Medium
Nice
Nicer
Nicest
class MagFilter
Fast
Nice
class WrapMode
Clamp
ClampToEdge
ClampToBorder
Repeat
MirroredRepeat
class InternalFormat
GetFromLoadedTexture
R8
RG8
RGB8
RGBA8
R16
RG16
RGB16
RGBA16
R16F
RG16F
RGB16F
RGBA16F
R32F
RG32F
RGB32F
RGBA32F
SRGB8
SRGB8ALPHA8

Functions

vrdTextureChunk.getAnisotropy()

Returns texture anisotropy filtering.

Returns:The texture anisotropy filtering value.
Return type:float
vrdTextureChunk.getImage()

Returns the texture.

Returns:The texture image.
Return type:vrdImage
vrdTextureChunk.getInternalFormat()

Returns the internal texture format.

Returns:The internal texture format.
Return type:vrdTextureChunk.InternalFormat
vrdTextureChunk.getLodBias()

Bias of LOD calculation for texture access.

Returns:The LOD Bias
Return type:float
vrdTextureChunk.getMagFilter()

Returns the magnification filter, default GL_LINEAR (Nice)

Returns:The magnification filter.
Return type:vrdTextureChunk.MagFilter
vrdTextureChunk.getMinFilter()

Returns the minimization filter, default GL_LINEAR_MIPMAP_LINEAR (Nicest)

Returns:The minimization filter.
Return type:vrdTextureChunk.MinFilter
vrdTextureChunk.getWrapModeR()

Returns texture coordinate R wrapping, default GL_REPEAT (Repeat).

Returns:The R wrap mode.
Return type:vrdTextureChunk.WrapMode
vrdTextureChunk.getWrapModeS()

Returns texture coordinate S wrapping, default GL_REPEAT (Repeat).

Returns:The S wrap mode.
Return type:vrdTextureChunk.WrapMode
vrdTextureChunk.getWrapModeT()

Returns texture coordinate T wrapping, default GL_REPEAT (Repeat).

Returns:The T wrap mode.
Return type:vrdTextureChunk.WrapMode
vrdTextureChunk.setAnisotropy(anisotropy)

Sets texture anisotropy filtering.

Parameters:anisotropy (float) – The texture anisotropy filtering value.
vrdTextureChunk.setImage(img)

Sets the texture.

Parameters:img (vrdImage) – The new texture.
vrdTextureChunk.setInternalFormat(format)

Sets the internal texture format.

Parameters:format (vrdTextureChunk.InternalFormat) – The internal texture format.
vrdTextureChunk.setLodBias(bias)

Set bias of LOD calculation for texture access.

Parameters:bias (float) – The LOD Bias
vrdTextureChunk.setMagFilter(minFilter)

Sets the magnification filter, default GL_LINEAR (Nice)

Parameters:minFilter (vrdTextureChunk.MagFilter) – The magnification filter
vrdTextureChunk.setMinFilter(minFilter)

Sets the minimization filter, default GL_LINEAR_MIPMAP_LINEAR (Nicest)

Parameters:minFilter (vrdTextureChunk.MinFilter) – The minimization filter
vrdTextureChunk.setWrapModeR(mode)

Sets texture coordinate R wrapping, default GL_REPEAT (Repeat).

Parameters:mode (vrdTextureChunk.WrapMode) – The R wrap mode
vrdTextureChunk.setWrapModeS(mode)

Sets texture coordinate S wrapping, default GL_REPEAT (Repeat).

Parameters:mode (vrdTextureChunk.WrapMode) – The wrap mode
vrdTextureChunk.setWrapModeT(mode)

Sets texture coordinate T wrapping, default GL_REPEAT (Repeat).

Parameters:mode (vrdTextureChunk.WrapMode) – The T wrap mode