624f8a8dccupdated clean target in Makefile
Josh Holtrop
2009-10-18 21:54:20 +00:00
75a80ae378added gen-sdl-keymap.pl to generate sdl_keymap.h and sdl_keymap.cc
Josh Holtrop
2009-10-18 21:46:53 +00:00
79b11ba619updated Engine to use TextureCache
Josh Holtrop
2009-10-18 16:33:58 +00:00
e537e89568fixed 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 Holtrop
2009-10-17 22:12:34 +00:00
387141b506first time recompiling successfully after WFObj restructuring!
Josh Holtrop
2009-10-17 21:58:34 +00:00
580788097dadded TOPLEVEL to recursively find includes relative to the top level directory
Josh Holtrop
2009-10-17 21:25:54 +00:00
a984a625cdadded a couple more externals
Josh Holtrop
2009-10-17 19:43:06 +00:00
cc83d92c18moved Video out of Engine
Josh Holtrop
2009-10-14 03:45:46 +00:00
eafeac9bf9rolled back all changed to implement multitasking
Josh Holtrop
2009-10-14 03:38:32 +00:00
bf32dab70cMULTITHREADING 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 Holtrop
2009-10-14 03:32:52 +00:00
e7d5e6eed1supposed to be swapping buffers now but only getting a black screen... not a good sign
Josh Holtrop
2009-10-14 02:44:45 +00:00
b9a4ce22edreworked startFrame() and endFrame()
Josh Holtrop
2009-10-14 01:36:18 +00:00
59818a253dprocessing events in the engine thread
Josh Holtrop
2009-10-14 01:27:54 +00:00
917a226e0fmaintaining an event queue for passing events to the engine thread from the main SDL thread
Josh Holtrop
2009-10-14 01:20:58 +00:00
a630609767compiling again after refactoring SDL calls out of Engine into anaglym.cc!
Josh Holtrop
2009-10-14 00:32:02 +00:00
38a517174bbroke Engine into its own compilation module; this will assist with multithreading later...
Josh Holtrop
2009-10-13 16:43:28 +00:00
1e5ebc7d7eloading dwlogo from engine library instead of tests directory
Josh Holtrop
2009-10-12 22:16:47 +00:00
fe403112c9ballstairs.lua test script demonstrating loading model with scaling
Josh Holtrop
2009-10-12 21:42:22 +00:00
6864704d37ag::loadModel and ag::loadStaticModel accepting a second optional parameter to specify the scale of the model to load
Josh Holtrop
2009-10-12 21:40:47 +00:00
968a35bc36added scaling support when creating Engine::Objects
Josh Holtrop
2009-10-12 21:30:56 +00:00
c4f07c6c93added an "auto physics" mode, on by default, that will call doPhysics() before update() if on, settable via ag::setAutoPhysics()
Josh Holtrop
2009-10-12 19:48:58 +00:00
3f407b8970added "dist" target to produce a distributable output
Josh Holtrop
2009-10-12 18:38:19 +00:00
bddbf61f5fadded lib directory for standard Anaglym library of models, textures, scripts, etc...
Josh Holtrop
2009-10-12 17:44:30 +00:00
792e087885added visibility flag to Engine::Object and ag::object::setVisible() to control it
Josh Holtrop
2009-10-12 16:41:42 +00:00
207f7e628afinished implementing ag::object::destroy() so lua calls to object:destroy() will correctly remove the object from the scene
Josh Holtrop
2009-10-12 16:16:39 +00:00
5bf9e9f2ecmoved 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 Holtrop
2009-10-12 15:00:46 +00:00
bd2d3d8b25added ag::drawObjects() to draw all objects in the scene from a lua script
Josh Holtrop
2009-10-12 14:54:40 +00:00
2107a67d08set ball test object to smooth and re-exported it; removed some old camera controls from ballstairs.lua test script
Josh Holtrop
2009-10-12 14:48:14 +00:00