open source

This commit is contained in:
lvfulong
2020-11-11 16:17:13 +08:00
parent 4d989f3ecb
commit bc4ca748de
2441 changed files with 623057 additions and 2 deletions
@@ -0,0 +1,51 @@
/**
@file JSShaderActiveInfo.cpp
@brief
@author James
@version 1.0
@date 2018_3_27
*/
#include "JSShaderActiveInfo.h"
namespace laya
{
ADDJSCLSINFO(JSShaderActiveInfo, JSObjNode);
//------------------------------------------------------------------------------
JSShaderActiveInfo::JSShaderActiveInfo()
{
m_nType = m_nSize = 0;
AdjustAmountOfExternalAllocatedMemory( 64 );
JCMemorySurvey::GetInstance()->newClass( "JSShaderActiveInfo",64,this );
}
//------------------------------------------------------------------------------
JSShaderActiveInfo::~JSShaderActiveInfo()
{
JCMemorySurvey::GetInstance()->releaseClass( "JSShaderActiveInfo",this );
}
//------------------------------------------------------------------------------
int JSShaderActiveInfo::getType()
{
return m_nType;
}
int JSShaderActiveInfo::getSize()
{
return m_nSize;
}
const char* JSShaderActiveInfo::getName()
{
return m_sName.c_str();
}
void JSShaderActiveInfo::exportJS()
{
JSP_CLASS("shaderActiveInfo", JSShaderActiveInfo);
JSP_ADD_PROPERTY_RO(type, JSShaderActiveInfo, getType);
JSP_ADD_PROPERTY_RO(size, JSShaderActiveInfo, getSize);
JSP_ADD_PROPERTY_RO(name, JSShaderActiveInfo, getName);
JSP_INSTALL_CLASS("shaderActiveInfo", JSShaderActiveInfo);
}
}
//------------------------------------------------------------------------------
//-----------------------------END FILE--------------------------------