Josh Holtrop
|
ebb8667962
|
seeding the random number generator based on the time
git-svn-id: svn://anubis/anaglym/trunk@116 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-20 18:09:08 +00:00 |
|
Josh Holtrop
|
e1281bde17
|
added registerEventHandler() and clearEventHandler() Engine functions with ag:: lua interfaces
git-svn-id: svn://anubis/anaglym/trunk@115 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-20 02:19:43 +00:00 |
|
Josh Holtrop
|
47515f7b1c
|
better error reporting
git-svn-id: svn://anubis/anaglym/trunk@114 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-20 00:39:41 +00:00 |
|
Josh Holtrop
|
f8e918526e
|
F1 toggles fullscreen, F2 toggles mouse cursor grabbing
git-svn-id: svn://anubis/anaglym/trunk@113 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-20 00:11:58 +00:00 |
|
Josh Holtrop
|
66e8b9c015
|
added mousebutton_{up/down} and mouse_motion events, renamed "pressed" to "down" and "released" to "up" in event names
git-svn-id: svn://anubis/anaglym/trunk@112 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 21:50:53 +00:00 |
|
Josh Holtrop
|
bd4eab495c
|
added mouse button down/up and mouse motion events
git-svn-id: svn://anubis/anaglym/trunk@111 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 21:44:08 +00:00 |
|
Josh Holtrop
|
978293a57e
|
restructured events a bit for efficiency
git-svn-id: svn://anubis/anaglym/trunk@110 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 18:58:46 +00:00 |
|
Josh Holtrop
|
3aa41bedd8
|
added ag::object::setRotation()
git-svn-id: svn://anubis/anaglym/trunk@109 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 17:25:51 +00:00 |
|
Josh Holtrop
|
c9b0bc2d82
|
fixed Engine::removeObject() to destroy the OdeWorld object as well to remove it from the physics computations
git-svn-id: svn://anubis/anaglym/trunk@108 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 16:22:59 +00:00 |
|
Josh Holtrop
|
2f0bef4297
|
realigned comments
git-svn-id: svn://anubis/anaglym/trunk@107 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 16:02:10 +00:00 |
|
Josh Holtrop
|
28242e159b
|
updated Engine to use fopen instead of open so that binary files are loaded properly on Windows
git-svn-id: svn://anubis/anaglym/trunk@106 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 12:44:37 +00:00 |
|
Josh Holtrop
|
fc55b0c3e7
|
updated to build in MSYS again...
git-svn-id: svn://anubis/anaglym/trunk@105 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 12:30:13 +00:00 |
|
Josh Holtrop
|
9473b592e4
|
adding delete key to cratestack.lua - something is not working though :)
git-svn-id: svn://anubis/anaglym/trunk@104 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 03:34:49 +00:00 |
|
Josh Holtrop
|
6b5d200863
|
added cratestack.lua test
git-svn-id: svn://anubis/anaglym/trunk@103 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 03:15:40 +00:00 |
|
Josh Holtrop
|
724622e094
|
add absolute/relative force/torque addition functions
git-svn-id: svn://anubis/anaglym/trunk@102 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 02:53:58 +00:00 |
|
Josh Holtrop
|
7e22874623
|
added crate library object
git-svn-id: svn://anubis/anaglym/trunk@101 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 01:59:25 +00:00 |
|
Josh Holtrop
|
9a944721ca
|
added command-line options to set width, height, fullscreen, and input grabbing
git-svn-id: svn://anubis/anaglym/trunk@100 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-19 01:18:14 +00:00 |
|
Josh Holtrop
|
c6319a3a1b
|
added ag::isKeyDown; Engine keeping track of which keys are currently pressed
git-svn-id: svn://anubis/anaglym/trunk@99 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-18 22:48:52 +00:00 |
|
Josh Holtrop
|
c63a4bb808
|
Engine calling update_event, key_pressed_event, and key_released_event
git-svn-id: svn://anubis/anaglym/trunk@98 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-18 22:20:22 +00:00 |
|
Josh Holtrop
|
624f8a8dcc
|
updated clean target in Makefile
git-svn-id: svn://anubis/anaglym/trunk@97 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-18 21:54:20 +00:00 |
|
Josh Holtrop
|
75a80ae378
|
added gen-sdl-keymap.pl to generate sdl_keymap.h and sdl_keymap.cc
git-svn-id: svn://anubis/anaglym/trunk@96 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-18 21:46:53 +00:00 |
|
Josh Holtrop
|
79b11ba619
|
updated Engine to use TextureCache
git-svn-id: svn://anubis/anaglym/trunk@95 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-18 16:33:58 +00:00 |
|
Josh Holtrop
|
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
git-svn-id: svn://anubis/anaglym/trunk@94 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-17 22:12:34 +00:00 |
|
Josh Holtrop
|
387141b506
|
first time recompiling successfully after WFObj restructuring!
git-svn-id: svn://anubis/anaglym/trunk@93 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-17 21:58:34 +00:00 |
|
Josh Holtrop
|
580788097d
|
added TOPLEVEL to recursively find includes relative to the top level directory
git-svn-id: svn://anubis/anaglym/trunk@92 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-17 21:25:54 +00:00 |
|
Josh Holtrop
|
a984a625cd
|
added a couple more externals
git-svn-id: svn://anubis/anaglym/trunk@91 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-17 19:43:06 +00:00 |
|
Josh Holtrop
|
d58ceeaf01
|
added FileLoader external
git-svn-id: svn://anubis/anaglym/trunk@90 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-16 19:21:27 +00:00 |
|
Josh Holtrop
|
dd00b76d50
|
added a textured checkerball model, but not loading textures to draw yet
git-svn-id: svn://anubis/anaglym/trunk@89 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 04:43:15 +00:00 |
|
Josh Holtrop
|
967b6ac5b5
|
added autoDrawObjects setting, on by default
git-svn-id: svn://anubis/anaglym/trunk@88 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 04:06:24 +00:00 |
|
Josh Holtrop
|
53e98eb57a
|
added autoStartFrame and autoEndFrame
git-svn-id: svn://anubis/anaglym/trunk@87 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 04:03:04 +00:00 |
|
Josh Holtrop
|
3d5a5b1ecb
|
implemented multi-sampling for full-screen anti-aliasing (FSAA)
git-svn-id: svn://anubis/anaglym/trunk@86 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 03:50:03 +00:00 |
|
Josh Holtrop
|
cc83d92c18
|
moved Video out of Engine
git-svn-id: svn://anubis/anaglym/trunk@85 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 03:45:46 +00:00 |
|
Josh Holtrop
|
eafeac9bf9
|
rolled back all changed to implement multitasking
git-svn-id: svn://anubis/anaglym/trunk@84 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 03:38:32 +00:00 |
|
Josh Holtrop
|
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.
git-svn-id: svn://anubis/anaglym/trunk@83 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 03:32:52 +00:00 |
|
Josh Holtrop
|
e7d5e6eed1
|
supposed to be swapping buffers now but only getting a black screen... not a good sign
git-svn-id: svn://anubis/anaglym/trunk@82 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 02:44:45 +00:00 |
|
Josh Holtrop
|
b9a4ce22ed
|
reworked startFrame() and endFrame()
git-svn-id: svn://anubis/anaglym/trunk@81 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 01:36:18 +00:00 |
|
Josh Holtrop
|
59818a253d
|
processing events in the engine thread
git-svn-id: svn://anubis/anaglym/trunk@80 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 01:27:54 +00:00 |
|
Josh Holtrop
|
917a226e0f
|
maintaining an event queue for passing events to the engine thread from the main SDL thread
git-svn-id: svn://anubis/anaglym/trunk@79 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 01:20:58 +00:00 |
|
Josh Holtrop
|
a630609767
|
compiling again after refactoring SDL calls out of Engine into anaglym.cc!
git-svn-id: svn://anubis/anaglym/trunk@78 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-14 00:32:02 +00:00 |
|
Josh Holtrop
|
38a517174b
|
broke Engine into its own compilation module; this will assist with multithreading later...
git-svn-id: svn://anubis/anaglym/trunk@77 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-13 16:43:28 +00:00 |
|
Josh Holtrop
|
1e5ebc7d7e
|
loading dwlogo from engine library instead of tests directory
git-svn-id: svn://anubis/anaglym/trunk@76 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 22:16:47 +00:00 |
|
Josh Holtrop
|
90651eb9e8
|
added dwlogo library object
git-svn-id: svn://anubis/anaglym/trunk@75 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 22:15:17 +00:00 |
|
Josh Holtrop
|
fe403112c9
|
ballstairs.lua test script demonstrating loading model with scaling
git-svn-id: svn://anubis/anaglym/trunk@74 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 21:42:22 +00:00 |
|
Josh Holtrop
|
6864704d37
|
ag::loadModel and ag::loadStaticModel accepting a second optional parameter to specify the scale of the model to load
git-svn-id: svn://anubis/anaglym/trunk@73 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 21:40:47 +00:00 |
|
Josh Holtrop
|
968a35bc36
|
added scaling support when creating Engine::Objects
git-svn-id: svn://anubis/anaglym/trunk@72 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 21:30:56 +00:00 |
|
Josh Holtrop
|
c4f07c6c93
|
added an "auto physics" mode, on by default, that will call doPhysics() before update() if on, settable via ag::setAutoPhysics()
git-svn-id: svn://anubis/anaglym/trunk@71 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 19:48:58 +00:00 |
|
Josh Holtrop
|
3f407b8970
|
added "dist" target to produce a distributable output
git-svn-id: svn://anubis/anaglym/trunk@70 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 18:38:19 +00:00 |
|
Josh Holtrop
|
bddbf61f5f
|
added lib directory for standard Anaglym library of models, textures, scripts, etc...
git-svn-id: svn://anubis/anaglym/trunk@69 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 17:44:30 +00:00 |
|
Josh Holtrop
|
792e087885
|
added visibility flag to Engine::Object and ag::object::setVisible() to control it
git-svn-id: svn://anubis/anaglym/trunk@68 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 16:41:42 +00:00 |
|
Josh Holtrop
|
207f7e628a
|
finished implementing ag::object::destroy() so lua calls to object:destroy() will correctly remove the object from the scene
git-svn-id: svn://anubis/anaglym/trunk@67 99a6e188-d820-4881-8870-2d33a10e2619
|
2009-10-12 16:16:39 +00:00 |
|