52 #define SDL_KEYDOWN_SDL2 0x300
53 #define SDLK_ESCAPE 27
54 #define SDLK_SCANCODE_MASK (1<<30)
55 #define SDLK_F12 ( 69 | SDLK_SCANCODE_MASK )
123 if ( obj_labelname!=labelname ) {
131 return ( mobid > -1 );
145 mindex+= relativeindex;
150 mindex+= relativeindex;
156 mindex+= relativeindex;
164 mindex+= relativeindex;
168 mindex+= relativeindex;
172 mindex+= relativeindex;
187 if (mindex==-1)
MODebug2->
Error(
"moConsole::RelativeToGeneralIndex > type not found");
204 if (p_IODeviceManager!=NULL)
213 MOint p_render_to_texture_mode,
216 MO_HANDLE p_OpWindowHandle,
217 MO_DISPLAY p_Display) {
220 if (pResourceManager==NULL) {
232 p_render_to_texture_mode,
233 p_screen_width, p_screen_height,
234 p_render_width, p_render_height,
261 MO_HANDLE p_OpWindowHandle,
262 MO_DISPLAY p_Display)
280 if( p_pIODeviceManager == NULL ) {
322 if ( rendermode !=
moText(
"") ) {
323 if (rendermode==
moText(
"RENDERMANAGER_MODE_NORMAL")) {
324 MODebug2->
Message(
"moConsole :: Render Mode forced to RENDERMANAGER_MODE_NORMAL");
326 }
else if (rendermode==
moText(
"RENDERMANAGER_MODE_FRAMEBUFFER")) {
327 MODebug2->
Message(
"moConsole :: Render Mode forced to RENDERMANAGER_MODE_FRAMEBUFFER");
329 }
else if (rendermode==
moText(
"RENDERMANAGER_MODE_VDPAU")) {
330 MODebug2->
Message(
"moConsole :: Render Mode forced to RENDERMANAGER_MODE_VDPAU");
342 if (renderwidth!=
moText(
"") && renderheight!=
moText(
"")) {
343 int i_render_width = atoi(renderwidth);
344 int i_render_height = atoi(renderheight);
346 if ( 0<i_render_width && i_render_width<6144 ) {
347 p_render_width = i_render_width;
350 if ( 0<i_render_height && i_render_height<6144 ) {
351 p_render_height = i_render_height;
355 if (screenwidth!=
moText(
"") && screenheight!=
moText(
"")) {
356 int i_screenwidth = atoi(screenwidth);
357 int i_screenheight = atoi(screenheight);
359 if ( 0<i_screenwidth && i_screenwidth<6144 ) {
360 p_screen_width = i_screenwidth;
363 if ( 0<i_screenheight && i_screenheight<6144 ) {
364 p_screen_height = i_screenheight;
378 +
moText(
" app path: ") + p_apppath
379 +
moText(
" data path: ") + p_datapath
389 p_render_to_texture_mode,
390 p_screen_width, p_screen_height,
391 p_render_width, p_render_height,
458 if (m_bMasterEffects_On) {
498 pMessageStayingAlive->Add(
moData(
"consoleget" ) );
601 moOutlets* poutlets = psrcobject->
GetOutlets();
604 for( j=0; j<poutlets->Count(); j++) {
606 moOutlet* p_outlet = poutlets->Get(j);
610 for( k = 0; k < p_connections->Count(); k++ ) {
616 bool connector_found;
619 connector_found =
false;
620 object_found =
false;
634 if ( pdstobject->
GetLabelName()==DestinationMoldeoLabelName ) {
638 for( m = 0; m < pdstobject->
GetInlets()->Count() ; m++) {
641 connector_found =
true;
645 moText(
"moConsole::LoadConnections > Object <") +
649 moText(
"> connected succesfully to") +
665 moText(
"moConsole::LoadConnections > From Object <") +
668 DestinationMoldeoLabelName +
669 moText(
"> object label not found")
671 }
else if (!connector_found) {
673 moText(
"moConsole::LoadConnections > From Object <") +
676 DestinationMoldeoLabelName +
678 DestinationConnectorLabelName +
679 moText(
"> connector label not found")
702 moText text,fxname,cfname,lblname,keyname;
704 bool activate =
true;
720 for( i=0; i < N; i++) {
734 moFile FullCF( completecfname );
775 moText text, fxname, cfname, lblname, keyname;
776 MOint devices, i, ndevices;
777 bool activate =
true;
787 for( i=0; i<ndevices; i++) {
800 moFile FullCF( completecfname );
836 bool MoldeoAPISender =
false;
837 bool MoldeoAPIListener =
false;
843 if (pDevice->
GetName()==
"netoscin" ) {
846 MoldeoAPIListener =
true;
847 if (MoldeoAPISender)
break;
853 if ( pDevice->
GetName()==
"netoscout" ) {
854 if ( pDevice->
GetConfig()->
Text(
"hosts" ) ==
"127.0.0.1" ) {
856 MoldeoAPISender =
true;
857 if (MoldeoAPIListener)
break;
867 if (!MoldeoAPIListener) {
884 if (!MoldeoAPISender) {
909 moText text, fxname, cfname, lblname, keyname;
911 bool activate =
true;
925 for( i=0; i<N; i++) {
935 moFile FullCF( completecfname );
945 pmastereffect->
Init();
948 }
else MODebug2->
Error(
moText(
"moConsole::LoadMasterEffects > Couldn't load specific Master-Effect:") +
moText(fxname));
976 moText text,fxname,cfname,lblname,keyname;
978 bool activate =
true;
992 for( i=0; i<N; i++) {
1006 moFile FullCF( completecfname );
1017 if (ppreeffect->
Init()) {
1022 MOint paramindex, valueindex;
1062 moText text,fxname,cfname,lblname,keyname;
1064 bool activate =
true;
1078 for( i=0; i < N; i++) {
1089 moFile FullCF( completecfname );
1139 moText text, fxname, cfname, lblname, keyname;
1141 bool activate =
true;
1155 for( i=0; i<N; i++) {
1166 moFile FullCF( completecfname );
1208 moText resname, cfname, lblname, keyname;
1209 bool activate =
true;
1213 int resource_valueindex = -1;
1217 for(
MOuint r=0; r<presources.GetValuesCount(); r++) {
1223 if (presources[
MO_SELECTED].GetSubValueCount()>=4)
1225 if (presources[
MO_SELECTED].GetSubValueCount()>=6)
1236 resource_valueindex = r;
1242 if (presource->
Init()) {
1243 if (activate) presource->
Activate();
1249 presources.NextValue();
1292 if( p_effect !=NULL) {
1312 bool res = p_effect->
Init();
1368 if( p_effect!=NULL ) {
1381 text =
moText(
"Turning on MasterEffects...");
1389 if( p_effect!=NULL ) {
1426 if( pEffect!=NULL ) {
1461 glMatrixMode(GL_MODELVIEW);
1469 glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
1482 moText savename, framesavename;
1492 if (RenderMan==NULL)
return;
1517 pre_effect_on =
true;
1656 if (RenderMan) RenderMan->
EndDraw();
1675 moText savename, framesavename;
1681 if (RenderMan==NULL)
return;
1683 if (interface_width!=0 && interface_height!=0) RenderMan->
SetInterfaceView( interface_width, interface_height);
1757 cout <<
"no renderman!" << endl;
1797 while(event!=NULL) {
1808 if ( event->reservedvalue0 ==
SDLK_F12 ) {
1815 event =
event->next;
1848 if (pPanel && pChannel)
1858 if ( pEffect && pEffect->
Activated() ) {
1902 if (p_pDataMessage==NULL) {
1903 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > DataMessage is NULL");
1907 if (p_pDataMessage->Count()==0) {
1908 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > DataMessage is empty");
1911 moData MoldeoApiCommandData = p_pDataMessage->Get(0);
1912 moText MoldeoAPICommand = p_pDataMessage->Get(0).ToText();
1913 std::string skey = (
char*)MoldeoAPICommand;
1943 moText argRed,argGreen,argBlue,argAlpha;
1946 moText EffectStateJSON =
"";
1947 moText FullObjectJSON =
"";
1948 moText fieldSeparation =
",";
1953 moData pData(
"PRESENTATION");
1956 switch( MappedType ) {
1969 arg0 = p_pDataMessage->Get(1).ToText();
1975 pConfig = MObject->GetConfig();
1977 arg1Text = p_pDataMessage->Get(2).ToText();
1980 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > fxObject not found for " + arg0 );
1986 MObject->GetConfig()->SaveConfig();
1998 arg2Text = p_pDataMessage->Get(3).ToText();
2001 bool issubvalue =
false;
2002 if (arg1Text==
"color_0") { arg1Text =
"color"; subvalue=0;issubvalue=
true; }
2003 if (arg1Text==
"color_1") { arg1Text =
"color"; subvalue=1;issubvalue=
true; }
2004 if (arg1Text==
"color_2") { arg1Text =
"color"; subvalue=2;issubvalue=
true; }
2005 if (arg1Text==
"color_3") { arg1Text =
"color"; subvalue=3;issubvalue=
true; }
2006 if (arg1Text==
"particlecolor_0") { arg1Text =
"particlecolor"; subvalue=0;issubvalue=
true; }
2007 if (arg1Text==
"particlecolor_1") { arg1Text =
"particlecolor"; subvalue=1;issubvalue=
true; }
2008 if (arg1Text==
"particlecolor_2") { arg1Text =
"particlecolor"; subvalue=2;issubvalue=
true; }
2009 if (arg1Text==
"particlecolor_3") { arg1Text =
"particlecolor"; subvalue=3;issubvalue=
true; }
2014 arg2Int = atoi( arg2Text );
2017 if ( MappedType==
MO_ACTION_VALUE_ADD && (
int)rParam.GetValuesCount()<=arg2Int && pConfig ) {
2019 MODebug2->
Message(
"moConsole::ProcessMoldeoAPIMessage Adding > value for "+MObject->GetLabelName()+
" preconfig: "+arg2Text);
2020 moText pName = rParam.GetParamDefinition().GetName();
2023 moValue newValue = rParam.GetValue( rParam.GetValuesCount()-1 );
2030 int valcount = arg2Int - rParam.GetValuesCount() + 1;
2031 for(
int sum=0; sum < valcount ; sum++ ) {
2032 MODebug2->
Message(
"moConsole::ProcessMoldeoAPIMessage > Adding Value at index:" +
IntToStr( rParam.GetValuesCount() )
2033 +
" newvalue: " + newValue.
ToJSON() );
2034 rParam.AddValue( newValue );
2035 SetValue( MObject->GetId(), rParam.GetParamDefinition().GetIndex(), rParam.GetValuesCount()-1, newValue );
2056 if (pConfig==NULL)
return -1;
2058 bool param_exist =
false;
2063 if ( arg2Int < pConfig->GetPreConfCount() ) {
2074 if ( rParamx.GetValuesCount()>1 ) {
2076 for( ip=0, param_exist =
false; ip< (int)preCfg.
m_PreconfIndexes.Count(); ip++ ) {
2078 if (preIndexA.
m_ParamName == rParamx.GetParamDefinition().GetName() ) {
2090 preIndexA.
m_ParamName = rParamx.GetParamDefinition().GetName();
2091 preIndexA.
m_ParamIndex = rParamx.GetParamDefinition().GetIndex();
2092 preIndexA.
m_ValueIndex = momin( rParamx.GetValuesCount()-1, k );
2108 MODebug2->
Message(
"moConsole::ProcessMoldeoAPIMessage > Adding Value > a new value");
2122 moValue& rValue( rParam.GetValue(arg2Int) );
2125 rParam.DeleteValue( arg2Int );
2128 if (subvalue==-1) subvalue = 0;
2132 arg3Text = p_pDataMessage->Get(4).
ToText();
2134 arg3Text = VB.ToText();
2137 MODebug2->
Message(
"MO_ACTION_VALUE_SET settings: arg1Text (param):" + arg1Text
2138 +
" arg2Text (preconf): ["+arg2Text+
"] arg2Int: "+
IntToStr(arg2Int)
2139 +
" arg3Text (val): " + arg3Text
2140 +
" VB( subvalue: "+
IntToStr(subvalue)+
" ): " + VB.TypeToText() +
")"
2143 if (rParam.GetParamDefinition().GetType()==
MO_PARAM_COLOR && issubvalue==false ) {
2146 argGreen = arg3Text;
2150 if (arg3Text.Left(0)==
"#") {
2159 rValue.GetSubValue(0).SetFun(
FloatToStr((
float)r*1.0/255.0) );
2160 rValue.GetSubValue(1).SetFun(
FloatToStr((
float)g*1.0/255.0) );
2161 rValue.GetSubValue(2).SetFun(
FloatToStr((
float)b*1.0/255.0) );
2165 else {
switch(VB.Type()) {
2167 VB.SetFun( arg3Text );
2175 switch(rParam.GetParamDefinition().GetType()) {
2177 VB.SetText(arg3Text);
2188 moFile importFile( arg3Text );
2192 VB.SetText(arg3Text);
2201 moFile importFile( arg3Text );
2205 VB.SetText(arg3Text);
2213 VB.SetInt( (
int)atoi(arg3Text) );
2216 VB.SetInt( (
int)atoi(arg3Text) );
2219 VB.SetFloat( (
float)atof(arg3Text) );
2222 VB.SetDouble( (
double)atof(arg3Text) );
2225 VB.SetInt( (
char)atoi(arg3Text) );
2228 VB.SetLong( (
long)atoi(arg3Text) );
2235 moValue fullValueToCopy = rValue;
2238 RefreshValue( MObject->GetId(), rParam.GetParamDefinition().GetIndex(), arg2Int, true );
2241 SetValue( MObject->GetId(), rParam.GetParamDefinition().GetIndex(), arg2Int, fullValueToCopy );
2248 moText fullValueJSON = rValue.ToJSON();
2251 if (pMessageToSend) {
2252 pMessageToSend->Add(
moData(
"valueget") );
2253 pMessageToSend->Add(
moData( arg0 ) );
2254 pMessageToSend->Add(
moData( arg1Text ) );
2255 pMessageToSend->Add(
moData( arg2Text ) );
2256 pMessageToSend->Add(
moData( fullValueJSON ) );
2270 arg0 = p_pDataMessage->Get(1).ToText();
2278 MoldeoApiCommandData.
SetText(
"objectgetstate" );
2279 p_pDataMessage->Set( 0, MoldeoApiCommandData );
2280 p_pDataMessage->Set( 2,
moData(
"") );
2284 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_ENABLE > [" + arg0+
"] not found!" );
2290 arg0 = p_pDataMessage->Get(1).ToText();
2298 MoldeoApiCommandData.
SetText(
"objectgetstate" );
2299 p_pDataMessage->Set( 0, MoldeoApiCommandData );
2300 p_pDataMessage->Set( 2,
moData(
"") );
2304 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_ENABLE > [" + arg0+
"] not found!" );
2310 arg0 = p_pDataMessage->Get(1).ToText();
2313 moMobState ObjectState = MObject->GetState();
2317 if (pMessageToSend) {
2318 pMessageToSend->Add(
moData(
"objectgetstate") );
2320 pMessageToSend->Add(
moData( arg0 ) );
2321 pMessageToSend->Add(
moData( ObjectStateJSON ) );
2329 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_GETSTATE > [" + arg0+
"] not found!" );
2337 arg0 = p_pDataMessage->Get(1).ToText();
2345 MoldeoApiCommandData.
SetText(
"effectgetstate" );
2346 p_pDataMessage->Set( 0, MoldeoApiCommandData );
2347 p_pDataMessage->Set( 2,
moData(
"") );
2351 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_ENABLE > [" + arg0+
"] not found!" );
2357 arg0 = p_pDataMessage->Get(1).ToText();
2365 MoldeoApiCommandData.
SetText(
"effectgetstate" );
2366 p_pDataMessage->Set( 0, MoldeoApiCommandData );
2367 p_pDataMessage->Set( 2,
moData(
"") );
2371 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_DISABLE > [" + arg0+
"] not found!" );
2377 arg0 = p_pDataMessage->Get(1).ToText();
2381 EffectStateJSON = EffectState.
ToJSON();
2384 if (pMessageToSend) {
2385 pMessageToSend->Add(
moData(
"effectgetstate") );
2387 pMessageToSend->Add(
moData( arg0 ) );
2388 pMessageToSend->Add(
moData( EffectStateJSON ) );
2396 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_GETSTATE > [" + arg0+
"] not found!" );
2402 if (p_pDataMessage->Count()<4) {
2405 arg0 = p_pDataMessage->Get(1).ToText();
2408 arg1Text = p_pDataMessage->Get(2).ToText();
2409 arg2Text = p_pDataMessage->Get(3).ToText();
2411 if ( arg1Text ==
moText(
"alpha") ) {
2412 if ( arg2Text ==
moText(
"increment") ) {
2415 fxObject->
Alpha( 0.01 );
2417 }
else if ( arg2Text ==
moText(
"decrement") ) {
2420 fxObject->Alpha( -0.01 );
2422 }
else if( p_pDataMessage->Get(3).Type() !=
MO_DATA_TEXT ) {
2423 EffectState = fxObject->GetEffectState();
2424 EffectState.alpha = p_pDataMessage->Get(3).Float();
2426 fxObject->SetEffectState( EffectState );
2427 EffectState = fxObject->GetEffectState();
2432 if ( arg1Text ==
moText(
"tempo") ) {
2433 if ( arg2Text ==
moText(
"increment") ) {
2435 fxObject->TempoDelta( 0.01 );
2436 }
else if ( arg2Text ==
moText(
"decrement") ) {
2438 fxObject->TempoDelta( -0.01 );
2439 }
else if ( arg2Text ==
moText(
"beatpulse") ) {
2441 fxObject->BeatPulse();
2442 }
else if( p_pDataMessage->Get(3).Type() !=
MO_DATA_TEXT ) {
2443 fxObject->SetTempoDelta( p_pDataMessage->Get(3).Float() );
2447 EffectState = fxObject->GetEffectState();
2451 MoldeoApiCommandData.
SetText(
"effectgetstate" );
2452 p_pDataMessage->Set( 0, MoldeoApiCommandData );
2453 p_pDataMessage->Set( 2,
moData(
"") );
2457 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_SETSTATE > [" + arg0+
"] not found!" );
2463 arg0 = p_pDataMessage->Get(1).ToText();
2469 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_PLAY > [" + arg0+
"] not found!" );
2475 arg0 = p_pDataMessage->Get(1).ToText();
2481 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_PAUSE > [" + arg0+
"] not found!" );
2487 arg0 = p_pDataMessage->Get(1).ToText();
2493 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_EFFECT_STOP > [" + arg0+
"] not found!" );
2506 if (p_pDataMessage->Count()<4) {
2509 arg0 = p_pDataMessage->Get(1).ToText();
2512 arg1Text = p_pDataMessage->Get(2).ToText();
2513 arg2Text = p_pDataMessage->Get(3).ToText();
2516 moParam& pparam( MObject->GetConfig()->GetParam( arg1Text ));
2517 if (arg2Text==
"property") {
2518 arg3Text = p_pDataMessage->Get(4).ToText();
2520 }
else if(arg2Text==
"interpolation") {
2522 arg3Text = p_pDataMessage->Get(4).ToText();
2524 }
else if(arg2Text==
"duration") {
2525 arg3Text = p_pDataMessage->Get(4).ToText();
2527 pparam.GetParamDefinition().GetInterpolation().
SetDuration( atoi(arg3Text) );
2530 SetParam( MObject->GetId(), pparam.GetParamDefinition().GetIndex(), pparam.GetParamDefinition() );
2534 MoldeoApiCommandData.
SetText(
"paramget" );
2535 p_pDataMessage->Set( 0, MoldeoApiCommandData );
2536 p_pDataMessage->Set( 1,
moData(arg0) );
2537 p_pDataMessage->Set( 2,
moData(arg1Text) );
2538 p_pDataMessage->Set( 3,
moData(
"") );
2539 p_pDataMessage->Set( 4,
moData(
"") );
2547 arg0 = p_pDataMessage->Get(1).ToText();
2553 arg1Text = p_pDataMessage->Get(2).ToText();
2558 moParam mParam = MObject->GetConfig()->GetParam(arg1Text);
2565 if (pMessageToSend) {
2566 pMessageToSend->Add(
moData(
"paramget") );
2568 pMessageToSend->Add(
moData( arg0 ) );
2569 pMessageToSend->Add(
moData( FullParamJSON ) );
2587 arg0 = p_pDataMessage->Get(1).ToText();
2588 arg1Int = p_pDataMessage->Get(2).Int();
2593 if ( 0 <= arg1Int && arg1Int<MObject->
GetConfig()->GetPreConfCount()) {
2594 this->
SetPreconf( MObject->GetId(), arg1Int );
2596 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > MO_ACTION_PRECONFIG_SET > preconfig index [" +
IntToStr(arg1Int)+
"] not found!" );
2600 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > MO_ACTION_PRECONFIG_SET > Moldeo Object [" + arg0+
"] not found!" );
2606 arg0 = p_pDataMessage->Get(1).ToText();
2607 arg1Int = p_pDataMessage->Get(2).Int();
2612 if ( 0 <= arg1Int && arg1Int<MObject->
GetConfig()->GetPreConfCount()) {
2616 MObject->GetConfig()->AddPreconfig( arg1Int );
2617 FullObjectJSON = MObject->ToJSON();
2621 if (pMessageToSend) {
2622 pMessageToSend->Add(
moData(
"objectget") );
2624 pMessageToSend->Add(
moData( arg0 ) );
2625 pMessageToSend->Add(
moData( FullObjectJSON ) );
2634 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > MO_ACTION_PRECONFIG_SET > Moldeo Object [" + arg0+
"] not found!" );
2671 arg0 = p_pDataMessage->Get(1).ToText();
2675 FullObjectJSON = fxObject->
ToJSON();
2681 FullObjectJSON =
"{ 'object': " + MObject->ToJSON();
2682 FullObjectJSON+=
"}";
2687 if (fxObject || MObject) {
2689 if (pMessageToSend) {
2690 pMessageToSend->Add(
moData(
"objectget") );
2692 pMessageToSend->Add(
moData( arg0 ) );
2693 pMessageToSend->Add(
moData( FullObjectJSON ) );
2702 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_GET > [" + arg0+
"] not found!" );
2708 arg0 = p_pDataMessage->Get(1).ToText();
2712 FullObjectJSON =
"{ 'objectconfig': " + MObject->GetConfig()->ToJSON();
2713 FullObjectJSON+=
"}";
2717 if (pMessageToSend) {
2718 pMessageToSend->Add(
moData(
"objectgetconfig") );
2720 pMessageToSend->Add(
moData( arg0 ) );
2721 pMessageToSend->Add(
moData( FullObjectJSON ) );
2730 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_GETCONFIG > [" + arg0+
"] not found!" );
2736 arg0 = p_pDataMessage->Get(1).ToText();
2737 arg1Int = p_pDataMessage->Get(2).Int();
2741 moPreConfig pC = MObject->GetConfig()->GetPreconfig(arg1Int);
2742 FullObjectJSON =
"{ 'preconfig': " + pC.
ToJSON();
2743 FullObjectJSON+=
", 'position': "+
IntToStr(arg1Int)+
" }";
2747 if (pMessageToSend) {
2748 pMessageToSend->Add(
moData(
"objectgetpreconfig") );
2750 pMessageToSend->Add(
moData( arg0 ) );
2751 pMessageToSend->Add(
moData( FullObjectJSON ) );
2760 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_GETPRECONFIG > [" + arg0+
"] not found!" );
2767 arg0 = p_pDataMessage->Get(1).ToText();
2768 arg1Int = p_pDataMessage->Get(2).Int();
2769 arg2Int = p_pDataMessage->Get(3).Int();
2771 moPreConfig pC = fxObject->GetConfig()->GetPreconfig(arg1Int);
2773 FullObjectJSON =
"{ 'preconfig': " + pC.
ToJSON();
2774 FullObjectJSON+=
", 'position': "+
IntToStr(arg1Int)+
" }";
2778 if (pMessageToSend) {
2779 pMessageToSend->Add(
moData(
"objectgetpreconfigs") );
2781 pMessageToSend->Add(
moData( arg0 ) );
2782 pMessageToSend->Add(
moData( FullObjectJSON ) );
2791 MODebug2->
Error(
"moConsole::ProcessMoldeoAPIMessage > "+MoldeoAPICommand+
" > MO_ACTION_OBJECT_GETPRECONFIGS > [" + arg0+
"] not found!" );
2818 if (pMessageToSend) {
2819 pMessageToSend->Add(
moData(
"consolescreenshot") );
2820 pMessageToSend->Add(
moData(
"success") );
2835 if (pMessageToSend) {
2836 pMessageToSend->Add(
moData(
"consolepreviewshot") );
2837 pMessageToSend->Add(
moData(
"success") );
2859 if (pMessageToSend) {
2860 pMessageToSend->Add(
moData(
"consolesave") );
2861 pMessageToSend->Add(
moData(
"success") );
2871 arg0 = p_pDataMessage->Get(1).ToText();
2882 molFile.GetFullName() );
2884 +
" mol file:" + molFile.GetFullName() );
2891 if (pMessageToSend) {
2892 pMessageToSend->Add(
moData(
"consolesaveas") );
2893 pMessageToSend->Add(
moData(
"success") );
2895 pMessageToSend->Add(
moData(
"{\"projectfullpath\":\""+arg0 +
"\"}" ) );
2901 if (pMessageToSend) {
2902 pMessageToSend->Add(
moData(
"consolesaveas") );
2903 pMessageToSend->Add(
moData(
"failed") );
2918 if (pMessageToSend) {
2919 pMessageToSend->Add(
moData(
"consolegetstate") );
2920 pMessageToSend->Add(
moData(
"__console__") );
2921 pMessageToSend->Add(
moData( EffectStateJSON ) );
2938 if (pMessageToSend) {
2939 pMessageToSend->Add(
moData(
"consolegetstate") );
2940 pMessageToSend->Add(
moData(
"__console__" ) );
2941 pMessageToSend->Add(
moData( EffectStateJSON ) );
2957 if (pMessageToSend) {
2958 pMessageToSend->Add(
moData(
"consolegetstate") );
2959 pMessageToSend->Add(
moData(
"__console__" ) );
2960 pMessageToSend->Add(
moData( EffectStateJSON ) );
2976 if (pMessageToSend) {
2977 pMessageToSend->Add(
moData(
"consolerecordsession") );
2978 pMessageToSend->Add(
moData(
"__console__" ) );
2979 pMessageToSend->Add(
moData( EffectStateJSON ) );
2989 arg0 = p_pDataMessage->Get(1).ToText();
2993 moText rendered_folder =
DataMan()->GetSession()->GetRenderedFolder();
2994 moText RenderSessionInfo =
"{";
2998 RenderSessionInfo+=
moText(
"'consolestate': ") + EffectStateJSON;
2999 RenderSessionInfo+=
moText(
",") +
moText(
"'session': ") +
DataMan()->GetSession()->ToJSON();
3000 RenderSessionInfo+=
"}";
3004 if (pMessageToSend) {
3005 pMessageToSend->Add(
moData(
"consolerendersession") );
3006 pMessageToSend->Add(
moData(
"__console__" ) );
3007 pMessageToSend->Add(
moData( RenderSessionInfo ) );
3017 FullObjectJSON =
"{";
3024 FullObjectJSON+= fieldSeparation+
"'MapObjects': {";
3025 fieldSeparation =
"";
3036 FullObjectJSON+= fieldSeparation+
"'"+Mobj->
GetLabelName()+
"': {";
3037 FullObjectJSON+=
"'name': '" + Mobj->
GetName() +
"',";
3039 FullObjectJSON+=
"'key': '" + Mobj->
GetKeyName() +
"',";
3041 FullObjectJSON+=
"}";
3042 fieldSeparation =
",";
3045 FullObjectJSON+=
"}";
3047 FullObjectJSON+=
"}";
3050 if (pMessageToSend) {
3051 pMessageToSend->Add(
moData(
"consoleget") );
3052 pMessageToSend->Add(
moData(
"__console__") );
3053 pMessageToSend->Add(
moData( FullObjectJSON ) );
3071 if (pMessageToSend) {
3072 pMessageToSend->Add(
moData(
"consolegetstate") );
3073 pMessageToSend->Add(
moData(
"__console__" ) );
3074 pMessageToSend->Add(
moData( EffectStateJSON ) );
3105 moText confignamecomplete =
"";
3127 if (pFatherMOB && pFatherMOB->
GetName()==
"scene") {
3134 switch( (
int) pMobDef.
GetType()) {
3199 Error(
moText(
"moConsole::NewMob: No mob type defined."));
3210 confignamecomplete +=
moText(
".cfg");
3215 moFile pFile(confignamecomplete);
3240 Error(
moText(
"moConsole::NewMob Couldn't initialized effect" ) );
3247 effectvalue.AddSubValue( pMOB->
GetLabelName() ,
"TXT" );
3248 effectvalue.AddSubValue(
"0" ,
"NUM" );
3250 effectvalue.AddSubValue(
"1" ,
"NUM" );
3252 effectvalue.AddSubValue(
"0" ,
"NUM" );
3257 effectvalue.AddSubValue(
"" ,
"TXT" );
3263 bool validity = MDef.
IsValid();
3264 if (validity==
false) {
3265 Error(
moText(
"moConsole::NewMob:: Source > MobDefinition Invalid") );
3272 Error(
moText(
"moConsole::NewMob Couldn't create default configuration") );
3276 Error(
moText(
"moConsole::NewMob Config filename undefined" ) );
3294 return NewMob( pMobDef );
3304 int array_count = 0;
3335 Error(
"Sorry. Changing order of resources is not allowed yet." );
3345 if ( position >= 0 && position < array_count ) {
3359 int diff = position - index_object;
3362 }
else if (diff>0) {
3367 for(
int o = index_object; o < (position); o++ ) {
3404 }
else if (diff<0) {
3409 for(
int o = index_object ; o >= (position+1) ; o-- ) {
3458 moText filenameduplicate;
3462 moText labelnameduplicate;
3470 filename = filename;
3471 labelname = labelname;
3473 filenameduplicate = filename +
moText(
".cfg");
3478 while( newfile.
Exists() ) {
3479 filenameduplicate = filename +
IntToStr( count );
3487 labelnameduplicate = labelname;
3492 labelnameduplicate = labelname +
IntToStr( count );
3500 mStatus =
NewMob( pMobDef );
3530 if (pFatherMOB && pFatherMOB->
GetName()==
"scene") {
3540 if (pMOB && pFxManager) {
3553 switch( (
int)pMOB->
GetType() ) {
3743 if (pEvents) actual = pEvents->
First;
3746 while(actual!=NULL) {
3756 if (mpDataMessage) {
3758 delete mpDataMessage;
3781 while(actual!=NULL) {
3796 this->ProcessMoldeoAPIMessage( MoldeoAPIMessage );
3837 return p_configdefinition;
3843 if(!stricmp( name,
"SDLK_1" ) )
return 0;
3844 else if(!stricmp( name,
"SDLK_2" ) )
return 1;
3845 else if(!stricmp( name,
"SDLK_3" ) )
return 2;
3846 else if(!stricmp( name,
"SDLK_4" ) )
return 3;
3847 else if(!stricmp( name,
"SDLK_5" ) )
return 4;
3848 else if(!stricmp( name,
"SDLK_6" ) )
return 5;
3849 else if(!stricmp( name,
"SDLK_7" ) )
return 6;
3850 else if(!stricmp( name,
"SDLK_8" ) )
return 7;
3851 else if(!stricmp( name,
"SDLK_9" ) )
return 8;
3852 else if(!stricmp( name,
"SDLK_10" ) )
return 9;
3853 else if(!stricmp( name,
"SDLK_q" ) )
return 10;
3854 else if(!stricmp( name,
"SDLK_w" ) )
return 11;
3855 else if(!stricmp( name,
"SDLK_e" ) )
return 12;
3856 else if(!stricmp( name,
"SDLK_r" ) )
return 13;
3857 else if(!stricmp( name,
"SDLK_t" ) )
return 14;
3858 else if(!stricmp( name,
"SDLK_y" ) )
return 15;
3859 else if(!stricmp( name,
"SDLK_u" ) )
return 16;
3860 else if(!stricmp( name,
"SDLK_i" ) )
return 17;
3861 else if(!stricmp( name,
"SDLK_o" ) )
return 18;
3862 else if(!stricmp( name,
"SDLK_p" ) )
return 19;
3863 else if(!stricmp( name,
"SDLK_a" ) )
return 20;
3864 else if(!stricmp( name,
"SDLK_s" ) )
return 21;
3865 else if(!stricmp( name,
"SDLK_d" ) )
return 22;
3866 else if(!stricmp( name,
"SDLK_f" ) )
return 23;
3867 else if(!stricmp( name,
"SDLK_g" ) )
return 24;
3868 else if(!stricmp( name,
"SDLK_h" ) )
return 25;
3869 else if(!stricmp( name,
"SDLK_j" ) )
return 26;
3870 else if(!stricmp( name,
"SDLK_k" ) )
return 27;
3871 else if(!stricmp( name,
"SDLK_l" ) )
return 28;
3872 else if(!stricmp( name,
"SDLK_SEMICOLON" ) )
return 29;
3873 else if(!stricmp( name,
"SDLK_z" ) )
return 30;
3874 else if(!stricmp( name,
"SDLK_x" ) )
return 31;
3875 else if(!stricmp( name,
"SDLK_c" ) )
return 32;
3876 else if(!stricmp( name,
"SDLK_v" ) )
return 33;
3877 else if(!stricmp( name,
"SDLK_b" ) )
return 34;
3878 else if(!stricmp( name,
"SDLK_n" ) )
return 35;
3879 else if(!stricmp( name,
"SDLK_m" ) )
return 36;
3880 else if(!stricmp( name,
"SDLK_COMMA" ) )
return 37;
3881 else if(!stricmp( name,
"SDLK_PERIOD" ) )
return 38;
3882 else if(!stricmp( name,
"SDLK_SLASH" ) )
return 39;
3891 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_CONSOLE_PLAY" );
3895 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_CONSOLE_PAUSE" );
3899 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_CONSOLE_STOP" );
3904 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_PRECONFIG_SET" );
3905 SetPreconf( p_session_key.m_ObjectId, p_session_key.m_PreconfId );
3909 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_VALUE_SET" );
3910 SetValue( p_session_key.m_ObjectId, p_session_key.m_ParamId, p_session_key.m_ValueId, p_session_key.m_Value );
3914 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_PARAM_SET" );
3915 SetParam( p_session_key.m_ObjectId, p_session_key.m_ParamId, p_session_key.m_ParamDefinition );
3919 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_EFFECT_ENABLE" );
3924 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_EFFECT_DISABLE" );
3929 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_EFFECT_PLAY" );
3934 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_EFFECT_PAUSE" );
3939 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_EFFECT_STOP" );
3949 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_VALUE_###" );
3955 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type processed: MO_ACTION_CONSOLE_PRESET_###" );
3961 MODebug2->
Message(
"moConsole::ProcessSessionKey > Action Type not processed: " + json );
3981 bool save_success =
true;
3996 moValueBase& vCFG_Effect_Name(
GetConfig()->GetParam( paramindex ).GetValue( valueindex ).GetSubValue(0) );
4005 save_success = save_success && (MObj->
Save(
"" )>0);
4009 save_success = save_success && (res>0);
4024 if (loadedSession==NULL) {
MODebug2->
Error(
"moConsole::ConsoleModeUpdate > no session");
return; }
4042 if (!loadedSession->
Loaded())
4043 if (!loadedSession->
LoadSession()) {
MODebug2->
Error(
"moConsole::ConsoleModeUpdate > no loaded session");
return; }
4077 if (console_timecode==0) {
4085 MODebug2->
Message(
"moConsole::ConsoleModeUpdate > render session: m_ConsoleState.tempo.Duration: " +
IntToStr(console_timecode) );
4197 Param.SetParamDefinition( mpdef );
4214 moValue& Value( Param.GetValue(m_ValueId) );
4236 if (p_Refresh) Object->
RefreshValue( Param, m_ValueId );
4306 switch ( Object->
GetType() ) {
4345 switch ( Object->
GetType() ) {
4434 if (0<=object_id_to_index && object_id_to_index<(
int)
m_MoldeoObjects.Count()) {
4441 if (0<=object_id_to_subscene_index && object_id_to_subscene_index<(
int)
m_MoldeoSceneObjects.Count()) {
4630 lua_State *state = (lua_State *) vm;
4639 lua_State *state = (lua_State *) vm;
4648 lua_State *state = (lua_State *) vm;
4658 lua_State *state = (lua_State *) vm;
4661 int retstate = (int) elstate;
4662 lua_pushnumber( state, (lua_Number) retstate);
4669 lua_State *state = (lua_State *) vm;
4671 char *objectlabelname = (
char *) lua_tostring (state, 1);
4677 lua_pushnumber(state, (lua_Number) objectid );
4688 lua_State *state = (lua_State *) vm;
4690 lua_pushnumber(state, (lua_Number) this->
GetPreset() );
4697 lua_State *state = (lua_State *) vm;
4699 MOint presetid = (
MOint) lua_tonumber (state, 1);
4708 lua_State *state = (lua_State *) vm;
4710 MOint objectid = (
MOint) lua_tonumber (state, 1);
4717 lua_pushnumber(state, (lua_Number) -1 );
4726 lua_State *state = (lua_State *) vm;
4728 MOint objectid = (
MOint) lua_tonumber (state, 1);
4729 MOint preconfid = (
MOint) lua_tonumber (state, 2);
4746 lua_State *state = (lua_State *) vm;
4748 MOint ticksint = (
MOint) lua_tonumber (state, 1);
4757 lua_State *state = (lua_State *) vm;
4759 lua_pushnumber(state, (lua_Number)
moGetTicks() );
4766 lua_State *state = (lua_State *) vm;
4768 MOint objectid = (
MOint) lua_tonumber (state, 1);
4785 lua_State *state = (lua_State *) vm;
4787 MOint objectid = (
MOint) lua_tonumber (state, 1);
4805 lua_State *state = (lua_State *) vm;
4807 MOint objectid = (
MOint) lua_tonumber (state, 1);
4808 char *text = (
char *) lua_tostring (state, 2);
4814 MODebug2->
Error(
moText(
"moConsole::luaGetObjectParamIndex > param not found: ") + text );
4826 lua_State *state = (lua_State *) vm;
4828 MOint objectid = (
MOint) lua_tonumber (state, 1);
4829 char *text = (
char *) lua_tostring (state, 2);
4836 MODebug2->
Error(
moText(
"moConsole::luaGetObjectParamValues > param not found: ") + text );
4837 lua_pushnumber(state, (lua_Number) 0 );
4850 lua_State *state = (lua_State *) vm;
4852 MOint objectid = (
MOint) lua_tonumber (state, 1);
4853 MOint paramid = (
MOint) lua_tonumber (state, 2);
4854 MOint valueid = (
MOint) lua_tonumber (state, 3);
4874 lua_State *state = (lua_State *) vm;
4876 MOint objectid = (
MOint) lua_tonumber (state, 1);
4877 MOint paramid = (
MOint) lua_tonumber (state, 2);
4883 lua_pushnumber(state, (lua_Number) valueid );
4896 lua_State *state = (lua_State *) vm;
4898 MOint objectid = (
MOint) lua_tonumber (state, 1);
4899 char *text = (
char *) lua_tostring (state, 2);
4910 lua_pushnumber(state, (lua_Number) inletid );
4917 lua_State *state = (lua_State *) vm;
4919 MOint objectid = (
MOint) lua_tonumber (state, 1);
4920 MOint inletid = (
MOint) lua_tonumber (state, 2);
4939 switch(pData->
Type()) {
4942 lua_pushnumber(state, (lua_Number) pData->
Eval() );
4951 lua_pushnumber(state, (lua_Number) pData->
Long() );
4959 lua_pushnumber(state, (lua_Number) (
long)pData->
Pointer() );
4963 lua_pushnumber(state, (lua_Number) pData->
Vector2i()->
X() );
4964 lua_pushnumber(state, (lua_Number) pData->
Vector2i()->
Y() );
4968 lua_pushnumber(state, (lua_Number) pData->
Vector3i()->
X() );
4969 lua_pushnumber(state, (lua_Number) pData->
Vector3i()->
Y() );
4970 lua_pushnumber(state, (lua_Number) pData->
Vector3i()->
Z() );
4974 lua_pushnumber(state, (lua_Number) pData->
Vector4i()->
X() );
4975 lua_pushnumber(state, (lua_Number) pData->
Vector4i()->
Y() );
4976 lua_pushnumber(state, (lua_Number) pData->
Vector4i()->
Z() );
4977 lua_pushnumber(state, (lua_Number) pData->
Vector4i()->
W() );
4981 lua_pushnumber(state, (lua_Number) pData->
Vector2d()->
X() );
4982 lua_pushnumber(state, (lua_Number) pData->
Vector2d()->
Y() );
4986 lua_pushnumber(state, (lua_Number) pData->
Vector3d()->
X() );
4987 lua_pushnumber(state, (lua_Number) pData->
Vector3d()->
Y() );
4988 lua_pushnumber(state, (lua_Number) pData->
Vector3d()->
Z() );
4992 lua_pushnumber(state, (lua_Number) pData->
Vector4d()->
X() );
4993 lua_pushnumber(state, (lua_Number) pData->
Vector4d()->
Y() );
4994 lua_pushnumber(state, (lua_Number) pData->
Vector4d()->
Z() );
4995 lua_pushnumber(state, (lua_Number) pData->
Vector4d()->
W() );
5000 lua_pushstring(state, pData->
ToText() );
5005 lua_pushnumber(state, (lua_Number) pData->
Double() );
5009 lua_pushstring(state, pData->
Text() );
5014 MODebug2->
Error(
moText(
"in console script: GetObjectData : inlet found but type not available "));
5018 MODebug2->
Error(
moText(
"in console script: GetObjectData : inlet found but data is null!!!") );
5028 lua_pushstring( state, tres );
5033 double deluavalor = -1.0f;
5034 lua_State *state = (lua_State *) vm;
5036 MOint objectid = (
MOint) lua_tonumber (state, 1);
5037 MOint inletid = (
MOint) lua_tonumber (state, 2);
5046 switch(pData->
Type()) {
5066 (
MOlong) lua_tonumber ( state, 4 ) );
5072 (
MOlong) lua_tonumber ( state, 4 ),
5073 (
MOlong) lua_tonumber ( state, 5 ) );
5079 (
MOlong) lua_tonumber ( state, 4 ),
5080 (
MOlong) lua_tonumber ( state, 5 ),
5081 (
MOlong) lua_tonumber ( state, 6 ) );
5087 (
MOdouble) lua_tonumber ( state, 4 ));
5093 (
MOdouble) lua_tonumber ( state, 4 ),
5094 (
MOdouble) lua_tonumber ( state, 5 ));
5100 (
MOdouble) lua_tonumber ( state, 4 ),
5101 (
MOdouble) lua_tonumber ( state, 5 ),
5102 (
MOdouble) lua_tonumber ( state, 6 ) );
5112 deluavalor = (
MOdouble) lua_tonumber ( state, 3 );
5119 pData->
SetText( lua_tostring ( state, 3 ) );
5140 lua_State *state = (lua_State *) vm;
5142 MOint objectid = (
MOint) lua_tonumber (state, 1);
5181 lua_State *luastate = (lua_State *) vm;
5183 MOint objectid = (
MOint) lua_tonumber (luastate, 1);
5209 MODebug2->
Error(
moText(
"in console script: GetEffectState : object or config not founded > id: ")
5211 +
moText(
" label name: ")
5220 lua_State *state = (lua_State *) vm;
5222 MOint objectid = (
MOint) lua_tonumber (state, 1);
5223 MOint devicecode = (
MOint) lua_tonumber (state, 2);
5224 MOint codevalue = -1;
5232 codevalue = pDevice->
GetValue( devicecode );
5235 lua_pushnumber(state, (lua_Number) codevalue );
5245 lua_State *state = (lua_State *) vm;
5247 MOint objectid = (
MOint) lua_tonumber (state, 1);
5248 char *devicecodestr = (
char *) lua_tostring (state, 2);
5249 MOint devicecode = -1;
5256 devicecode = pDevice->
GetCode(devicecodestr);
5258 lua_pushnumber(state, (lua_Number) devicecode );
5269 lua_State *state = (lua_State *) vm;
5271 MOint deviceid = (
MOint) lua_tonumber (state, 1);
5272 MOint devicecode = (
MOint) lua_tonumber (state, 2);
5273 MOint val0 = (
MOint) lua_tonumber (state, 3);
5274 MOint val1 = (
MOint) lua_tonumber (state, 4);
5275 MOint val2 = (
MOint) lua_tonumber (state, 5);
5276 MOint val3 = (
MOint) lua_tonumber (state, 6);
5283 pEvents->
Add( deviceid, devicecode, val0, val1,val2,val3 );
5292 lua_State *state = (lua_State *) vm;
5294 char *pathname = (
char *) lua_tostring (state, 1);
5300 lua_pushnumber(state, (lua_Number) filecount );
5302 if (filecount==-1) {
5303 MODebug2->
Error(
moText(
"console lua script: GetDirectoryFileCount > Directory doesn't exist") );
5311 lua_State *state = (lua_State *) vm;
5313 char *pathname = (
char *) lua_tostring (state, 1);
5327 lua_pushnumber(state, (lua_Number) res );
5356 float progress = (steps/stepi)/120.0;
5358 glClearColor( 1.0f - progress, 1.0f - progress, 1.0f - progress, 1.0 );
5359 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
5363 if (!pSMan)
return 0;
5366 if (!pGLMan)
return 0;
5369 if (!pRMan)
return 0;
5372 if (!pTMan)
return 0;
5387 glEnable(GL_DEPTH_TEST);
5388 glDisable(GL_BLEND);
5412 .
Translate( 0.0, 0.0, -2.618 + 0.618*progress );
5413 moMesh Mesh( Sphere, Mat );
5423 pRMan->
Render( &Mesh, &Camera3D );
5431 glClear( GL_DEPTH_BUFFER_BIT);
5433 glDisable(GL_DEPTH_TEST);
5435 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
5451 Model2.
Scale( 1.0, 1.0, 1.0 );
5453 moMesh Mesh2( Plane3, Mat2 );
5462 pRMan->
Render( &Mesh2, &Camera3D2 );
int EffectPlay(int m_MoldeoObjectId)
int luaSetEffectState(moLuaVirtualMachine &vm)
virtual void Deactivate()
int GetPreset()
devuelve el preset actualmente seleccionado
moGLMatrixf & Scale(float sx, float sy, float sz)
static TMapStrToActionType m_MapStrToActionType
virtual int NextScriptCalling()
moTimerState GetConsoleState()
devuelve el estado del reloj de la consola
MOint GetParamIndex() const
static bool CopyFile(moText FileSrc, moText FileDst)
moEffectManager m_EffectManager
virtual MOboolean Init()=0
MOboolean Initialized()
Pregunta si está inicializado.
int RegisterBaseFunction(const char *strFuncName)
moText GetFullName()
Retreive full file name: return "myFileName" for "myFileName.txt".
moResource * GetResource(MOint p_index)
moMoldeoObjectType
Tipos de objetos en Moldeo.
void ConsoleRecordSession()
inicia la grabación de la sesión actual
int luaGetEffectState(moLuaVirtualMachine &vm)
bool IsValid() const
Objeto válido.
virtual int Save(const moText &p_save_filename=moText(""))
moEffect * New(moMobDefinition &p_MobDefinition)
Genera un nuevo efecto a partir de la definición
#define MO_CFG_EFFECT_PRE
const moText & GetLabelName() const
moIODevice * NewIODevice(const moText &p_devname, const moText &p_configname, const moText &p_labelname, const moText &p_keyname, moMoldeoObjectType p_type, int paramindex=-1, int valueindex=-1, bool p_activate=true)
moResourceManager * GetResourceManager()
void SetText(moText ptext)
moVideoManager * GetVideoMan()
const moText & GetName()
Devuelve el nombre del archivo de configuración
"valueset" > MO_ACTION_VALUE_SET
virtual void DrawMasterEffects(int interface_width=0, int interface_height=0)
moVector4< MOlong > moVector4i
void SetDefaultOrthographicView(MOint p_width=0, MOint p_height=0)
moEffectManager * m_pEffectManager
#define MO_MOLDEOSCENEOBJECTS_OFFSET_ID
scene objects are recursive sub-scene-fx's
void Error(moText p_text)
Anuncia y registra un error.
void Update(bool force=true)
moEffectsArray & Effects()
int EffectPause(int m_MoldeoObjectId)
void SetName(const moText &p_name)
int luaGetDirectoryFileCount(moLuaVirtualMachine &vm)
MOboolean RemoveIODevice(MOint p_ID)
Recurso ( objeto para cargar y manipular objetos físicos de datos de imágenes, audio, video, 3d, 2d, fuentes, shaders y de cualquier otro tipo extendible por un plugin )
int luaGetTicks(moLuaVirtualMachine &vm)
virtual moMoldeoObject * GetObjectByIdx(int p_object_id)
#define moDefineParamIndex(X, Y)
"objectgetstate" : OBJECT_GETSTATE
"effectplay" : MO_ACTION_EFFECT_PLAY
virtual void Start()
Inicia el temporizador.
Conector Inlet, conector que recibe datos.
void SetConfigName(const moText &p_configname)
moData * GetInternalData()
moValueBase & GetSubValue(MOint p_indexsubvalue=0)
"consolescreenshot" : MO_ACTION_CONSOLE_SCREENSHOT
"consolepresentation" : MO_ACTION_CONSOLE_PRESENTATION
virtual bool Activated() const
virtual long Duration()
Devuelve el valor del reloj del temporizador.
"consolesetstate" : MO_ACTION_CONSOLE_SETSTATE
int SetEffectState(int m_MoldeoObjectId, const moEffectState &p_effect_state)
#define MO_ACTION_MOLDEOAPI_EVENT_SEND
"objetenable" : MO_ACTION_OBJECT_ENABLE
MOint GetCurrentPreConf()
Devuelve el índice de la preconfiguración seleccionada.
MOboolean Delete(moEvent *ev)
virtual MOboolean CreateConnectors()
virtual MOint GetValue(MOdevcode)=0
virtual int Save(const moText &p_save_filename=moText(""))
value type: NUM or FUNCTION
moPresetParamDefinition & operator=(const moPresetParamDefinition &src)
int luaPause(moLuaVirtualMachine &vm)
void SetDouble(MOdouble pdouble)
moPresetParams m_PresetParams
int EffectStop(int m_MoldeoObjectId)
bool NextValue()
Selecciona el próximo valor del parámetro actual.
moEffectManager & GetEffectManager()
virtual MOulong GetTicks()
moConnections * GetConnections()
Devuelve las conecciones de un outlet.
param 1: object name | object id
int DuplicateMob(const moMobDefinition &p_MobDef)
virtual void LoadCodes(moIODeviceManager *)
LIBMOLDEO_API moText0 FloatToStr(double a)
Recursos de datos, objetos, imágenes, videos y funcionalidades múltiples.
moRenderManager * GetRenderMan()
void SetPreconfig(int valueindex, moPreconfigIndexes &p_preconfindexes)
Setea una pre-configuración
int RelativeToGeneralIndex(int relativeindex, moMoldeoObjectType p_type)
virtual void Set(moEffectManager *pEffectManager, moConsoleState *cstate)
void ConsoleRenderSession(const moText &p_frame_quality=moText("JPGGOOD"))
inicia el renderizado de una sesión pregrabada
Matrices para transformaciones en Open GL.
bool Render(moConsoleState &p_console_state)
stop record
int Render(moObject3D *p_pObj, moCamera3D *p_pCamera)
MOboolean m_bIODeviceManagerDefault
moEffectsArray & AllEffects()
moMasterEffectsArray & MasterEffects()
virtual int ScriptCalling(moLuaVirtualMachine &vm, int iFunctionNumber)
int luaGetObjectParamIndex(moLuaVirtualMachine &vm)
int GetParamIndex(moText p_paramname)
Devuelve el índice correspondiente al parámetro por nombre.
virtual MOdevcode GetCode(moText)=0
Objeto dibujable, efecto-maestro ( puede controlar otros efectos )
"consolerendersession" : MO_ACTION_CONSOLE_RECORD_SESSION
int luaScreenshot(moLuaVirtualMachine &vm)
param 1: effect label name | effect id
void StartMasterEffects()
MOint Int(moParamReference p_paramreference)
Acceso rápido a un valor entero.
bool RunSelectedFunction(int nReturns=0)
void InitializeAllEffects()
1: father object name | id, 2: object info
void moContinueTimer()
Continua luego de una pausa el temporizador global.
void UnloadMasterEffects()
#define MO_DEF_SCREEN_HEIGHT
"preconfigadd" > MO_ACTION_PRECONFIG_ADD
int luaAddEvent(moLuaVirtualMachine &vm)
MOboolean Finish()
Finaliza el objeto, libera recursos.
"consolepresetdelete" : MO_ACTION_CONSOLE_PRESET_DELETE
void ConsoleSaveSessionAs()
salva la sesión a un archivo
virtual moTimerState State() const
MOboolean RenderResEqualScreenRes()
const moText & GetName() const
Nombre del objeto.
void SetLabelName(const moText &p_labelname)
Fija la etiqueta de este objeto.
Conector Outlet, conector que envía datos.
const moText & GetName() const
"consolepresetset" : MO_ACTION_CONSOLE_PRESET_SET
int TestScreen(const moDisplay &p_display_info)
int luaSetPreset(moLuaVirtualMachine &vm)
virtual void SetConsoleValueIndex(MOint p_valueindex)
static moText GetTypeToName(moMoldeoObjectType p_Type=MO_OBJECT_UNDEFINED)
Transforma un moMoldeoObjectType en el nombre de su correspondiente.
int SetParam(int m_MoldeoObjectId, int m_ParamId, const moParamDefinition &p_param_definition)
virtual void ScriptExeInit()
Corre la funcion de script Run o Compila el nuevo script.
#define MO_RENDER_RESOLUTION
static moText GetTypeToClass(moMoldeoObjectType p_Type=MO_OBJECT_UNDEFINED)
Transforma un moMoldeoObjectType en el nombre de su correspondiente clase base.
virtual MOboolean Finish()
Finaliza el objeto, libera recursos.
void SetTicks(int ticksid)
moGLMatrixf & Rotate(float angle, float vx, float vy, float vz)
int luaState(moLuaVirtualMachine &vm)
bool Record(moConsoleState &p_console_state)
stop playback
MOulong moGetTicksAbsolute(bool force_real_absolute)
Devuelve en milisegundos el valor del reloj de Moldeo.
int RefreshValue(int m_MoldeoObjectId, int m_ParamId, int m_ValueId, bool p_Refresh=true)
void AddSubValue(const moText &strvalue, moValueType p_valuetype)
void SetLong(MOlonglong plong)
"consolepause" : MO_ACTION_CONSOLE_PAUSE
clase base para definir Pre-Efectos.
void SetCompletePath(moText p_completepath)
static bool CopyDirectory(const moText &DirSrc, const moText &DirDst)
definición de todos los parámetros a encontrar o a crear dentro del moConfig
moShaderManager * GetShaderMan()
void DrawTexture(MOint p_resolution, MOint p_tex_num)
MOboolean IsRenderToFBOEnabled()
void SetDuration(MOlong p_fun_duration)
virtual MOboolean Init()=0
int luaPlay(moLuaVirtualMachine &vm)
#define MO_SCREEN_RESOLUTION
int luaObjectDisable(moLuaVirtualMachine &vm)
habilita deshabilita
bool Set(int fx_index, moMoldeoObject *p_pMOB)
#define MO_CFG_RESOURCE_LABEL
virtual double Alpha(double alpha)
virtual void InitResources(moResourceManager *pResourceManager, moText p_apppath, moText p_datapath, moConfig &p_consoleconfig, MOint p_render_to_texture_mode=MO_RENDER_TO_TEXTURE_FBSCREEN, MOint p_screen_width=MO_DEF_SCREEN_WIDTH, MOint p_screen_height=MO_DEF_SCREEN_HEIGHT, MOint p_render_width=MO_DEF_RENDER_WIDTH, MOint p_render_height=MO_DEF_RENDER_HEIGHT, MO_HANDLE p_OpWindowHandle=0, MO_DISPLAY p_Display=NULL)
inicializa el administrador de recursos
"objectgetpreconfig" : MO_ACTION_OBJECT_GETPRECONFIG
const moMobIndex & GetMobIndex() const
Devuelve la dupla de índices para el archivo de configuración
MOboolean m_bExternalResources
"valueget" > MO_ACTION_VALUE_GET
moPolygonModes m_PolygonMode
int SendMoldeoAPIMessage(moDataMessage *p_pDataMessage)
virtual MOboolean Init()=0
clase de para manejar textos
moTexture * GetTexture(MOuint p_moid)
moIODeviceManager * m_pIODeviceManager
"consolesaves" : MO_ACTION_CONSOLE_SAVEAS
MOuint GetValuesCount(int p_paramindex)
Devuelve la cantidad de valores que contiene el parámetro indexado.
bool LabelNameExists(const moText &labelname)
existe ya esta etiqueta dentro de los MOBs de esta consola
moResourceManager * m_pResourceManager
Puntero al administrador de recursos.
void SetConsoleValueIndex(MOint p_valueindex)
virtual MOboolean Init()=0
void SetInterfaceView(int p_width, int p_height)
virtual const moEffectState & GetEffectState()
void Stop()
Detiene el temporizador.
MOint RenderHeight() const
int GetIndexValue() const
Clase Base Descriptiva de un Objeto Moldeo.
int HexToInt(const moText &hex)
void SetInterpolationFunction(const moText &p_interpol_fun)
moMoldeoObjects & GetMoldeoObjects()
int luaGetDeviceCodeId(moLuaVirtualMachine &vm)
virtual MOboolean Init()
Inicializa el objeto.
int luaGetObjectDataIndex(moLuaVirtualMachine &vm)
especificos de datos
moText GetDestinationMoldeoLabelName()
"consolerecordsession" : MO_ACTION_CONSOLE_RECORD_SESSION
Dispositivo de entrada/salida, típicamente, interfaces humanas de IO y datos ( teclado, mouse, tableta, tcp, udp, serial )
moGLMatrixf & MakeIdentity()
virtual void GLSwapBuffers()
MOboolean RemoveResource(MOint p_index)
virtual moConfigDefinition * GetDefinition(moConfigDefinition *p_configdefinition=NULL)
moText GetDestinationConnectorLabelName()
void Add(moMessage *p_Message)
void Log(moText p_text)
Escribe un mensaje en el archivo de registro (log)
void SetConfigName(const moText &p_configname)
Fijar el nombre del archivo de configuración
void SetCurrentValueIndex(int p_paramindex, int p_valueindex)
Posiciona el puntero de selección del valor del parámetro a la posición indicada.
moMoldeoObjectType GetType() const
Nombre del archivo de configuración
void Fix()
Corrige el reloj.
int luaStop(moLuaVirtualMachine &vm)
void SetProperty(const moText &p_Property)
bool AddKey(const moDataSessionKey &p_key)
void SetMoldeoFatherId(MOint p_moldeoid)
Fija el identificador del padre de este objeto.
moGLMatrixf & Translate(float x, float y, float z)
void SetPreset(int presetid)
fija el preset seleccionado
const moMobDefinition & GetMobDefinition() const
moConfig m_Config
Configuración de parámetros del objeto.
void RegisterFunctions()
beware ! call only once or die!!!
moPostEffectsArray & PostEffects()
void LoadObjects(moMoldeoObjectType fx_type=MO_OBJECT_UNDEFINED)
void SetDestinationMoldeoId(MOint p_DestinationMoldeoId)
void moStopTimer()
Detiene el temporizador global.
#define MO_CFG_EFFECT_LABEL
"consolepreviewshot" : MO_ACTION_CONSOLE_PREVIEW_SHOT
void moSetDuration(MOulong p_timecode)
Fija el valor del reloj del temporizador global.
const moResolution & Resolution() const
int luaSetObjectPreconf(moLuaVirtualMachine &vm)
moResource * NewResource(const moText &p_resname, const moText &p_configname, const moText &p_labelname, const moText &p_keyname, int paramindex=-1, int valueindex=-1, bool p_activate=true)
virtual MOboolean Init()=0
MOint GetMoldeoFatherId() const
Devuelve el identificador del padre de este objeto.
moTimerState
Estado del temporizador.
void moStartTimer()
Inicia el temporizador global.
"effectpause" : MO_ACTION_EFFECT_PAUSE
int luaSetObjectData(moLuaVirtualMachine &vm)
moFileManager * GetFileMan()
virtual int ResetScriptCalling()
"preconfigset" > MO_ACTION_PRECONFIG_SET
const moDataSessionKey & NextKey(moConsoleState &m_ConsoleState)
virtual void Draw()
Dibuja.
int MoveMob(const moMobDefinition &p_MobDef, int position)
"objectgetpreconfig" : MO_ACTION_OBJECT_GETPRECONFIG
bool ScriptHasFunction(const char *strScriptName)
moConsoleState m_ConsoleState
virtual void Error(const moText &p_message)
#define MO_MOLDEOOBJECTS_OFFSET_ID
"objetdisable" : MO_ACTION_OBJECT_DISABLE
void SetDefaultPerspectiveView(MOint p_width, MOint p_height)
Clase Base para Objetos Moldeo ( moEffect, moIODevice, moResource, moConsole )
bool InData(const moText &p_file_full_path)
MOboolean m_bConnectorsLoaded
moTimerState moGetTimerState()
Devuelve el estado del temporizador global.
virtual const moText & ToJSON()
moMoldeoActionType
moMoldeoActionType
MOulong moGetTicksAbsoluteStep(long step_interval)
Devuelve en milisegundos el valor del reloj de Moldeo.
MOint GetTextureMOId(moParam *param, MOboolean p_create_tex)
moGLMatrixf & GetProjectionMatrix()
Objeto dibujable, pre-efecto ( primeros efectos en el orden de dibujado )
int DeleteMob(const moMobDefinition &p_MobDef)
moConsoleMode GetConsoleMode()
devuelve el modo de la consola
moDirectory * GetDirectory(moText p_Path)
int GetParamsCount()
Devuelve la cantidad de parámetros de la configuracíón.
#define MO_PARAM_NOT_FOUND
Administrador de recursos.
MOboolean CreateDefault(const moText &p_fullconfigfilename)
Devuelve true si pudo crear el archivo de configuración junto con su archivo correspondiente.
virtual void Update(moEventList *p_EventList)
void SetModelMatrix(const moGLMatrixf &p_model_matrix)
moMoldeoObjects m_MoldeoSceneObjects
"valuedelete" > MO_ACTION_VALUE_DELETE
void CopyRenderToTexture(MOint p_tex_num)
#define MO_IODEVICE_CONSOLE
bool StepRender(moConsoleState &p_console_state)
moResourceManager * m_pResourceManager
void ConsolePause()
pausa el reloj de la consola
moConfigDefinition * GetConfigDefinition()
Devuelve el puntero al objeto de definición de la configuración
#define MO_DEF_SCREEN_WIDTH
#define MO_DEF_RENDER_HEIGHT
void Set(moText p_objectname, moText p_objectclass)
Fija el nombre y la clase del objeto a configurar.
moText GetConsoleConfigName()
void AddMoldeoAPIDevices()
void SetLabelName(const moText &p_labelname)
virtual ~moPresetParamDefinition()
param 1: effect label name | effect id
virtual MOswitch GetStatus(MOdevcode)=0
moText m_RenderFrameQuality
int luaGetObjectId(moLuaVirtualMachine &vm)
Objeto dibujable, efecto ( efectos en el orden de dibujado )
moReactionListenerManager m_ReactionListenerManager
"valueadd" > MO_ACTION_VALUE_ADD
virtual bool SetEffectState(const moEffectState &p_state)
void DeleteConfig()
Borra la configuracion de parámetros con sus respectivos valores.
moVector3< MOdouble > moVector3d
moValue & GetValue(moText nameparam, int indexvalue=-1)
Devuelve el valor indicado por el nombre del parámetro y el índice del valor.
virtual MOboolean RefreshValue(moParam ¶m, int value_index)
bool moIsTimerPaused()
Devuelve verdadero si el temporizador global está en pausa.
moEffect * NewEffect(const moText &p_resname, const moText &p_configname, const moText &p_labelname, const moText &p_keyname, moMoldeoObjectType p_type, MOint p_paramindex, MOint p_valueindex, bool p_activate=true)
Genera un nuevo efecto a partir de los parámetros correspondientes.
MOint ConvertKeyNameToIdx(moText &name)
#define MO_CFG_EFFECT_KEY
virtual void RegisterFunctions()
beware ! call only once or die!!!
Clase que implementa un administrador de shaders.
MOint RenderWidth() const
"paramset" > MO_ACTION_PARAM_SET
#define MO_IODEVICE_KEYBOARD
manejador de operaciones comunes de Open GL
param 1: object name | object id
static moDebug * MODebug2
Clase de impresión de errores para depuración
"paramget" > MO_ACTION_PARAM_GET
void SetConsoleParamIndex(MOint p_paramindex)
int GetObjectId(const moText &p_objectlabelname)
value type: NUM or FUNCTION
moVector2< MOlong > moVector2i
moMoldeoObjectType GetType() const
int luaSetObjectCurrentValue(moLuaVirtualMachine &vm)
moDataManager * GetDataMan()
virtual const moText & GetConnectorLabelName() const
virtual MOboolean Init(const moText &p_apppath, const moText &p_datapath, moConfig &p_consoleconfig, MOint p_render_to_texture_mode=0, MOint p_screen_width=320, MOint p_screen_height=240, MOint p_render_width=320, MOint p_render_height=240, MO_HANDLE p_OpWindowHandle=0, MO_DISPLAY p_Display=NULL)
moEffectManager & GetEffectManager()
void ConsolePlaySession()
inicia la reproducción de una sesión pregrabada
void ConsoleStop()
para el reloj de la consola
moPresetParamDefinition()
MOint GetConnectorId() const
void SetCurrentPreConf(MOint p_actual)
Posiciona la preconfiguración actual en el índice indicado.
int ObjectEnable(int m_MoldeoObjectId)
int luaObjectEnable(moLuaVirtualMachine &vm)
void SetPreconf(int objectid, int preconfid)
fija la configuración actualmente seleccionada de un objeto de la consola
virtual void Update()
Actualiza el estado de los recursos.
const moPreConfig & GetPreconfig(int valueindex)
Agrega una pre-configuración
void Push(moText p_text)
Apila el mensaje dentro de la pila de mensajes.
void moPauseTimer()
Pausa el temporizador global.
int luaGetObjectParamValues(moLuaVirtualMachine &vm)
MOswitch fulldebug
saturación
moVector2< MOdouble > moVector2d
moValue & GetValue(MOint i=-1)
void ProcessConsoleMessage(moMessage *p_pMessage)
const moText & GetLabelName() const
Devuelve la etiqueta de este objeto.
moParam & GetParam(MOint p_paramindex=-1)
Devuelve el parámetro por índice.
"consolepresetsave" : MO_ACTION_CONSOLE_PRESET_SAVE
int AddChildMob(const moMobDefinition &p_MobDef, const moMobDefinition &p_MobDefFather)
virtual int Interaction()
Procesa los eventos de los dispositivos de entrada/salida.
void SetDestinationConnectorId(MOint p_DestinationConnectorId)
MOboolean Init()
Inicializa el objeto.
bool PreviewShot(bool shot_start=false)
"objectget" : MO_ACTION_OBJECT_GETCONFIG
int luaSetTicks(moLuaVirtualMachine &vm)
#define MO_DEF_RENDER_WIDTH
"effectgetstate" : MO_ACTION_EFFECT_SETSTATE
MOint GetMoldeoId() const
Devuelve el identificador de este objeto.
moDefineDynamicArray(moPresetParams)
virtual long Duration()
Devuelve el valor del reloj del temporizador.
void SetIODeviceManager(moIODeviceManager *p_IODeviceManager)
asignación del administrador de dispositivos
moParamDefinition & GetParamDefinition()
void SetName(const moText &p_name)
Fijar el nombre del objeto.
const moText & GetConfigName() const
Objeto principal de administración y dibujado de objetos de Moldeo.
void FinalizeAllEffects()
virtual MOboolean Finish()
void Add(const moText &p_name, moParamType p_type, int p_index=-1, const moValue &p_defaultvalue=moValue("INVALID", MO_VALUE_UNDEFINED), const moText &p_OptionsStr=moText(""))
Agrega la definición de un parámetro con un valor predeterminado a tomar.
moVector3< MOlong > moVector3i
"consolestop" : MO_ACTION_CONSOLE_STOP
moResources & Resources()
moPreEffectsArray & PreEffects()
MOint GetValueIndex() const
"objects add" > MO_ACTION_OBJECTS_ADD
int UpdateMoldeoIds(moMoldeoObjects &p_MoldeoSceneObjects)
virtual MOboolean Init()
Inicializador predeterminado.
bool ImportFile(const moText &p_import_file_full_path)
virtual MOboolean ResolveValue(moParam ¶m, int value_index, bool p_refresh=false)
MOint GetInletIndex(moText p_connector_name) const
virtual MOboolean Finish()
Finalizador.
virtual void Interaction(moIODeviceManager *)
void ConsolePlay()
enciende el reloj de la consola
virtual MOboolean Finish()
moPreconfigIndexes m_PreconfIndexes
moVector3< MOfloat > moVector3f
LIBMOLDEO_API moText0 IntToStr(int a)
void SetMobDefinition(const moMobDefinition &p_MobDef)
const moText & GetKeyName() const
Devuelve la etiqueta del padre de este objeto.
const moText & GetKeyName() const
bool Started() const
Devuelve el estado del temporizador.
clase base para objetos dibujables
"consolegetstate" : MO_ACTION_CONSOLE_GETSTATE
"consolepresetadd" : MO_ACTION_CONSOLE_PRESET_ADD
int luaGetPreset(moLuaVirtualMachine &vm)
void AddPreconfig(moPreconfigIndexes &p_preconfindexes)
Agrega una pre-configuración
long m_ScreenshotInterval
moVector4< MOdouble > moVector4d
moMoldeoActionType GetActionType() const
const moText & GetConfigName() const
Nombre del archivo de configuración
bool SetCurrentParamIndex(int)
Selecciona el parámetro por el índice.
Objeto dibujable, post-efecto ( últímos efectos en el orden de dibujado )
virtual void Draw(moTempo *, moEffectState *parentstate=NULL)=0
int luaGetObjectCurrentValue(moLuaVirtualMachine &vm)
virtual const moText & ToJSON()
MOuint GetSubValueCount()
virtual MOboolean Finish()=0
moIODevicesArray & IODevices()
bool Playback(moConsoleState &p_console_state)
const moParamDefinition & GetParamDefinition(const moText &p_param_name)
moEventList * GetEvents()
moDataSession * GetSession()
MOuint GetValuesCount() const
MOboolean m_bInitialized
Valor de inicialización
int SetValue(int m_MoldeoObjectId, int m_ParamId, int m_ValueId, const moValue &p_value)
int ObjectDisable(int m_MoldeoObjectId)
moText GetAbsolutePath()
Get relative path and filename "PP/myFileName.txt".
moMoldeoObjects m_MoldeoObjects
"consoleget" : MO_ACTION_CONSOLE_GET
moTimer m_ScreenshotTimer
int GetPreconf(int objectid)
devuelve la configuración actualmente seleccionada de un objeto de la consola
bool SelectScriptFunction(const char *strFuncName)
MOint GetPreConfCount()
Devuelve la cantidad de preconfiguraciones definidas.
int luaGetObjectData(moLuaVirtualMachine &vm)
MOboolean RemoveEffect(MOint p_ID, moMoldeoObjectType p_type)
int NewMob(const moMobDefinition &p_MobDef)
Administrador de efectos.
bool GetActivate() const
Devuelve el modo de activación al inicio del proyecto.
"valuerefresh" > MO_ACTION_VALUE_REFRESH
int ProcessSessionKey(const moDataSessionKey &p_session_key)
void UnloadConfig()
Elimina todos los parámetros anteriormente cargados.
MOint GetResourceIndex(moText p_labelname)
moConfigDefinition * GetDefinition(moConfigDefinition *p_configdefinition=NULL)
asignación de la definición del archivo de configuración de la consola
void Message(moText p_text)
Anuncia un mensaje al usuario además de guardarlo en el log de texto.
void SetOrthographicView(MOint p_width=0, MOint p_height=0, float left=0.0, float right=1.0, float bottom=0.0, float top=1.0, float znear=-1.0, float zfar=1.0)
bool FirstValue()
Selecciona el primer valor del parámetro actual.
int ScriptCalling(moLuaVirtualMachine &vm, int iFunctionNumber)
bool Loaded()
fast live record
"effectstop" : MO_ACTION_EFFECT_STOP
int luaGetObjectPreconf(moLuaVirtualMachine &vm)
void SetType(moMoldeoObjectType p_type)
#define MO_CFG_RESOURCE_CONFIG
int ProcessMoldeoAPIMessage(moDataMessage *p_pDataMessage)
Procesa los mensajes de la Moldeo API 1.0.
moEffect * GetEffectByLabel(const moText &p_label_name, moMoldeoObjectType p_mob_type=MO_OBJECT_UNDEFINED)
virtual void ScriptExeRun()
#define MO_CFG_EFFECT_CONFIG
"consolesave" : MO_ACTION_CONSOLE_SAVE
#define MO_ACTION_MOLDEOAPI_EVENT_RECEIVE
int GetDirectoryFileCount(const moText &p_path)
int RegisterFunction(const char *strFuncName, moScript::Function &fun)
moText MakeRelativeToData(const moText &p_file_full_path)
bool Screenshot(moText pathname, moText &screenshot_result, const moText &image_format="PNG", const moText &file_pattern="image_{DATETIME}_{####}.png")
int ProcessSessionEventKey(const moDataSessionEventKey &p_session_event_key)
void SetResourceManager(moResourceManager *p_pResourceManager)
"valuesave" > MO_ACTION_VALUE_SAVE
moTextureManager * GetTextureMan()
moText Text(moParamReference p_paramreference)
Acceso rápido a un valor de texto.
almacena la configuración de los parámetros de un objeto en un archivo XML
virtual const moText & ToJSON()
MOulong moGetTicks()
Devuelve en milisegundos el valor del reloj de Moldeo.
Indice referente a la descripción del objeto en un archivo de configuración
int luaGetDeviceCode(moLuaVirtualMachine &vm)
Conección, vínculo entre dos objetos.