VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::common::MaterialComponent Class Reference

MaterialComponent Contains all the data of a material component. More...

#include <MaterialComponent.h>

Public Member Functions

 MaterialComponent (const MaterialComponentType type)
 
void SetValue (const vcm::Vec3 &value)
 Sets Material component value.
 
void SetValue (const vcm::Vec4 &value)
 Sets Material component value.
 
void SetValue (const float value)
 Sets Material component value.
 
void SetValue (const Texture &texture)
 Sets Material component value.
 
const TextureGetTexture () const
 Gets the texture value of the material component.
 
const vcm::Vec4 & GetColor4D () const
 
const vcm::Vec3 & GetColor3D () const
 
float GetValue () const
 
MaterialComponentValueType GetValueType () const
 

Detailed Description

MaterialComponent Contains all the data of a material component.

Member Function Documentation

◆ GetTexture()

const Texture & venom::common::MaterialComponent::GetTexture ( ) const
inline

Gets the texture value of the material component.

Returns
Texture

◆ SetValue() [1/4]

void venom::common::MaterialComponent::SetValue ( const float value)
inline

Sets Material component value.

Parameters
valuecan be a color3D/4D, a value or a texture

◆ SetValue() [2/4]

void venom::common::MaterialComponent::SetValue ( const Texture & texture)
inline

Sets Material component value.

Parameters
valuecan be a color3D/4D, a value or a texture

◆ SetValue() [3/4]

void venom::common::MaterialComponent::SetValue ( const vcm::Vec3 & value)
inline

Sets Material component value.

Parameters
valuecan be a color3D/4D, a value or a texture

◆ SetValue() [4/4]

void venom::common::MaterialComponent::SetValue ( const vcm::Vec4 & value)
inline

Sets Material component value.

Parameters
valuecan be a color3D/4D, a value or a texture

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