Blender  V3.3
Public Member Functions | List of all members
Freestyle::StrokeShaders::BlenderTextureShader Class Reference

#include <BasicStrokeShaders.h>

Inheritance diagram for Freestyle::StrokeShaders::BlenderTextureShader:
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
voidpy_ss
 

Detailed Description

[ Texture Shader ]. Shader to assign texture to the Stroke material.

Definition at line 583 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 593 of file BasicStrokeShaders.h.

References NULL.

◆ 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 603 of file BasicStrokeShaders.h.

References NULL.

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 609 of file BasicStrokeShaders.h.

◆ shade()

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

The shading method

Reimplemented from Freestyle::StrokeShader.

Definition at line 280 of file BasicStrokeShaders.cpp.

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


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