Explorar el Código

MV tweak

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> hace 11 años
padre
commit
2de4324de5
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      test/meshviewer.cpp

+ 4
- 2
test/meshviewer.cpp Ver fichero

@@ -256,9 +256,11 @@ public:
m_ssetup->m_lights << new Light();
m_ssetup->m_lights.Last()->SetPosition(vec4(4.f, -1.f, -4.f, 0.f));
m_ssetup->m_lights.Last()->SetColor(vec4(.0f, .2f, .5f, 1.f));
Ticker::Ref(m_ssetup->m_lights.Last());
m_ssetup->m_lights << new Light();
m_ssetup->m_lights.Last()->SetPosition(vec4(8.f, 2.f, 6.f, 0.f));
m_ssetup->m_lights.Last()->SetColor(vec4(1.f));
Ticker::Ref(m_ssetup->m_lights.Last());
EasyMesh* em = new EasyMesh();
if (em->Compile("sc#fff ab 1"))
{
@@ -270,8 +272,8 @@ public:
m_ssetup->Compile(" addlight 0.0 position (4 -1 -4) color (.0 .2 .5 1)"
" addlight 0.0 position (8 2 6) color #ffff"
" custom setmesh \"sc#fff ab 1\"");
#endif //MV_TEST
m_ssetup->Startup();
#endif //MV_TEST
}

virtual void TickGame(float seconds)
@@ -488,7 +490,7 @@ public:
}
}
//Check the custom cmd even if we don't have new messages.
for (int i = 0; i < m_ssetup->m_custom_cmd.Count(); ++i)
for (int i = 0; m_ssetup && i < m_ssetup->m_custom_cmd.Count(); ++i)
{
if (m_ssetup->m_custom_cmd[i].m1 == "setmesh")
{


Cargando…
Cancelar
Guardar