techdragon.nguyen@gmail.com
82058e97c5
* fixed some formatting
...
* pruned out unused local variables.
---- There's no need to define something if it isn't going to be referenced. It consumes extra memory temporarily and more than anything is a potential cause for confusion down the road.
2011-05-08 11:56:25 +00:00
Xawotihs
883f92d8e2
Fixed IOS build
2011-05-07 17:10:01 +00:00
wrenczes@gmail.com
3a4eef68ae
Fixed an uninitialized var.
2011-04-30 00:42:17 +00:00
Xawotihs
7e4364b484
- Allows writing on sdcard
...
- Bound "back" key to menu, "volume down" to next phase and "volume down" to interrupt ... like on the N900 :)
2011-04-27 21:19:25 +00:00
wrenczes@gmail.com
425e49e608
Cleaned up some type conversion warnings.
2011-04-26 06:16:49 +00:00
Xawotihs
f2a52edba7
- wait for SDL events intead of pooling them, this allow very smooth CPU usage
...
- added texture deactivate around each renderer call implemented in opengl es 1.1. It fixes a couple of artifacts but a couple are remaining
- added a compilation switch to allow simulation of opengl es 1.1 on desktop
2011-04-25 21:26:12 +00:00
Xawotihs
137ccdf446
- Activated debug and orientation management in Android manifest
...
- Coded double-click and orientation change for Android
- Clean up debug code badly introduced in opengl code in r3529
- updated Qt project to link against boost on linux
2011-04-25 10:04:44 +00:00
wrenczes@gmail.com
e82362d50a
Missed a part of my psp side change for the ClearScreen change. Now the BeginScene call is consistent with the pc side, and calls clear.
2011-04-24 11:55:04 +00:00
wrenczes@gmail.com
be2a4ee4ec
Mostly formatting cleanup, but a couple of openGL related fixes : don't call state change functions if their params haven't changed. In particular, we call ClearScreen() in several places in the code, but BeginScene() already does this. According to several openGL performance guides I skimmed through, if you call clear more than once per frame draw, performance will suffer.
...
This seems to help with issue r103 - on my win machine, it's substantially better; on psp, not quite as drastic, but it's still better than before.
2011-04-24 10:00:37 +00:00
wrenczes@gmail.com
9fdb3fbe3a
Style formatting. No code changes.
2011-04-24 08:52:12 +00:00
Xawotihs
832904dce1
- Defined keys translation for SDL config
...
- Added boost thread files, that fixes all the threading/compiling/linking problems on Android ...
- Added opengles 1.1 code, there are still some bugs I need to tackle ... and I should realy split this file now !!!
- Added Android debug traces
- Hardcoded resources to "/sdcard/Wagic/Res" for the moment on Android
- Added a wagic SDL project for desktop, and the related SDL frontend used for Android. This frontend is currently mostly desktop based, it needs some work to be fully useable with touch and gesture on Android.
2011-04-23 21:30:36 +00:00
Xawotihs
4ed7f10def
- Added SDL, libjpeg and libpng
...
- Added Android project and Java files
2011-04-23 19:25:48 +00:00
wrenczes@gmail.com
58e340f30c
Removed the precompiled header include from JSocket, as the precompiled header is actually in the mtg project and this is cross pollination. Moreover, mtg specific header changes that we might put in the precompiled header will cause this file in JGE to recompile each time. If we think it'll improve things, we could put in a separate precompiled header in JGE, but I'm not sure it's enough of a gain to bother.
2011-04-22 14:59:10 +00:00
wrenczes@gmail.com
ae227a7cb8
Minor project cleanup:
...
- Consolidated duplicate PSP / PSPENV defines;
- removed some ancillary file crap from the 2010 projects;
- pulled 1xx references from the makefiles;
- consolidated multiple #defines for OutputDebugString into one header (previously was split between config.h & DebugRoutines.h).
2011-04-22 13:12:36 +00:00
wrenczes@gmail.com
5e6c0c612e
Fixed the breakage in the Deck Editor Menu, where the app would hang, looping on trying to word wrap a string. Erwan, pls review. Char is signed here, I'm not sure what the compiler warning was that you saw - NDK related? Does it treat all chars as unsigned?
2011-04-21 23:51:05 +00:00
wagic.the.homebrew
8ff6839c8d
Some preparation work for new platform support.
...
- Added a "PSP" compile-time define to clean up some compile time checks (replaced !WIN32 && !LINUX && !IOS with PSP)
-- Wil, I am aware that this is redundant with the PSPENV variable you introduced recently, I think we can clean that up easily
-- This looks like lots of changes, but most of the time I just moved some blocks here and there
-- tested on VC 2010, PSP, and a bit of NDK
-- I might have broken maemo, iOS, or Linux compilation, can you guys check?
- Fixed some warnings reported by NDK
- NDK still does not compile because recent boost additions (mutex, etc...) are apparently not supported
2011-04-21 13:16:11 +00:00
omegablast2002@yahoo.com
d06965d95e
added tha menu constants variables to fix compiling on vc2008, i guess free version doesnt add it automatically or something becuase mike was able to compile without them
2011-04-20 20:40:28 +00:00
wrenczes@gmail.com
9141f28865
Disabled some JLOG traces in the MP3 code, as they run on a separate thread & tend to hang the psp when logging is enabled.
2011-04-20 06:33:59 +00:00
wrenczes
1117840621
Removed spurious warnings about secured Win API calls by adding _CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS to the compiler settings. This only eliminates the warnings, but doesn't fix the slow compile times - I'll fix that next...
2011-04-20 02:14:37 +00:00
Xawotihs
40958170fa
Fix to have r3450 at least compile on linux 64 bits
2011-04-19 19:04:12 +00:00
wrenczes@gmail.com
ab133e9f98
Err, stupid of me. Now passing in the PSPENV flag correctly...
2011-04-19 05:49:37 +00:00
wrenczes@gmail.com
79835dda33
Slight modification to the DebugTrace calls so that if compiling against debug on psp, the call becomes std::cout. This allows the debug trace calls to mirror out to the console window that's running pspsh.
2011-04-19 04:48:42 +00:00
wrenczes@gmail.com
7e884b53f9
Added a PSPENV environment variable to the psp make files. Also fixed a minor compile bug where the debug flag for psp forced JLOG support, which in turn enabled a JGE_LOG_FILE macro that has long since been removed from the code.
2011-04-19 04:35:42 +00:00
wrenczes@gmail.com
0b821c9b4f
Fixed the window rescaling to do letter/pillar boxing per the email thread.
2011-04-13 04:55:17 +00:00
wrenczes@gmail.com
4e2cc08bb1
Better solution for a (real) fullscreen mode. (Last tweak, promise!)
2011-04-11 04:48:21 +00:00
wrenczes@gmail.com
98220afb46
Something that's been bugging me for a while, and I finally decided to do something about it: fullscreen toggle never worked on Windows. I've now made the F key do a three-way toggle between lo-res (ie standard psp resolution), hi-res (psp resolution doubled, so 960 * 544), and fullscreen (well, not exactly fullscreen, it's a window sized to your desktop's work area; if you have a weird sized desktop, you might get clipping).
2011-04-11 00:30:50 +00:00
wrenczes@gmail.com
8add655df7
Formatting cleanup, modified a function to pass by const reference.
2011-03-31 11:08:58 +00:00
wrenczes@gmail.com
64d421b8b8
Fixed a namespace collision that was causing compile errors in VS2010. bind() was being interpreted as std::bind(), not the winsock bind() call.
2011-03-31 11:07:50 +00:00
wrenczes@gmail.com
e7f2ae4e6e
Added a Boost::recursive_mutex variant to the threading support. Also bumped up the default stack size of a worker thread to 256K, and moved the thread priority slightly down as 0x12 is pretty aggressive for a default value.
2011-03-31 10:37:41 +00:00
wrenczes@gmail.com
d934d9d30f
Fixed a compilation problem on PSP with the minpspw 11.1 SDK, which changed the definition of a u32 from unsigned long to unsigned int.
2011-03-28 04:40:44 +00:00
Xawotihs
29e9ea62c3
Fixed the build problem with VS2008 and actived multithreaded build while I was at it ... you guys liked to wait ? =)
2011-03-19 08:35:57 +00:00
Xawotihs
f9be0a6341
- reworked completly the JNetwork, JSocket interface (had to ifdef out the PSP socket code)
...
- added 2 menus to wait for connection and wait for deck selection
- tested compilation on Qt Linux, Qt Windows and PSP
- deactivated everywhere (NETWORK_SUPPORT to activate).
2011-03-13 21:19:02 +00:00
wrenczes@gmail.com
baf0343063
Makefile changes in JGE to include the boost path. Added a missing include dependency on shared_ptr.
2011-03-02 09:26:31 +00:00
wrenczes@gmail.com
297f87eb04
Fixed relative path includes of JGE headers.
2011-03-02 09:04:31 +00:00
wrenczes@gmail.com
9901329caf
Moved Threading.h into JGE so that it can be used at that level.
2011-03-02 08:14:47 +00:00
wrenczes@gmail.com
772828bced
Removed some overly noisy log tracing in JFileSystem that I had previously put in. One nice thought would be the addition of a 'volume' to tracing messages so that you could choose how much verbosity you want in the logging output, but that's a luxury for the moment.
2011-03-01 08:57:31 +00:00
wrenczes@gmail.com
1c228aba7a
Make the ToHex() util function always available, instead of debug only on win/linux. Useful for tracing addresses in psp log files...
2011-03-01 08:53:15 +00:00
Ittobaal@gmail.com
c6849d35d5
Prefix VS Postfix increment
2011-02-09 20:06:15 +00:00
wrenczes@gmail.com
9085b2a0e1
Some minor reformatting, JLOG instrumentation of the zip file loading.
2011-02-01 05:53:19 +00:00
wrenczes@gmail.com
f2cbd883a6
Apply LF line endings as an SVN property, this time on the JGE source files.
2011-01-28 06:03:52 +00:00
Xawotihs
f90709403f
- Fixed scissor bug introduced in r2912.
...
- Adds code to support TapAndHold gesture, it does not seem to work with
the N900, but it works fine on Linux.
- Removed code checking opengl version as it's no more needed.
2011-01-16 22:47:07 +00:00
Ittobaal@gmail.com
7eaa30e996
add newline @ end of JLogger.h
2011-01-16 17:48:11 +00:00
Xawotihs
04c1ff23dd
Fixed OpenGL 1.1 code with Qt. The Qt version on windows now uses it by default instead of OpenGL 2.0.
2011-01-16 17:31:24 +00:00
wrenczes@gmail.com
eac6d74ebd
Added a couple of null guards against invalid quads / textures in the render() call, with JLOG calls to trace this out if we should hit one of these cases. (Reformatted tabbing in the function while I was there.)
2011-01-11 10:36:15 +00:00
Ittobaal@gmail.com
07ef902d85
Added newline to end-of-file
2011-01-08 12:24:39 +00:00
Xawotihs
58f4631dc2
Removed a phonon warning on maemo, added a debug trace for the launching path
2010-12-30 22:03:52 +00:00
Xawotihs
a77e550bff
Fixed compilation on Linux and a resizing issue
2010-12-30 02:17:22 +00:00
wrenczes
39e6d4f2b5
Reworked some fixes submitted to us by ittobaal. Several fclose calls he suggested had no bearing (if fopen fails, calling fclose on a null pointer is pointless), but the (missing) array deletions were definitely valid bugs. The fix for CreateTexture() was a little loose, so I cleaned it up somewhat.
...
Issue: 566
2010-12-27 20:00:33 +00:00
Xawotihs
53c68f4104
Replaced double left click support for desktop version by simple left click. Maemo still uses double click.
2010-12-24 03:19:26 +00:00
Xawotihs
b3fb8022a0
Deactivated the QImage code as it causes problems on win7 and vista. This implies that the Qt version still depends on libjpeg, libpng and libgif
2010-12-23 07:57:50 +00:00