Clarisse 4.0 SP12 SDK  4.0.5.12.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ModuleTexture Class Reference

This class implements a Texture object in Clarisse. More...

Inheritance diagram for ModuleTexture:
ModuleTextureOperator ModuleGlObject ModuleProjectItem ModuleObject OfModule ResourceUser EventObject CoreCustomData CoreBaseObject CoreBaseType ModuleTextureSpatial ModuleTextureOsl

Public Member Functions

void pre_evaluate (const CtxEval &eval_ctx, CtxShader &ctx) const
 This function calls the pre evaluation callback.
 
bool evaluate (const CtxEval &eval_ctx, CtxShader &ctx, TextureOutput &output) const
 This function evaluates the texture.
 
bool evaluate (const CtxEval &eval_ctx, CtxShader &ctx, TextureOutput &output, GMathVec4f &color_dx, GMathVec4f &color_dy) const
 This function evaluates the texture.
 
const unsigned int & get_object_id () const
 Returns the ID of the current instance.
 
const double get_opacity (const CtxEval &eval_ctx, CtxShader &ctx) const
 Returns the opacity of the texture.
 
const bool & is_inverted () const
 Returns whether the output values will be inverted or not.
 
bool set_master_input_value (const CoreString &attr_name) final
 
- Public Member Functions inherited from ModuleTextureOperator
OfAttrget_master_input_value () const override
 
OfAttrget_pass_through () const override
 
OfAttrget_master_input () const override
 
- Public Member Functions inherited from ModuleGlObject
virtual bool pre_paint_gl (GlUtilsCtx &ctx) const
 
virtual bool paint_gl (GlUtilsCtx &ctx) const
 
virtual bool destroy_gl_data (GlUtilsGlCtx &gl_ctx) const
 
virtual size_t get_memory_size () const
 

Static Public Member Functions

static const unsigned int & get_object_count (OfApp &application)
 Returns the peak number of ModuleMaterial objects that have been created in the current Clarisse instance.
 

Protected Types

typedef bool(* ApplyTextureMatrix )(OfObject &, const CtxEval &, CtxShader &, const ModuleTexture &, TextureOutput &output)
 

Protected Member Functions

virtual void module_constructor (OfObject &object)
 
virtual void on_attribute_change (const OfAttr &attr, int &dirtiness, const int &dirtiness_flags)
 
- Protected Member Functions inherited from ModuleTextureOperator
void module_constructor (OfObject &object) override
 
void on_attribute_change (const OfAttr &attr, int &dirtiness, const int &dirtiness_flags) override
 

Protected Attributes

ApplyTextureMatrix m_apply_texture_matrix
 
- Protected Attributes inherited from ModuleTextureOperator
OfAttrm_pass_through_attr
 
OfAttrm_master_input_attr
 
const OfAttrm_master_input_value
 

Additional Inherited Members

- Public Types inherited from EventObject
typedef void(* EventInfoFunction )(EventObject &, const EventInfo &, void *)
 
typedef void(EventObject::* EventInfoMethod )(EventObject &, const EventInfo &, void *)
 
typedef void(* EventFunction )(EventObject &, const CoreString &, void *)
 
typedef void(EventObject::* EventMethod )(EventObject &, const CoreString &, void *)
 

Detailed Description

This class implements a Texture object in Clarisse.

Base class for all the textures (Clarisse textures as well as specific textures for external renderers integrated in Clarisse).

Member Function Documentation

bool ModuleTexture::evaluate ( const CtxEval eval_ctx,
CtxShader ctx,
TextureOutput output 
) const

This function evaluates the texture.

Parameters
eval_ctxEvaluation context.
eval_ctxShader context.
outputOutput variable.
bool ModuleTexture::evaluate ( const CtxEval eval_ctx,
CtxShader ctx,
TextureOutput output,
GMathVec4f &  color_dx,
GMathVec4f &  color_dy 
) const

This function evaluates the texture.

Parameters
eval_ctxEvaluation context.
ctxShader context.
outputOutput variable.
color_dxColor evaluated at coordinates + X derivative.
color_dyColor evaluated at coordinates + Y derivative.