panda3d.core.ParamTextureSampler

from panda3d.core import ParamTextureSampler
class ParamTextureSampler

Bases: ParamValueBase

A class object for storing a pointer to a Texture along with a sampler state that indicates how to to sample the given texture.

Inheritance diagram

Inheritance diagram of ParamTextureSampler

__init__(tex: Texture, sampler: SamplerState) → None

Creates a new ParamTextureSampler storing the given texture and sampler objects.

getTexture() → Texture

Retrieves the texture stored in the parameter.

Return type

Texture

getSampler() → SamplerState

Retrieves the sampler state stored in the parameter.

Return type

SamplerState

static getClassType() → TypeHandle
Return type

TypeHandle

property texture

Retrieves the texture stored in the parameter.

Return type

Texture

property sampler

Retrieves the sampler state stored in the parameter.

Return type

SamplerState