e537e89568
fixed loading .phy files for physics information - back to working demo where i was before restructuring WFObj; need to add TextureCache support and support for placing non-physics models
Josh Holtrop2009-10-17 22:12:34 +00:00
387141b506
first time recompiling successfully after WFObj restructuring!
Josh Holtrop2009-10-17 21:58:34 +00:00
580788097d
added TOPLEVEL to recursively find includes relative to the top level directory
Josh Holtrop2009-10-17 21:25:54 +00:00
eafeac9bf9
rolled back all changed to implement multitasking
Josh Holtrop2009-10-14 03:38:32 +00:00
bf32dab70c
MULTITHREADING NOT WORKING - OpenGL calls do not work properly called from a thread different from the one that OpenGL was initialized in. But, I need SDL calls to be called from the thread that SDL was initialized in, which is the thread that initializes OpenGL. That means that in order to use multithreading all OpenGL and SDL calls would have to be done from the main thread and not from the lua thread. This means that every single draw operation would have to be passed from the lua thread to the main thread for execution. This is a bad idea. So, I am going to revert all of these changes for multithreading and look into lua_sethook() for handling infinite loops instead.
Josh Holtrop2009-10-14 03:32:52 +00:00
e7d5e6eed1
supposed to be swapping buffers now but only getting a black screen... not a good sign
Josh Holtrop2009-10-14 02:44:45 +00:00
fe403112c9
ballstairs.lua test script demonstrating loading model with scaling
Josh Holtrop2009-10-12 21:42:22 +00:00
6864704d37
ag::loadModel and ag::loadStaticModel accepting a second optional parameter to specify the scale of the model to load
Josh Holtrop2009-10-12 21:40:47 +00:00
968a35bc36
added scaling support when creating Engine::Objects
Josh Holtrop2009-10-12 21:30:56 +00:00
c4f07c6c93
added an "auto physics" mode, on by default, that will call doPhysics() before update() if on, settable via ag::setAutoPhysics()
Josh Holtrop2009-10-12 19:48:58 +00:00
3f407b8970
added "dist" target to produce a distributable output
Josh Holtrop2009-10-12 18:38:19 +00:00
bddbf61f5f
added lib directory for standard Anaglym library of models, textures, scripts, etc...
Josh Holtrop2009-10-12 17:44:30 +00:00
792e087885
added visibility flag to Engine::Object and ag::object::setVisible() to control it
Josh Holtrop2009-10-12 16:41:42 +00:00
207f7e628a
finished implementing ag::object::destroy() so lua calls to object:destroy() will correctly remove the object from the scene
Josh Holtrop2009-10-12 16:16:39 +00:00
5bf9e9f2ec
moved Object contructor/destructor into .cc file, keeping track of number of references to OpenGL display list and deleting it when the last reference goes away
Josh Holtrop2009-10-12 15:00:46 +00:00
bd2d3d8b25
added ag::drawObjects() to draw all objects in the scene from a lua script
Josh Holtrop2009-10-12 14:54:40 +00:00
2107a67d08
set ball test object to smooth and re-exported it; removed some old camera controls from ballstairs.lua test script
Josh Holtrop2009-10-12 14:48:14 +00:00