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.

static getClassType() → TypeHandle
Return type

TypeHandle

getSampler() → SamplerState

Retrieves the sampler state stored in the parameter.

Return type

SamplerState

getTexture() → Texture

Retrieves the texture stored in the parameter.

Return type

Texture

property sampler

Retrieves the sampler state stored in the parameter.

Return type

SamplerState

property texture

Retrieves the texture stored in the parameter.

Return type

Texture