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