Blender V4.3
Freestyle::StrokeShaders::BlenderTextureShader Class Reference

#include <BasicStrokeShaders.h>

Inherits Freestyle::StrokeShader.

Public Member Functions

 BlenderTextureShader (MTex *mtex)
 
 BlenderTextureShader (bNodeTree *nodetree)
 
virtual string getName () const
 
virtual int shade (Stroke &stroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
void * py_ss
 

Detailed Description

Texture Shader.

Shader to assign texture to the Stroke material.

Definition at line 574 of file BasicStrokeShaders.h.

Constructor & Destructor Documentation

◆ BlenderTextureShader() [1/2]

Freestyle::StrokeShaders::BlenderTextureShader::BlenderTextureShader ( MTex * mtex)
inline

Builds the shader.

Parameters
mtexThe blender texture to use.

Definition at line 584 of file BasicStrokeShaders.h.

◆ BlenderTextureShader() [2/2]

Freestyle::StrokeShaders::BlenderTextureShader::BlenderTextureShader ( bNodeTree * nodetree)
inline

Builds the shader.

Parameters
nodetreeA node tree (of new shading nodes) to define textures.

Definition at line 594 of file BasicStrokeShaders.h.

Member Function Documentation

◆ getName()

virtual string Freestyle::StrokeShaders::BlenderTextureShader::getName ( ) const
inlinevirtual

Returns the string corresponding to the shader's name.

Reimplemented from Freestyle::StrokeShader.

Definition at line 600 of file BasicStrokeShaders.h.

◆ shade()

int Freestyle::StrokeShaders::BlenderTextureShader::shade ( Stroke & stroke) const
virtual

The shading method

Reimplemented from Freestyle::StrokeShader.

Definition at line 287 of file BasicStrokeShaders.cpp.

References Freestyle::Stroke::setMTex(), and Freestyle::Stroke::setNodeTree().


The documentation for this class was generated from the following files: