Commit Graph

64 Commits

Author SHA1 Message Date
Lasse Öörni
2ac921de60 When editor is run from Urho3DPlayer, enable Lua if possible to allow editing Lua scripted scenes. Closes #294. 2014-04-03 10:45:24 +03:00
Lasse Öörni
35195939c1 Exposed allowed screen orientations (effective on iOS only currently) and the flush GPU setting as engine startup parameters. 2014-03-28 00:23:31 +02:00
Lasse Öörni
fb3306170e Material quality, texture quality, texture filter mode and anisotropy level as engine startup parameters and command line options. Closes #241. 2014-03-09 19:36:40 +02:00
Lasse Öörni
abc6fcd8b8 Shader precaching mechanism. Call Graphics::BeginDumpShaders() or use the engine command line parameter -ds <file> to create a shader dump file of the variations that are loaded during program run, and Graphics::PrecacheShaders() to load the dump file.
Moved GetShader() from Renderer subsystem to Graphics, which is more logical as loading shaders is a low-level operation, while Renderer should be concerned with high-level rendering of 3D scenes. Now eg. UI does not need to depend on Renderer at all.

Simplified internal state of ShaderVariation & ShaderProgram objects, the success of compile/link can be deduced from the presence of a non-null GPU object.

Fixed FILE_READWRITE mode to not clear the file contents, and to handle alternating reads and writes correctly.
2014-02-16 22:23:07 +02:00
aster2013
4f91bf9307 Add support for compiled Lua file(with luc extension). 2014-02-03 21:10:56 +08:00
Lasse Öörni
6d5ddc23e0 Bump the copyright for 2014. 2014-02-01 14:37:21 +02:00
Lasse Öörni
d1a8f38e93 Return in Urho3DPlayer if the script language is not supported to prevent showing two error dialog boxes. 2014-02-01 14:37:20 +02:00
Yao Wei Tjong 姚伟忠
d719baa38b Use on-demand shader evaluation for OpenGL as well.
Also correct Urho3DPlayer usage help for setting log level. There is a space between parameter key and parameter value.
Other minor changes to correct formatting.
2013-12-28 14:17:54 +08:00
Lasse Öörni
721f70fe1a Fixed D3D9 build. Added borderless as a command line option and documented it. 2013-12-28 00:49:06 +02:00
Lasse Öörni
32a9e72752 Fixed GLES low quality shadows. Fixed Android/iOS not initializing engine parameters from CommandLine.txt. 2013-12-16 11:54:58 +02:00
StevenZhang
a17baf2695 make AngelScript an optional module, you can use -DENABLE_ANGELSCRIPT=0 to disable it. 2013-12-02 19:02:39 +02:00
Lasse Öörni
ee8e8031d2 Rework command line options that need a parameter value to have a space in between. Fixes #44. 2013-11-12 01:33:15 +02:00
Lasse Öörni
cfa6b135ce Moved Urho3DPlayer class definition to a .h file. Updated documentation to refer to Urho3DPlayer. 2013-11-04 19:07:00 +02:00
Yao Wei Tjong 姚伟忠
c1480abfb8 Rename Urho3D script host app from "Urho3D" to "Urho3DPlayer". 2013-11-04 19:36:36 +08:00