Files
WickedEngine/Editor/startup.lua
T
2017-09-30 16:08:23 +01:00

71 lines
1.8 KiB
Lua

-- s = Sprite("HelloWorldDemo/HelloWorld.png");
-- s.SetEffects(ImageEffects(100,-100,400,400));
-- f = Font("Hello World Font renderer");
-- f.SetPos(Vector(20,-150));
-- runProcess(function()
-- local isserver = false
-- local isclient = false
-- while true do
--
-- if(input.Press(string.byte('S'))) then
-- isserver = true
-- server = Server()
-- end
-- if(input.Press(string.byte('C'))) then
-- isclient = true
-- client = Client()
-- end
--
-- if(isserver) then
-- server.Poll()
-- end
-- if(isclient) then
-- client.Poll()
-- end
--
-- update()
-- end
-- end)
main.SetResolutionDisplay(true);
runProcess(function()
while true do
if(input.Press(VK_F11)) then
ReloadShaders("C:\\PROJECTS\\WickedEngine\\WickedEngine\\shaders\\")
end
if(input.Press(VK_F10)) then
s = SoundEffect("C:\\PROJECTS\\DXProject\\DXProject\\sound\\1.wav")
s.Play()
--PutEnvProbe(GetCamera().GetPosition(),256);
end
if(input.Press(VK_F4)) then
main.GetActiveComponent().SetPreferredThreadingCount(2);
end
if(input.Press(VK_F5)) then
main.GetActiveComponent().SetPreferredThreadingCount(3);
end
if(input.Press(VK_F6)) then
main.GetActiveComponent().SetPreferredThreadingCount(4);
end
if(input.Press(VK_F7)) then
-- LoadModel("C:\\PROJECTS\\WickedEngine\\WickedEngine\\Scene\\Sponza\\","sponza");
runProcess(function()
local row = 16
for i = 1, row do
for j = 1, row do
LoadModel("C:\\PROJECTS\\BLENDER\\Stormtrooper\\", "Stormtrooper", "_"..i..j,matrix.Translation(Vector(i*2-row,0,j*2-row)));
--LoadModel("C:\\PROJECTS\\WickedEngine\\WickedEngine\\models\\Sample\\", "nosun", "_common",matrix.Translation(Vector(i*500-row*500,0,j*500-row*500)));
--waitSeconds(0.05)
end
end
end)
end
update()
end
end)