8 Material(
bool skinned, System::String^ shadername, System::Guid guid);
9 Material(kmyGfx::Material* mtl,
bool addref);
10 Material(System::String^ defimage, System::Guid guid, System::String^ name);
14 void setName(System::String^ name);
16 void setShader(System::String^ shadername);
17 void setParameterF(System::String^ slotname,
float x,
float y,
float z,
float w);
18 void setParameterI(System::String^ slotname,
int x,
int y,
int z,
int w);
25 System::String^
getEnumString(System::String^ slotname,
int index);
32 [Runtime::InteropServices::Out] System::String ^%name);
78 auto ps =
obj->getPolygonState();
79 ps.m_cullType = (kmyGfx::CULLTYPE)t;
80 obj->setPolygonState(ps);
84 if (
obj)
obj->setDrawOutlineEnable(flg);
88 if (
obj)
return obj->getDrawOutlineEnable();
93 if (
obj)
obj->setOutlineWidth(w);
97 if (
obj)
return obj->getOutlineWidth();
102 if (
obj)
obj->setOutlineColor(kmyGfx::Color(color.
r, color.
g, color.
b, color.
a));
106 kmyGfx::Color c = kmyGfx::Color::black();
107 if(
obj)c =
obj->getOutlineColor();
108 return Color(c.r, c.g, c.b, c.a);
112 if (
obj)
obj->setOverrideOutlineSetting(flg);
116 if (
obj)
return obj->getOverrideOutlineSetting();
126 return kmyGfx::Material::getCommonDrawOutlineEnable();
130 return kmyGfx::Material::setCommonDrawOutlineEnable(flg);
134 return kmyGfx::Material::getCommonOutlineWidth();
138 kmyGfx::Material::setCommonOutlineWidth(w);
142 kmyGfx::Color c = kmyGfx::Material::getCommonOutlineColor();
143 return Color(c.r, c.g, c.b, c.a);
147 kmyGfx::Color c(color.
r, color.
g, color.
b, color.
a);
148 kmyGfx::Material::setCommonOutlineColor(c);
157 kmyGfx::Material *
obj =
nullptr;
float r
Definition: Color.h:8
float b
Definition: Color.h:8
float a
Definition: Color.h:8
float g
Definition: Color.h:8
bool isEnableSetCastShadow()
Definition: Material.h:151
int getSortIndex()
Definition: Material.h:70
SharpKmyMath::Vector2 getUVScale()
Definition: Material.cpp:539
bool getUVStepUseModelUVOrigin()
Definition: Material.cpp:528
bool getOverrideOutlineSetting()
Definition: Material.h:114
void setUVOffset(SharpKmyMath::Vector2 v)
Definition: Material.cpp:555
bool getSlotName(int idx, UNIFORMPARAMTYPE %paramtype, bool %hideInEditor, [Runtime::InteropServices::Out] System::String ^%name)
Definition: Material.cpp:277
System::String getDefText()
Definition: Material.cpp:468
float getUVStepInterval()
Definition: Material.cpp:527
static bool getCommonDrawOutlineEnable()
Definition: Material.h:124
void setCastShadow(bool flg)
Definition: Material.cpp:554
void setParameterB(System::String^ slotname, bool b)
Definition: Material.cpp:114
void setUVScale(SharpKmyMath::Vector2 v)
Definition: Material.cpp:556
unsigned int getVDiv()
Definition: Material.cpp:525
void setEmissiveBlinkSpeed(float v)
Definition: Material.cpp:552
void setDrawOutlineEnable(bool flg)
Definition: Material.h:82
bool owning
Definition: Material.h:156
unsigned int getUVStepFrameCount()
Definition: Material.cpp:526
bool getCastShadow()
Definition: Material.cpp:532
Texture getTexture(System::String^ slotname)
Definition: Material.cpp:138
void setVScrollSpeed(float v)
Definition: Material.cpp:544
~Material()
Definition: Material.cpp:41
Color getOutlineColor()
Definition: Material.h:104
float getOutlineWidth()
Definition: Material.h:95
void enableUScrollAnim(bool flg)
Definition: Material.cpp:541
void setVDiv(unsigned int v)
Definition: Material.cpp:547
void setUVStepInterval(float v)
Definition: Material.cpp:549
void enableVScrollAnim(bool flg)
Definition: Material.cpp:543
float getParameterMin(System::String^ slotname, int channel)
Definition: Material.cpp:391
UNIFORMPARAMTYPE getSlotType(System::String^ name)
Definition: Material.cpp:319
void setTextureFileName(System::String^ slotname, System::String^ texfilename)
Definition: Material.cpp:214
void setDefByText(System::String^ text)
Definition: Material.cpp:494
bool isEmissiveLinkBuildingLight()
Definition: Material.cpp:531
void setUVStepUseModelUVOrigin(bool v)
Definition: Material.cpp:550
Material(bool skinned, System::String^ shadername, System::Guid guid)
Definition: Material.cpp:5
static float getCommonOutlineWidth()
Definition: Material.h:132
System::String getTextureFileName(System::String^ slotname)
Definition: Material.cpp:431
void setOutlineColor(Color color)
Definition: Material.h:100
float getParameterF(System::String^ slotname, int channel)
Definition: Material.cpp:337
void setParameterI(System::String^ slotname, int x, int y, int z, int w)
Definition: Material.cpp:99
System::String getName()
Definition: Material.cpp:57
System::String getShaderName()
Definition: Material.cpp:232
void removeRef()
Definition: Material.cpp:570
float getEmissiveBlinkSpeed()
Definition: Material.cpp:530
void setReceiveDecal(bool flg)
Definition: Material.h:121
void setParameterF(System::String^ slotname, float x, float y, float z, float w)
Definition: Material.cpp:84
bool isEnableVScrollAnim()
Definition: Material.cpp:521
void setUVStepFrameCount(unsigned int v)
Definition: Material.cpp:548
int getParameterI(System::String^ slotname, int channel)
Definition: Material.cpp:356
int getEnumCount(System::String^ slotname)
Definition: Material.cpp:170
SharpKmyMath::Vector2 getUVOffset()
Definition: Material.cpp:538
bool getParameterB(System::String^ slotname)
Definition: Material.cpp:375
float getParameterMax(System::String^ slotname, int channel)
Definition: Material.cpp:411
void setName(System::String^ name)
Definition: Material.cpp:48
void enableEmissiveBlink(bool flg)
Definition: Material.cpp:551
void setShader(System::String^ shadername)
Definition: Material.cpp:74
static void setCommonDrawOutlineEnable(bool flg)
Definition: Material.h:128
bool isEnableUScrollAnim()
Definition: Material.cpp:519
static int getMaterialTextureNumMax()
Definition: Material.h:26
void setSortIndex(int val)
Definition: Material.h:71
bool getReceiveDecal()
Definition: Material.h:122
static void setCommonOutlineWidth(float w)
Definition: Material.h:136
bool isEnableUVStepAnim()
Definition: Material.cpp:523
void setOutlineWidth(float w)
Definition: Material.h:91
Shader getShader()
Definition: Material.cpp:67
static void setCommonOutlineColor(Color color)
Definition: Material.h:145
void setUDiv(unsigned int v)
Definition: Material.cpp:546
void setDistanceFadeEnable(bool flg)
Definition: Material.h:119
bool isEnableEmissiveBlink()
Definition: Material.cpp:529
void setTexture(System::String^ slotname, Texture^ tex)
Definition: Material.cpp:129
void setOverrideOutlineSetting(bool flg)
Definition: Material.h:110
void addRef()
Definition: Material.cpp:558
unsigned int getUDiv()
Definition: Material.cpp:524
void setUScrollSpeed(float v)
Definition: Material.cpp:542
System::String getEnumString(System::String^ slotname, int index)
Definition: Material.cpp:191
bool getDrawOutlineEnable()
Definition: Material.h:86
float getVScrollSpeed()
Definition: Material.cpp:522
bool getDistanceFadeEnable()
Definition: Material.h:120
void setCullType(CULLTYPE t)
Definition: Material.h:77
void enableUVStepAnim(bool flg)
Definition: Material.cpp:545
float getUScrollSpeed()
Definition: Material.cpp:520
kmyGfx::Material * obj
Definition: Material.h:157
void enableEmissiveLinkBuildingLight(bool flg)
Definition: Material.cpp:553
CULLTYPE getCullType()
Definition: Material.h:76
static Color getCommonOutlineColor()
Definition: Material.h:140
bool isEnableSetSortIndex()
Definition: Material.cpp:533
UNIFORMPARAMTYPE
Definition: GfxTypes.h:125
CULLTYPE
Definition: GfxTypes.h:26