Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyGfx::Material Class Reference

#include <Material.h>

Public Member Functions

 Material (bool skinned, System::String^ shadername, System::Guid guid)
 
 Material (kmyGfx::Material *mtl)
 
 Material (System::String^ defimage, System::Guid guid, System::String^ name)
 
 ~Material ()
 
System::String getName ()
 
void setName (System::String^ name)
 
Shader getShader ()
 
void setShader (System::String^ shadername)
 
void setParameterF (System::String^ slotname, float x, float y, float z, float w)
 
void setParameterI (System::String^ slotname, int x, int y, int z, int w)
 
void setParameterB (System::String^ slotname, bool b)
 
void setTextureFileName (System::String^ slotname, System::String^ texfilename)
 
void setTexture (System::String^ slotname, Texture^ tex)
 
Texture getTexture (System::String^ slotname)
 
Texture getTexture (int index)
 
int getEnumCount (System::String^ slotname)
 
System::String getEnumString (System::String^ slotname, int index)
 
System::String getShaderName ()
 
bool getSlotName (int idx, UNIFORMPARAMTYPE %paramtype, bool %hideInEditor, [Runtime::InteropServices::Out] System::String ^%name)
 
UNIFORMPARAMTYPE getSlotType (System::String^ name)
 
float getParameterF (System::String^ slotname, int channel)
 
int getParameterI (System::String^ slotname, int channel)
 
float getParameterMin (System::String^ slotname, int channel)
 
float getParameterMax (System::String^ slotname, int channel)
 
bool getParameterB (System::String^ slotname)
 
System::String getTextureFileName (System::String^ slotname)
 
float getUScrollSpeed ()
 
float getVScrollSpeed ()
 
void setUScrollSpeed (float v)
 
void setVScrollSpeed (float v)
 
unsigned int getUDiv ()
 
unsigned int getVDiv ()
 
void setUDiv (unsigned int v)
 
void setVDiv (unsigned int v)
 
float getUVStepInterval ()
 
void setUVStepInterval (float v)
 
bool getUVStepUseModelUVOrigin ()
 
void setUVStepUseModelUVOrigin (bool v)
 
unsigned int getUVStepFrameCount ()
 
void setUVStepFrameCount (unsigned int v)
 
void enableUScrollAnim (bool flg)
 
void enableVScrollAnim (bool flg)
 
void enableUVStepAnim (bool flg)
 
bool isEnableUScrollAnim ()
 
bool isEnableVScrollAnim ()
 
bool isEnableUVStepAnim ()
 
void enableEmissiveBlink (bool flg)
 
bool isEnableEmissiveBlink ()
 
void setEmissiveBlinkSpeed (float v)
 
float getEmissiveBlinkSpeed ()
 
void enableEmissiveLinkBuildingLight (bool flg)
 
bool isEmissiveLinkBuildingLight ()
 
void setCastShadow (bool flg)
 
bool getCastShadow ()
 
bool isEnableSetSortIndex ()
 
int getSortIndex ()
 
void setSortIndex (int val)
 
void setUVOffset (SharpKmyMath::Vector2 v)
 
SharpKmyMath::Vector2 getUVOffset ()
 
void setUVScale (SharpKmyMath::Vector2 v)
 
SharpKmyMath::Vector2 getUVScale ()
 
CULLTYPE getCullType ()
 
void setCullType (CULLTYPE t)
 
void setDrawOutlineEnable (bool flg)
 
bool getDrawOutlineEnable ()
 
void setOutlineWidth (float w)
 
float getOutlineWidth ()
 
void setOutlineColor (Color color)
 
Color getOutlineColor ()
 
void setOverrideOutlineSetting (bool flg)
 
bool getOverrideOutlineSetting ()
 
void setDistanceFadeEnable (bool flg)
 
bool getDistanceFadeEnable ()
 
void setReceiveDecal (bool flg)
 
bool getReceiveDecal ()
 
bool isEnableSetCastShadow ()
 
System::String getDefText ()
 
void setDefByText (System::String^ text)
 
void addRef ()
 
void removeRef ()
 

Static Public Member Functions

static int getMaterialTextureNumMax ()
 
static bool getCommonDrawOutlineEnable ()
 
static void setCommonDrawOutlineEnable (bool flg)
 
static float getCommonOutlineWidth ()
 
static void setCommonOutlineWidth (float w)
 
static Color getCommonOutlineColor ()
 
static void setCommonOutlineColor (Color color)
 

Public Attributes

bool owning = true
 
kmyGfx::Material * obj = nullptr
 

Constructor & Destructor Documentation

◆ Material() [1/3]

SharpKmyGfx::Material::Material ( bool  skinned,
System::String^  shadername,
System::Guid  guid 
)

◆ Material() [2/3]

SharpKmyGfx::Material::Material ( kmyGfx::Material *  mtl)

◆ Material() [3/3]

SharpKmyGfx::Material::Material ( System::String^  defimage,
System::Guid  guid,
System::String^  name 
)

◆ ~Material()

SharpKmyGfx::Material::~Material ( )

Member Function Documentation

◆ addRef()

void SharpKmyGfx::Material::addRef ( )

◆ enableEmissiveBlink()

void SharpKmyGfx::Material::enableEmissiveBlink ( bool  flg)

◆ enableEmissiveLinkBuildingLight()

void SharpKmyGfx::Material::enableEmissiveLinkBuildingLight ( bool  flg)

◆ enableUScrollAnim()

void SharpKmyGfx::Material::enableUScrollAnim ( bool  flg)

◆ enableUVStepAnim()

void SharpKmyGfx::Material::enableUVStepAnim ( bool  flg)

◆ enableVScrollAnim()

void SharpKmyGfx::Material::enableVScrollAnim ( bool  flg)

◆ getCastShadow()

bool SharpKmyGfx::Material::getCastShadow ( )

◆ getCommonDrawOutlineEnable()

static bool SharpKmyGfx::Material::getCommonDrawOutlineEnable ( )
static

◆ getCommonOutlineColor()

static Color SharpKmyGfx::Material::getCommonOutlineColor ( )
static

◆ getCommonOutlineWidth()

static float SharpKmyGfx::Material::getCommonOutlineWidth ( )
static

◆ getCullType()

CULLTYPE SharpKmyGfx::Material::getCullType ( )

◆ getDefText()

System::String SharpKmyGfx::Material::getDefText ( )

◆ getDistanceFadeEnable()

bool SharpKmyGfx::Material::getDistanceFadeEnable ( )

◆ getDrawOutlineEnable()

bool SharpKmyGfx::Material::getDrawOutlineEnable ( )

◆ getEmissiveBlinkSpeed()

float SharpKmyGfx::Material::getEmissiveBlinkSpeed ( )

◆ getEnumCount()

int SharpKmyGfx::Material::getEnumCount ( System::String^  slotname)

◆ getEnumString()

System::String SharpKmyGfx::Material::getEnumString ( System::String^  slotname,
int  index 
)

◆ getMaterialTextureNumMax()

static int SharpKmyGfx::Material::getMaterialTextureNumMax ( )
static

◆ getName()

System::String SharpKmyGfx::Material::getName ( )

◆ getOutlineColor()

Color SharpKmyGfx::Material::getOutlineColor ( )

◆ getOutlineWidth()

float SharpKmyGfx::Material::getOutlineWidth ( )

◆ getOverrideOutlineSetting()

bool SharpKmyGfx::Material::getOverrideOutlineSetting ( )

◆ getParameterB()

bool SharpKmyGfx::Material::getParameterB ( System::String^  slotname)

◆ getParameterF()

float SharpKmyGfx::Material::getParameterF ( System::String^  slotname,
int  channel 
)

◆ getParameterI()

int SharpKmyGfx::Material::getParameterI ( System::String^  slotname,
int  channel 
)

◆ getParameterMax()

float SharpKmyGfx::Material::getParameterMax ( System::String^  slotname,
int  channel 
)

◆ getParameterMin()

float SharpKmyGfx::Material::getParameterMin ( System::String^  slotname,
int  channel 
)

◆ getReceiveDecal()

bool SharpKmyGfx::Material::getReceiveDecal ( )

◆ getShader()

Shader SharpKmyGfx::Material::getShader ( )

◆ getShaderName()

System::String SharpKmyGfx::Material::getShaderName ( )

◆ getSlotName()

bool SharpKmyGfx::Material::getSlotName ( int  idx,
UNIFORMPARAMTYPE paramtype,
bool %  hideInEditor,
[Runtime::InteropServices::Out] System::String ^%  name 
)

◆ getSlotType()

UNIFORMPARAMTYPE SharpKmyGfx::Material::getSlotType ( System::String^  name)

◆ getSortIndex()

int SharpKmyGfx::Material::getSortIndex ( )

◆ getTexture() [1/2]

Texture SharpKmyGfx::Material::getTexture ( int  index)

◆ getTexture() [2/2]

Texture SharpKmyGfx::Material::getTexture ( System::String^  slotname)

◆ getTextureFileName()

System::String SharpKmyGfx::Material::getTextureFileName ( System::String^  slotname)

◆ getUDiv()

unsigned int SharpKmyGfx::Material::getUDiv ( )

◆ getUScrollSpeed()

float SharpKmyGfx::Material::getUScrollSpeed ( )

◆ getUVOffset()

SharpKmyMath::Vector2 SharpKmyGfx::Material::getUVOffset ( )

◆ getUVScale()

SharpKmyMath::Vector2 SharpKmyGfx::Material::getUVScale ( )

◆ getUVStepFrameCount()

unsigned int SharpKmyGfx::Material::getUVStepFrameCount ( )

◆ getUVStepInterval()

float SharpKmyGfx::Material::getUVStepInterval ( )

◆ getUVStepUseModelUVOrigin()

bool SharpKmyGfx::Material::getUVStepUseModelUVOrigin ( )

◆ getVDiv()

unsigned int SharpKmyGfx::Material::getVDiv ( )

◆ getVScrollSpeed()

float SharpKmyGfx::Material::getVScrollSpeed ( )

◆ isEmissiveLinkBuildingLight()

bool SharpKmyGfx::Material::isEmissiveLinkBuildingLight ( )

◆ isEnableEmissiveBlink()

bool SharpKmyGfx::Material::isEnableEmissiveBlink ( )

◆ isEnableSetCastShadow()

bool SharpKmyGfx::Material::isEnableSetCastShadow ( )

◆ isEnableSetSortIndex()

bool SharpKmyGfx::Material::isEnableSetSortIndex ( )

◆ isEnableUScrollAnim()

bool SharpKmyGfx::Material::isEnableUScrollAnim ( )

◆ isEnableUVStepAnim()

bool SharpKmyGfx::Material::isEnableUVStepAnim ( )

◆ isEnableVScrollAnim()

bool SharpKmyGfx::Material::isEnableVScrollAnim ( )

◆ removeRef()

void SharpKmyGfx::Material::removeRef ( )

◆ setCastShadow()

void SharpKmyGfx::Material::setCastShadow ( bool  flg)

◆ setCommonDrawOutlineEnable()

static void SharpKmyGfx::Material::setCommonDrawOutlineEnable ( bool  flg)
static

◆ setCommonOutlineColor()

static void SharpKmyGfx::Material::setCommonOutlineColor ( Color  color)
static

◆ setCommonOutlineWidth()

static void SharpKmyGfx::Material::setCommonOutlineWidth ( float  w)
static

◆ setCullType()

void SharpKmyGfx::Material::setCullType ( CULLTYPE  t)

◆ setDefByText()

void SharpKmyGfx::Material::setDefByText ( System::String^  text)

◆ setDistanceFadeEnable()

void SharpKmyGfx::Material::setDistanceFadeEnable ( bool  flg)

◆ setDrawOutlineEnable()

void SharpKmyGfx::Material::setDrawOutlineEnable ( bool  flg)

◆ setEmissiveBlinkSpeed()

void SharpKmyGfx::Material::setEmissiveBlinkSpeed ( float  v)

◆ setName()

void SharpKmyGfx::Material::setName ( System::String^  name)

◆ setOutlineColor()

void SharpKmyGfx::Material::setOutlineColor ( Color  color)

◆ setOutlineWidth()

void SharpKmyGfx::Material::setOutlineWidth ( float  w)

◆ setOverrideOutlineSetting()

void SharpKmyGfx::Material::setOverrideOutlineSetting ( bool  flg)

◆ setParameterB()

void SharpKmyGfx::Material::setParameterB ( System::String^  slotname,
bool  b 
)

◆ setParameterF()

void SharpKmyGfx::Material::setParameterF ( System::String^  slotname,
float  x,
float  y,
float  z,
float  w 
)

◆ setParameterI()

void SharpKmyGfx::Material::setParameterI ( System::String^  slotname,
int  x,
int  y,
int  z,
int  w 
)

◆ setReceiveDecal()

void SharpKmyGfx::Material::setReceiveDecal ( bool  flg)

◆ setShader()

void SharpKmyGfx::Material::setShader ( System::String^  shadername)

◆ setSortIndex()

void SharpKmyGfx::Material::setSortIndex ( int  val)

◆ setTexture()

void SharpKmyGfx::Material::setTexture ( System::String^  slotname,
Texture tex 
)

◆ setTextureFileName()

void SharpKmyGfx::Material::setTextureFileName ( System::String^  slotname,
System::String^  texfilename 
)

◆ setUDiv()

void SharpKmyGfx::Material::setUDiv ( unsigned int  v)

◆ setUScrollSpeed()

void SharpKmyGfx::Material::setUScrollSpeed ( float  v)

◆ setUVOffset()

void SharpKmyGfx::Material::setUVOffset ( SharpKmyMath::Vector2  v)

◆ setUVScale()

void SharpKmyGfx::Material::setUVScale ( SharpKmyMath::Vector2  v)

◆ setUVStepFrameCount()

void SharpKmyGfx::Material::setUVStepFrameCount ( unsigned int  v)

◆ setUVStepInterval()

void SharpKmyGfx::Material::setUVStepInterval ( float  v)

◆ setUVStepUseModelUVOrigin()

void SharpKmyGfx::Material::setUVStepUseModelUVOrigin ( bool  v)

◆ setVDiv()

void SharpKmyGfx::Material::setVDiv ( unsigned int  v)

◆ setVScrollSpeed()

void SharpKmyGfx::Material::setVScrollSpeed ( float  v)

Member Data Documentation

◆ obj

kmyGfx::Material* SharpKmyGfx::Material::obj = nullptr

◆ owning

bool SharpKmyGfx::Material::owning = true