Vinyl Darkscratch
7274072a2d
Add window fade-out on exit
2017-04-04 02:31:08 -07:00
Vinyl Darkscratch
6b5eff715b
Add text input function (broken, read description)
...
Note: using this function breaks the graphics rendering at the moment,
due to code inconsistencies (utilizing SDL renderers when the rest of
the program uses GL ones, mainly), working on fixes for it!
2017-04-04 00:43:53 -07:00
Vinyl Darkscratch
e645f3dd0e
Merge remote-tracking branch 'mathewv/master'
2017-03-30 17:05:09 -07:00
Mathew Velasquez
e3f572d6fe
hidpi fix
2017-03-30 18:46:55 -04:00
Marty Plummer
60e967e3b7
Add icon and resource files for windows
...
Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
2017-03-09 08:24:13 +01:00
Jonas Kulla
0f9b5f274a
Filesystem: Search for "Fonts/" with case-insensitivity
2017-03-08 16:30:07 +01:00
Jonas Kulla
6349146e01
main: Only set window icon on Linux
...
OSX carries high-resolution icons in its bundles, and windows uses
windres to embed .ico files, so don't interfere with those.
2017-03-04 11:04:02 +01:00
Jonas Kulla
c4dd3ffaf6
Config: Use set for preloadScripts
...
Would probably make sense for all other string vectors too.
2017-03-03 19:37:19 +01:00
Jonas Kulla
55cec53911
Sprite: Clamp src_rect to bitmap bounds
2017-02-17 19:29:38 +01:00
Vinyl Darkscratch
2119b1919d
Merge remote-tracking branch 'mathewv/master'
2017-01-11 00:54:30 -08:00
root
9fb6ca4d89
Committer: gir
...
Changes to be committed:
modified: src/audio.cpp
2017-01-03 19:57:29 -06:00
root
03f4610e20
Forgot to change volume when starting to play bgm, me, and bgs
...
Committer: gir <girakacheezer@gmail.com>
2017-01-01 04:56:41 -06:00
root
29fd891550
Adding backend changes for settings menu
...
Committer: mshirt <mshirt@ualberta.ca>
2017-01-01 04:48:40 -06:00
Vinyl Darkscratch
641851db65
Merge remote-tracking branch 'mathewv/master'
2016-12-29 13:56:20 -08:00
Mathew Velasquez
d41e36c751
Fix minimize crash by sacrificing an unnecessary feature
2016-12-26 20:57:51 -05:00
Vinyl Darkscratch
2733b5ad06
Remove doubled Smooth attribute
2016-12-16 13:15:32 -08:00
Vinyl Darkscratch
b0b024a01a
Merge remote-tracking branch 'mathewv/master'
2016-12-15 13:37:16 -08:00
Mathew Velasquez
d47a2241ee
Messagebox fix
2016-12-15 05:39:51 -05:00
Vinyl Darkscratch
f8c3862c2e
Accommodate for @mathewv's "smooth" implementation
2016-12-14 21:14:42 -08:00
Vinyl Darkscratch
582b750c2b
Merge remote-tracking branch 'mathewv/master'
2016-12-14 21:10:23 -08:00
Vinyl Darkscratch
3224d65988
Made paths in script cross-platform friendly
...
An ending that made me very, VERY teary-eyed, interrupted by an access
denied error…argh, code bugs, why! >~< Basically, the path to “My
Games” and the name of the journal’s executable are now defined by
oneshot.cpp and loaded into the Ruby script, so the ending isn’t
interrupted. Now all that’s left is to compile the journal!
2016-12-14 21:09:33 -08:00
Mathew Velasquez
a0ba40916d
Smooth scaling Graphics option
2016-12-14 22:05:53 -05:00
Vinyl Darkscratch
0a1d9c570f
Add "smooth" property to graphics module
...
This is just a simple bind and addition of a “smooth” property in the
graphics module, to fix fatal issue #2
2016-12-14 16:06:40 -08:00
Vinyl Darkscratch
85da9ff7e8
Reorganizing Mac and Linux blocks and commence on retina support
2016-12-13 21:16:33 -08:00
Vinyl Darkscratch
0b7fdbf8e1
Updates for a future Mac build
2016-12-12 22:59:07 -08:00
Mathew Velasquez
aa7818847c
Lots of stuff
2016-12-06 23:49:37 -05:00
Jonas Kulla
541e24f678
Bitmap: Use more accurate HSV-based hue shift algorithm
...
The previously YIQ-based algorithm turned out to be both slow,
and horribly inaccurate.
Another algorithm based on rotating the color value in the
RGB cube along the diagonal axis was also considered, which was
acceptable in terms of accuracy, and very fast.
In the end, I decided on a HSV-based one, because it is by far
the most accurate one, while still being a tad faster than the
YIQ solution.
Algorithm source: gamedev.stackexchange.com/a/59808/24839
A very simple GPU time benchmark when shifting a 2048^2 bitmap:
YIQ rot RGB rot HSV shift
radeon 13.4 ms 2.8 ms 11.4 ms
intel 13.0 ms 6.0 ms 10.5 ms
radeon: HD 3650 mobility
intel: N3540 integrated (Baytrail)
However hue shifting has never shown up as a bottleneck before,
so these are more academic.
2016-10-30 08:50:45 +01:00
Mathew Velasquez
0dc872bcea
Journal screen stuff
2016-10-13 20:26:01 -04:00
Mathew Velasquez
302ec6dd02
I stopped making commits for a good while. Here's the latest junk.
2016-09-19 13:54:38 -04:00
Jonas Kulla
d4e09f55bd
WindowVX: Fix move() not setting the correct dirty flags
2016-07-27 12:03:45 +02:00
Jonas Kulla
e98c2e0535
Bitmap: Don't throw away cached surface in setPixel()
...
Instead, update the surface with the same change. For many
consecutive getPixel() -> setPixel() calls on the same bitmap,
this avoids calling glReadPixels at every iteration.
2016-07-27 11:59:08 +02:00
Jonas Kulla
fdaf6c3611
Bitmap: Split surface pixel address calculation into helper
2016-07-27 11:56:43 +02:00
Mathew Velasquez
82493cd0a0
Added footprints and src_rect to Plane class
2016-04-11 21:33:54 -04:00
Mathew Velasquez
d53ad4b124
Improved internationalization support
2016-04-06 13:45:36 -04:00
Mathew
d0cb19e9d2
Minor config tweaks
2016-03-18 00:25:30 -04:00
Mathew Velasquez
99ae7b35ad
Minor engine tweaks
...
Made OneShot the standard spelling, adjusted keybindings, removed jpeg dependency, and turned vsync on by default
2016-03-11 00:30:20 -05:00
Mathew Velasquez
79fc639b83
Build portability fixes and name input issue fix
2016-03-07 17:14:48 -05:00
Mathew Velasquez
7275291e7d
Fixed steam-related freeze and msgbox crash
2016-03-02 20:45:06 -05:00
Mathew Velasquez
1fd808d0af
Gutted more unused features
2016-02-29 15:40:10 -05:00
Mathew Velasquez
05d2946280
Replaced initializer list for portability
2016-02-29 04:22:48 -05:00
Mathew Velasquez
546f29f42e
Preliminary i18n improvements
2016-02-29 01:41:37 -05:00
Mathew Velasquez
a4de9d9f10
integrated steamshim
2016-02-29 01:22:55 -05:00
Mathew Velasquez
f44138015b
Cleaned up config; Fullscreen option now indicates Big Picture
2016-02-28 08:13:29 -05:00
Mathew Velasquez
71867727ab
Fixed crashes/weirdness with obscured window code
2016-02-27 22:33:02 -05:00
Mathew Velasquez
df2a32d4f0
Changed OpenGL debugging to a compile time option
2016-02-26 18:33:22 -05:00
Jonas Kulla
5964aa8f76
EventThread: ifdef out broken SDL function on OSX
2016-02-26 18:13:51 -05:00
Jonas Kulla
c16f20527e
EventThread: Fix mouse cursor not being hidden
2016-02-26 18:13:51 -05:00
Mathew Velasquez
4be6c0d592
Gutted midi system
2016-02-26 17:03:01 -05:00
Jonas Kulla
47ef36ca19
EventThread: ifdef out broken SDL function on OSX
2016-02-24 17:55:28 +01:00
Jonas Kulla
de74fc1bc3
EventThread: Fix mouse cursor not being hidden
2016-02-24 17:45:55 +01:00
Mathew Velasquez
b63b3ba8f3
Renamed save data to .dat for easier Steam cloud integration
2016-02-18 18:23:16 -05:00
Mathew Velasquez
ae82a61ca7
Fix build on Ubuntu
2016-02-17 17:37:39 -05:00
Mathew Velasquez
21fcc9e19c
Basic Steamworks API support
2016-02-17 17:16:22 -05:00
Mathew Velasquez
2df5fd29de
Renamed $DEBUG to $debug to avoid verbose mode.
...
Also made GL debug functions print less stuff.
2016-02-17 17:14:16 -05:00
Mathew Velasquez
ba0203169e
Added obscured/scratched window puzzle
2016-02-17 17:14:16 -05:00
Mathew
90cf07c825
Linked to debugMode option, gutted RTP config
2016-01-05 14:50:18 -05:00
Mathew
dd8bbcad97
Fixed username detection bug
2016-01-05 14:50:18 -05:00
Mathew Velasquez
b625d2e891
Renamed Scripts.rxdata to xScripts.rxdata so that editor won't overwrite scripts
2016-01-05 14:50:18 -05:00
Mathew Velasquez
da948348ac
Consistent, proper CJK support
2016-01-05 14:50:18 -05:00
Mathew Velasquez
fe65d7dd29
HACK to fix text rendering
2016-01-05 14:50:18 -05:00
Mathew Velasquez
5ff71744b5
Rudimentary map wrapping added
2016-01-05 14:50:18 -05:00
Mathew Velasquez
2e474a5dc4
Removed dataPathOrg/App config options, changed example config
2016-01-05 14:50:18 -05:00
Mathew Velasquez
6384696bcf
Tweaked configuration options
2016-01-05 14:50:18 -05:00
Mathew Velasquez
a702d9639b
Raise exception on FileSystem::openReadRaw
2016-01-05 14:50:18 -05:00
Mathew Velasquez
10f3419ac6
Maps no longer wrap at edges, but display blank tiles
2016-01-05 14:50:18 -05:00
Mathew Velasquez
1deef29c1a
removed all traces of INI_ENCODING
2016-01-05 14:50:17 -05:00
Mathew Velasquez
10e0aaabd1
fixed OS X build
2016-01-05 14:50:17 -05:00
Mathew Velasquez
1c5d4c2645
added SDL controller support
2016-01-05 14:50:17 -05:00
Mathew Velasquez
3c6cef9aeb
overhauled input symbols to be more gamepad-friendly
2016-01-05 14:50:17 -05:00
Mathew Velasquez
3d2d1a9150
Manually rebased over latest mkxp commit. Some features, such as lighting, are not reimplemented yet.
2016-01-05 14:50:17 -05:00
Jonas Kulla
5d776319b5
Font/MRI: Improve handling of (default_)name attributes
...
More accurate behavior, such as Font objects properly inheriting
their name attributes, and centralization of code for picking
the first existing name from a passed string array.
Also centralizes initial default_name population in core.
Note: This currently breaks the mruby binding build.
2016-01-05 08:47:52 +01:00
Mook
8e411cbcfe
Graphics: Stub out play_movie
...
Some people are using it to detect the RGSS version.
2015-10-30 08:01:36 -07:00
Jonas Kulla
7bf6eca362
EventThread: Comment out unneeded SDL2 constants
2015-07-26 23:56:50 +02:00
Jonas Kulla
4d97a17c44
TilemapVX: Ensure legs of out-of-view table tiles are drawn
2015-07-21 12:13:25 +02:00
Jonas Kulla
7017ca1c53
Use static lifetime for constant array
2015-07-21 12:13:25 +02:00
Jonas Kulla
30465691ae
Tilemap: Fix map viewport calculation
...
Calculation was completely off as it didn't take into
account the imposed viewport origin.
All in all, similar fixes as the previous ones to TilemapVX.
2015-07-21 12:13:25 +02:00
Jonas Kulla
dd7545fcf2
TilemapVX: Clean up the horrible map viewport calculation code
...
Also rename "offset" to "origin" which makes a lot more sense
for ox/oy attributes.
2015-07-21 12:13:24 +02:00
Jonas Kulla
5aaeb0206c
Remove some stuff that was accidentally committed
2015-07-21 12:13:24 +02:00
Jonas Kulla
9a3dd2d554
Config: Enable smoothScaling by default
...
There's really no reason not to.
2015-07-21 12:13:24 +02:00
Jonas Kulla
384249c31a
Unify float literals to use f suffix and avoid double promotions
...
I might have missed some.
2015-07-21 12:13:24 +02:00
Jonas Kulla
d1ee507ec4
Vec2i, IntRect: Add unequal operator
2015-07-21 12:13:24 +02:00
Jonas Kulla
fe6799d00b
TilemapVX: Fix map viewport calculation
2015-07-10 04:58:28 +02:00
Jonas Kulla
fe709b6010
Use vector math
2015-07-10 04:51:29 +02:00
Jonas Kulla
54c1107f19
FileSystem: Fix file lookup if unrelated files with same name exist
...
Before, even though we did match all possible extensions,
we only took the first match and tried opening it.
If we were looking for a .png image, but there was an unrelated
.txt file with the same name (as it actually happens in RTPs),
we would potentially see the .txt first, try opening it,
and fail alltogether, even though the image file existed.
Now we try opening all matching files until we find one that
we can parse.
This fixes #101 .
2015-07-09 15:38:50 +02:00
Jonas Kulla
533e69275a
Constify
2015-07-09 14:53:59 +02:00
Jonas Kulla
5382cc11a3
MidiSource: Close source SDL_RWops before throwing error
2015-07-09 12:38:04 +02:00
Jonas Kulla
9acdd206f6
Vec4: Rename 'xyzHasEffect()' to something that makes sense
2015-07-07 16:07:04 +02:00
Jonas Kulla
6e176a454c
Constify
2015-07-07 16:06:45 +02:00
Jonas Kulla
afab51279e
Graphics: Fix viewport color/flash effectiveness calculation
...
Fixes #121 .
2015-07-07 16:06:11 +02:00
Jonas Kulla
61849a9158
GLMeta: Eliminate redundant parameter
2015-07-07 15:25:48 +02:00
Jonas Kulla
2d31d08fa6
Add some general fixes from #111 found by @chosenofbear
2015-06-18 07:21:55 +02:00
Jonas Kulla
6380a93cec
Graphics: Fix ::transition() "filename" default value
...
The default value is an empty string, which triggers the simple
transition. Passing null is not legal (and wasn't possible in
mkxp from Ruby side anyway).
Fixes #108 .
2015-06-10 13:30:26 +02:00
Jonas Kulla
d5bacf50f5
TileAtlasVX: Fix table extents being covered by below tiles
...
Fixes the appearance of tables in VX, which place table
tiles on the same layer as ground tiles.
2015-05-31 20:58:05 +02:00
Jonas Kulla
e4bc08e972
Fix for old, broken OpenAL-Soft headers
...
See 4219b91bbb
2015-05-26 01:40:53 +02:00
Jonas Kulla
e72bced0f7
'snprintf()' guarantees null termination of buffer
...
Thanks @cremno.
2015-03-27 08:21:47 +01:00
Jonas Kulla
794e86d0ab
AudioStream: Prevent MeWatch from restarting fully faded out stream
2015-03-22 09:06:29 +01:00
Jonas Kulla
7260c467b8
AudioStream: Clarify thread-safe usage of stream flags
2015-03-22 08:42:43 +01:00
Jonas Kulla
5379511d95
Bitmap: Fix vertical alignment for some letters with outline
2015-03-04 23:34:56 +01:00
Jonas Kulla
91c9bfd0f4
Fix compilation failure inside OSX ifdef block
2015-02-26 19:44:05 +01:00
Jonas Kulla
7393f7e951
Config: Add "execName" to specify ini and rgssad filenames
2015-02-19 02:23:23 +01:00
Jonas Kulla
531441d4e3
Make audio asset decoding failures non-fatal
...
Matches RMXP behavior. This is also useful in case midi files
are to be played, but fluidsynth isn't available.
2015-02-17 02:09:55 +01:00
Jonas Kulla
0f91bdefea
Fix indentation
2015-02-17 01:48:05 +01:00
Jonas Kulla
44eaaf5985
FileSystem: Change file lookup to match all extensions
...
Previously, file lookup (ie. extension supplementing) would only
try out a few predetermined extensions based on the asset type.
This was not accurate in regard to RMXP's behavior, which will
happily match "some_asset" against "some_asset.abcef" and try
to open it.
Some games make use of this quirk and rename their ogg audio files
to "*.dat" or similar to thwart users from copying them.
This change also makes it easier to read arbitrary formats
supported by SDL_image without modifying mkxp.
2015-02-17 01:42:11 +01:00
Jonas Kulla
87462fd7b0
Use more explicit vector math via method overloads
2015-02-10 17:04:00 +01:00
Jonas Kulla
a4b1be1da5
Remove superfluous lines
2015-02-10 15:53:58 +01:00
Jonas Kulla
c328ebee04
Typo
2015-02-10 15:53:12 +01:00
Jonas Kulla
713ea07558
SDL hints need to be set before initialization
2015-02-10 15:51:33 +01:00
Jonas Kulla
b2631d4c23
Bitmap: Fix scaled blit from mega surface to texture
...
SDL's default blend mode for surfaces (SDL_BLENDMODE_BLEND)
renders the source surface unusable for further use.
2015-02-10 15:34:42 +01:00
Jonas Kulla
4864f63c6c
Sprite: Fix visibility calculation
...
The previous code assumed the scene origin to always be 0,0.
2015-02-04 15:17:45 +01:00
Jonas Kulla
e339964076
MidiSource: Fix some channels being mute after looping
2015-01-22 13:13:57 +01:00
Jonas Kulla
fa0459ad93
Fix code formatting
2015-01-15 11:09:12 +01:00
Jonas Kulla
74f8c91bf4
Oops
2015-01-15 09:05:51 +01:00
Jonas Kulla
7cbe1eef94
Graphics: Improve transition "vague" parameter accuracy
2015-01-15 08:26:33 +01:00
Jonas Kulla
f6604a88b8
sdl-util.h: Consider physical filesystem when opening raw files
...
This is necessary so games stored on external SD cards can be
run under Android.
2015-01-15 08:11:01 +01:00
Jonas Kulla
c92df0ce3a
EventThread: Pause OpenAL device when entering background
...
This requires ALC_SOFT_pause_device to be present. It stops the
alc thread from needlessly consuming CPU resources.
2015-01-15 08:07:22 +01:00
Jonas Kulla
7c6a2b2c62
Pause RGSS execution when moving into background on Android
...
Assuming that there is enough memory for mkxp to stay in the
background and that the OS doesn't kill the process, this should
allow smooth resuming after moving back into the foreground.
For now, EGL context loss is not handled.
2015-01-15 08:02:21 +01:00
Jonas Kulla
012d87d05a
Disable accelerometer joystick emulation on Android
2015-01-15 07:21:07 +01:00
Jonas Kulla
a05a3deff6
EventThread: Factor out event discarding code
2015-01-03 20:48:31 +01:00
Jonas Kulla
6f88ddc51c
Config: Move default entry values into PO_DESC macro list
2015-01-03 19:28:23 +01:00
Jonas Kulla
7003039e56
EventThread: Track touch state (maximum 4 fingers)
2015-01-03 19:18:52 +01:00
Jonas Kulla
146e0294b4
Add option to fix the framerate to the native screen refresh rate
...
Useful on mobile devices where using non-standard framerates
looks absolutely horrible and screen refresh rates vary highly.
2015-01-03 18:58:13 +01:00
Jonas Kulla
4fb94aaf10
FileSystem: Add fallback to wrapped SDL_RWops if normal mounting fails
...
Makes it easy to mount archives on Android residing in "assets/".
2015-01-02 14:50:14 +01:00
Jonas Kulla
3411435138
Factor out some thread communication code (window size, bindings)
2015-01-02 01:41:23 +01:00
Jonas Kulla
c63a8947ce
Tilemap: Don't emit draw with zero quads
...
This is illegal on some mobile drivers.
2015-01-02 00:09:53 +01:00
Jonas Kulla
b42725ea20
Add config option working around buggy graphics drivers
...
"subImageFix=true" should fix missing text on radeonsi fglrx
as well as most mobile drivers. Also fixes tileset atlas on
mobile.
2015-01-01 23:38:11 +01:00
Jonas Kulla
9122446b23
EventThread: Discard fake mouse events on mobile
2014-12-31 18:52:21 +01:00
Jonas Kulla
7cbf81c83a
Add 'printFPS' config entry to continuously print FPS to console
...
Useful on platforms that don't have window decorations.
2014-12-31 18:52:21 +01:00
Jonas Kulla
b4bca7ea3b
GLState: Constify
2014-12-31 18:52:21 +01:00
Jonas Kulla
725af97e7b
gl-util.h: Unify function qualifier use
2014-12-31 18:52:21 +01:00
Jonas Kulla
35077793a0
Add std::streambuf wrapper around SDL_RWops for boost
...
Also add SDL_RWops version of the readFile utility function.
2014-12-31 18:52:21 +01:00
Jonas Kulla
5974d05380
Create OpenAL device in main() and store in RGSSThreadData
2014-12-31 18:52:21 +01:00
Jonas Kulla
3596fc568d
main.cpp: Immediately query the actual window size after creation
2014-12-31 18:52:21 +01:00
Jonas Kulla
69795be30b
Android uses the Linux shared object naming convention
2014-12-31 18:52:21 +01:00
Jonas Kulla
0a484c8a31
std::string constructor doesn't like null pointers
2014-12-31 18:52:20 +01:00
Jonas Kulla
4560589e25
Audio: Set overall volume of OpenAL output to 0.8
2014-12-31 18:52:20 +01:00
Jonas Kulla
88c41bcc62
Debug: Use native logging on Android
2014-12-31 18:52:20 +01:00
Jonas Kulla
a112529f53
Use compile time strlen
2014-12-31 18:52:20 +01:00
Jonas Kulla
b963c67339
SharedState: Don't reallocate global tex on every bind
2014-12-31 18:52:20 +01:00
Jonas Kulla
ee17bb2137
Call glReleaseShaderCompiler on GLES
2014-12-31 18:52:20 +01:00
Jonas Kulla
3fb4108306
gl-fun.h: Add some enums missing in gl2.h
2014-12-31 18:52:20 +01:00
Jonas Kulla
fcfa079e7b
Perform chdir(gameFolder) early in main()
2014-12-31 18:52:20 +01:00
Jonas Kulla
03a6c657c4
main.cpp: Always display errors in a message box
2014-12-31 18:52:20 +01:00
Jonas Kulla
373b90af00
Graphics: Optimize Viewport effect rendering
...
Using the kitchen sink plane shader for viewport effects, even
if only a small part of them are active, incurs great performance
loss on mobile, so split the rendering into multiple optional
passes which additionally use the blending hardware for faster
mixing (lerping).
Also, don't mirror the PingPong textures if the viewport effect
covers the entire screen area anyway.
2014-12-31 18:52:19 +01:00
Jonas Kulla
3c0a530eba
Sprite: Add special case shader for translucent effect
...
Translucent sprites (opacity < 255) are very common,
so using a custom shader instead of the full blown effect one
helps a lot, especially on mobile.
2014-12-31 18:52:19 +01:00
Jonas Kulla
a53163660f
Shader: Refine preprocessing on GLES platform
...
Don't globally set float precision to mediump, only fragment
shaders need that and defining it for vertex shaders causes
tilemap cracks.
Also manually define low precision for variables that hold
color / alpha values.
2014-12-31 18:52:19 +01:00
Jonas Kulla
02f19c03c9
Merge pull request #86 from Daverball/controller-fix
...
Xbox controllers require JoyHat events to be tracked on windows
2014-12-31 18:50:57 +01:00
David Salvisberg
90e1c09711
Added support for JHat events.
2014-12-31 16:39:28 +01:00
Jonas Kulla
150abff1c0
Merge pull request #85 from Daverball/save-button-config
...
Button config menu should save config to disk whenever changes are accepted.
2014-12-31 14:13:53 +01:00
David Salvisberg
b1e1d28879
Added rudimentary support for font outlines.
2014-12-31 13:49:18 +01:00
David Salvisberg
6829ddc09f
Removed store keybindings from main, since it now already gets stored onAccept.
2014-12-28 06:06:28 +01:00
David Salvisberg
7413c3d994
Make button config menu save changes to disk whenever the changes are accepted.
2014-12-27 14:40:08 +01:00
Jonas Kulla
11cfe887c2
Fix several classes not accepting disposed bitmaps
...
Fixes an error in Alpha Kimori.
2014-12-22 08:22:45 +01:00
Jonas Kulla
98b0b71359
Don't use relative paths when #including xxd output
2014-11-30 17:50:24 +01:00
Jonas Kulla
60f101f2e6
Tilemap(VX): Factor out common code into tilemap-common.h
...
Renamed flashmap.h to tilemap-common.h as it already contained
shared functions.
2014-11-30 17:46:28 +01:00
Jonas Kulla
f00cb60707
debugwriter.h: Use unbuffered cerr instead of clog
2014-11-29 17:55:18 +01:00
Jonas Kulla
c1aab96454
Rename src/debuglogger -> src/gl-debug
2014-11-29 17:51:37 +01:00
Jonas Kulla
bc31922c33
Allow inserting GL string markers (GREMEDY_string_marker)
2014-11-29 17:33:39 +01:00
Jonas Kulla
5979c5f778
Add placeholder application icon
2014-11-29 17:30:53 +01:00
Jonas Kulla
c2f8b6b749
SettingsMenu: Fix help label sometimes not appearing
2014-11-28 06:04:34 +01:00
Jonas Kulla
276160f0d5
gl-fun.h: Fix compilation with outdated SDL headers
2014-11-22 17:03:16 +01:00
Jonas Kulla
f236e34e2d
Serializable, Table: Some general cleanups
2014-11-20 14:45:54 +01:00
Jonas Kulla
9ac14800da
Keybindings: SDL_GetPrefPath result always ends with separator
2014-11-17 07:24:22 +01:00
Jonas Kulla
5c3f4b905a
Use fopen with binary mode everywhere (for Windows compat)
2014-11-17 07:18:39 +01:00
Jonas Kulla
f7a3e3c5d2
Table: General clean up and code reduction
...
- Use STL vector instead of doing manual mallocs
- Throw away the resize optimizations; hardly useful
- Marshal.dump data layout is the same as ours (in LE),
so we can just memcpy everything instead of copying
one by one
Throwing away part of the very first code I wrote for mkxp
felt very refreshing I must say.
2014-11-02 23:37:35 +01:00
Jonas Kulla
a98ad3134b
TilemapVX: Implement flash tiles
2014-10-27 15:52:41 +01:00
Jonas Kulla
577f606dac
Tilemap: Factor out flash tile code
...
This will be reused later in TilemapVX.
2014-10-26 20:00:56 +01:00
Jonas Kulla
05b32d76ca
Minor cleanup
2014-10-25 23:38:19 +02:00
Jonas Kulla
c9d5059238
Pass value object attributes by reference (instead of pointer)
...
This underlines that no reference inside the setter is taken,
and that these attributes are non-nullable.
Also removes a couple of superfluous attribute macros.
2014-10-25 23:33:41 +02:00
Jonas Kulla
8e1852a281
Remove left-over dead code
2014-10-21 19:51:08 +02:00
Jonas Kulla
4a8b0f30c8
MRI: Add 'System.raw_key_states' to query full keyboard state
...
Returns a byte array with all key states (0 = released,
1 = pressed) indexed via SDL_SCANCODE_* enums.
2014-10-20 10:27:01 +02:00
Jonas Kulla
e44a1e32fa
Reorder some lines
2014-10-20 10:20:08 +02:00
Jonas Kulla
6145c59305
fluid-fun: Don't dlclose libfluidsynth, ever
...
Some versions of the library do nasty things with thread
local storage without cleaning up after themselves.
2014-10-20 10:17:48 +02:00
Jonas Kulla
5094f5c7c1
Add minor assert
2014-10-16 09:10:27 +02:00
Jonas Kulla
2cd70b9edd
Window: Don't update anything if width*height == 0
...
Fixes GL errors.
2014-10-15 06:26:46 +02:00
Jonas Kulla
dd73db2e9d
Introduce F1 menu to reconfigure key bindings at runtime
2014-10-11 20:48:44 +02:00
Jonas Kulla
520162f36a
Use safe way to get at a vector's data pointer
...
&std::vector<C>[0] is not guaranteed to not throw if the
vector is empty. Better safe than sorry.
2014-10-09 19:02:29 +02:00
Jonas Kulla
1b7ed5ed78
Font: Fix default 'shadow' value for RGSS1
2014-10-09 18:53:24 +02:00
Jonas Kulla
0c08fc2d16
gl-fun.h: Fix function type signature
2014-10-06 21:10:19 +02:00
Jonas Kulla
df73045d81
TileAtlasVX: Followup fix
...
Use rectangle intersection to correctly clip source
rectangles with origin != (0,0).
2014-10-03 06:51:39 +02:00
Jonas Kulla
db78e55371
TileAtlasVX: Clamp blit src rect to tileset bitmap size
2014-10-02 16:41:53 +02:00
Jonas Kulla
95cda4035e
fluid-fun: Fix fluidsynth soname on OSX
2014-10-01 19:19:25 +02:00
Jonas Kulla
fa911b8018
gl-fun: Don't rely on SDL_opengl.h for function type definitions
2014-10-01 04:48:23 +02:00
Jonas Kulla
51a0f3903c
Audio: Clean up threading and add AudioStream fadein (RGSS3)
2014-09-30 09:13:12 +02:00
Jonas Kulla
4a015c6397
Bitmap: Add font shadow rendering
2014-09-29 10:30:41 +02:00
Jonas Kulla
9e64dff01c
Bitmap: Fix mem leak
2014-09-29 10:30:16 +02:00
Jonas Kulla
9758e660c4
Tilemap/VX: Ensure proxy objects don't outlive their parents
...
Either of these would previously crash (same for VX):
tm = Tilemap.new
at = tm.autotiles
tm = nil
GC.start
at[0] = Bitmap.new(1, 1)
tm = Tilemap.new
at = tm.autotiles
tm.dispose
at[0] = Bitmap.new(1, 1)
Funnily, this makes RMXP itself crash too, but crashing is
never acceptable except for possibly resource exhaustion.
2014-09-26 18:21:50 +02:00
Jonas Kulla
d223d83cbf
Implement F12 game reset (MRI only)
...
Can be disabled with "enableReset=false".
While at it, also replace the flakey volatile bool flags
with proper atomics.
2014-09-26 06:25:47 +02:00
Jonas Kulla
3a2e560139
Input: Fix default keybinds
2014-09-26 06:25:47 +02:00
Jonas Kulla
2550fd8ccc
WindowVX: Initialize all dirty flags and connect tmp tone
2014-09-26 06:24:43 +02:00
Jonas Kulla
81ac0780f8
Revert Disposable concept back into core
...
Pretty much a revert of
e858bbdcf5 .
We need this in core to properly implement F12 reset.
2014-09-23 21:12:58 +02:00
Jonas Kulla
3983fe66e9
Config: Print parsing errors instead of ignoring them
2014-09-23 19:23:11 +02:00
Jonas Kulla
17efcbbbbd
tl;dr: I fucking suck at coding (fix double free)
...
MRI: Filesystem: A garbage collected SDL_RWops file handle
will call close on itself even if 'close' was explicitly
called on it on the script side before.
2014-09-23 17:26:30 +02:00
Jonas Kulla
757a1d5e39
Load fluidsynth entrypoints dynamically (and make them optional)
...
This removes the static dependency on fluidsynth being present
at buildtime (even headers aren't needed anymore).
Even though midi is a default format for the RPG XP/VX series,
it has fallen more and more out of use, with VX Ace completely
abandoning it from the RTP and making ogg vorbis the de facto
standard. Midi support is kept for legacy reasons, but isn't
encouraged. On top of all this, fluidsynth together with glib
is a heavy dependency that often times won't even be used.
Making it optional at build time is an attempt to unify and
keep build config fragmentation low.
In RGSS3, fluidsynth / midi is not initialized at all by
default, but rather on demand when either a midi track is
played back or Audio.setup_midi is called.
2014-09-09 00:08:32 +02:00
Jonas Kulla
673a25f811
Bitmap: Don't use 'pixman_region_clear'
...
It's not included in older pixman versions.
2014-09-07 19:11:20 +02:00
Jonas Kulla
ac9b98157e
TilemapVX: Use SimpleShader for unanimated ground layers
...
Also remove some useless member variables.
2014-09-06 22:02:00 +02:00
Jonas Kulla
6bc3460294
Core, MRI: Don't expose RGSS3 functionality in 2
2014-09-06 02:01:20 +02:00
Jonas Kulla
7f41b9cc45
Config: Correctly setup rgssVer / screen size with customScript
2014-09-05 21:54:16 +02:00
Jonas Kulla
f8c26fc515
Core/MRI: Fix handling of Etc/Font properties
...
The gist of it is that for Etc and Font props, the assignment
operator (eg. 'sprite.color=') does not take a reference of the
right hand parameter and replaces its previous one with it (this
was the old behavior). Rather, it keeps its internal property
object and copies the parameter object into it by value.
The getter is unchanged; it still returns a reference to the
internal property object.
s = Sprite.new
c = Color.new
s.color = c
p s.color == c # => true
p s.color.object_id == c.object_id # => false (true before)
c = s.color
p s.color.object_id == c.object_id # => true
2014-09-05 01:58:41 +02:00
Jonas Kulla
f665d8b41c
BoostSet: Add 'remove' and rename BoostHash::erase to remove
...
This is more consistent with Qt's method naming.
2014-09-05 01:06:08 +02:00
Jonas Kulla
10186e8dcc
Input: Fix isRepeated off-by-one error and do small optim.
2014-09-03 02:35:57 +02:00
cremno
4b08eee81f
add RGSS2/3 Input.repeat?
2014-09-02 19:14:05 +02:00
Jonas Kulla
d8bb6aa2fc
Replicate RMVX/VXA's broken sprite Z sorting implementation
...
Fixes Window_NameBox visual appearance in Skyborn.
Also nuke the second SceneElement constructor that has been
obsolete since the Tilemap mapViewport rewrite.
2014-08-31 01:10:32 +02:00
Jonas Kulla
1a98760b31
Config: Properly clamp rgssVersion to allowed range
2014-08-30 12:00:56 +02:00
Jonas Kulla
3da785b293
FileSystem: RGSS2 means ogg vorbis support is always available
2014-08-30 12:00:56 +02:00
Jonas Kulla
6d414c0777
Print RGSS version on startup
2014-08-29 03:16:12 +02:00
Jonas Kulla
55f1542c76
Merge separate RGSS version build configs into one
...
Setup active RGSS version at runtime. Desired version can be
specified via config, or as default, auto detected from the game
files. This removes the need to build specifically for each
version, which should help packaging a lot.
This also greatly reduces the danger of introducing code that
wouldn't compile on all RGSS version paths (as certain code paths
were completely ifdef'd out).
This can be optimized more, eg. not compiling shaders that aren't
needed in the active version.
2014-08-28 23:22:05 +02:00
Jonas Kulla
b1981055e1
Core: Remove ifdefs that don't influence RGSS specific behavior
...
This is the first step in eliminating the build time RGSS
versioning.
2014-08-28 19:43:13 +02:00
Jonas Kulla
28421a0ce5
Tilemap: Remove RGSS2 viewport setter
...
This class is not used in RGSS2 at all.
2014-08-28 15:37:04 +02:00
Jonas Kulla
c88b4b03d6
Bitmap: Fix blitshader draw_text path not taking squeezing into account
2014-08-28 14:53:28 +02:00
Jonas Kulla
20081cb07e
Wrap include in feature macro
2014-08-28 11:27:36 +02:00
Jonas Kulla
7bcc31fb53
Silence "unused param" warning in release mode
2014-08-28 11:26:20 +02:00
Jonas Kulla
18c74e0f24
SoundEmitter: Only detach/attach buffer if necessary
2014-08-25 05:35:46 +02:00
Jonas Kulla
b1ebc655f9
SoundEmitter: Make SE source count configurable
...
Default is still 6.
2014-08-25 05:34:19 +02:00
Jonas Kulla
5ee62ba0fd
SoundEmitter: Optimize source allocation strategy a bit
...
If no source is free, instead of seizing the lowest priority one,
first try to find the lowest priority source with the same buffer
that is about to be played and use it. Otherwise, take lowest priority
one as before.
2014-08-24 09:19:54 +02:00
Jonas Kulla
ce72e6d0ee
Input: Fix keyboard bindings (RGSS1 and 2 differ), add numpad enter -> C binding
2014-08-24 08:03:12 +02:00
Jonas Kulla
117ddeee5c
Config: Add 'preloadScript' entry to run raw scripts before the game scripts
...
Useful to insert common code, wrappers etc. without touching Scripts.rxdata.
2014-08-24 07:32:44 +02:00
Jonas Kulla
3968ebb538
Graphics: Transition without previous freeze is a noop
2014-08-23 21:26:50 +02:00
Jonas Kulla
b380a0ebdd
SharedState: Fix asset path priority (rgssad -> "." -> RTPs)
2014-08-22 23:58:14 +02:00
Jonas Kulla
b751858b16
Graphics: Fadein/out should interpolate from current brightness
2014-08-22 23:57:12 +02:00
Jonas Kulla
24ad0990da
TilemapVX: Deal correctly with Graphics.resize_screen
2014-08-22 23:57:12 +02:00
Jonas Kulla
50e393fe6e
Graphics: Fix resize_screen
2014-08-22 23:57:12 +02:00
Jonas Kulla
c5c58fa9cd
SoundEmitter: Show filename that caused the SDL_Sound error
2014-08-22 23:50:52 +02:00
Jonas Kulla
10bfcb57b7
Config: Convert game title to valid UTF-8 (if it isn't already)
...
Removes the need to manually convert the Game.ini to UTF-8 every
time with eg. Japanese games. Also, setting the window title on
OSX with invalid UTF-8 crashes.
This functionality and the dependency on libiconv and libguess
are optional and can be enabled with `CONFIG+=INI_ENCODING`.
If turned off and invalid UTF-8 is encountered, the game title
is treated as being empty (ie. the folder name is used instead).
2014-08-20 23:32:18 +02:00
Jonas Kulla
622845a404
TileAtlasVX: Handle table autotiles properly
2014-08-19 19:47:22 +02:00
Jonas Kulla
fb2b2b7260
WindowVX: Fix scroll arrows not showing initially
2014-08-19 19:47:22 +02:00
Jonas Kulla
0c72659025
Remove stale code
2014-08-19 19:47:22 +02:00
Mathew
f89216368d
NFD filename translation on OS X
2014-08-19 10:57:03 -04:00
Jonas Kulla
7452331e04
Bitmap: Normalize rect passed to glState.scissorBox
...
glScissorBox doesn't like negative values.
2014-08-17 15:43:03 +02:00
Jonas Kulla
724d52f61e
Tilemap: Finally get rid of that terrible name 'ScanRow'
...
Replacement: ZLayer
I'd really have loved to have used something alluding to physical
roof tiles (as that's the closest image I have to them), but without
reusing the word "tiles".. yeah, impossible.
2014-08-17 03:58:01 +02:00
Jonas Kulla
9311aff017
Bitmap: Draw line feed and carriage return as whitespace
2014-08-17 03:07:53 +02:00
Jonas Kulla
52e2f2304a
Spacing
2014-08-17 00:27:08 +02:00
Jonas Kulla
f0e045d057
Font: Add RGSS2 default values
2014-08-17 00:27:07 +02:00
Jonas Kulla
4daff93e29
Put bundled font into its own translation unit
2014-08-17 00:26:35 +02:00
Jonas Kulla
cbdd19e525
WindowVX: Make more compatible with RGSS2
2014-08-16 22:32:06 +02:00
Jonas Kulla
8042289291
WindowVX: Fix window resizing from big to small
2014-08-16 20:11:46 +02:00
Jonas Kulla
e7882c0d3e
Plane: Fix screen shaking in wrong direction
2014-08-16 16:14:00 +02:00
Jonas Kulla
9c421aed45
Add minor comments
2014-08-16 16:14:00 +02:00
Jonas Kulla
e208bc49e8
Sprite: Implement Y based Z draw ordering (RGSS2)
...
If two sprites have the same Z, their order is decided based
on their Y coordinate first, and only then (if equal) by creation
time.
2014-08-16 16:12:51 +02:00
Jonas Kulla
3887342439
Disposable: Emit 'wasDisposed' on destruction, not dispose()
...
Fixes segfaults when objects that were not explicitly disposed
were collected by the GC.
2014-08-16 11:47:07 +02:00
Jonas Kulla
b32d6c69cb
SharedState: Add RGSS2 default encrypted archive filename
2014-08-16 11:47:07 +02:00
Jonas Kulla
840ecee084
Fix 'uninitialized value used' warnings
2014-08-16 11:47:07 +02:00
Jonas Kulla
f58e4ab00d
WindowVX: Don't use uninitialized index value
2014-08-16 11:47:07 +02:00
Jonas Kulla
1195dc15bd
WindowVX: Add small hack to visually improve background
...
Make the stretched background source rect smaller by one pixel.
Greatly improves look of Windows in Majo no Ie.
2014-08-16 11:47:07 +02:00
Jonas Kulla
ded18f9a02
TileAtlasVX: RGSS2 knows no shadow layer
2014-08-16 11:47:06 +02:00
Jonas Kulla
f036e83a2d
WindowVX: Remove faulty cursor rect positioning logic
2014-08-16 11:47:06 +02:00
Jonas Kulla
3277663944
WindowVX: Fix padding rect not updating on size change
2014-08-16 11:47:06 +02:00
Jonas Kulla
bce4eb2bee
WindowVX: Fix cursor rectangle geometry not updating
2014-08-16 11:47:06 +02:00
Jonas Kulla
062c7267d7
TilemapVX: Fix map viewport not updating on scene geometry change
2014-08-16 11:47:06 +02:00
Jonas Kulla
9003f9a435
Font: Add missing RGSS2+ props basic plumbing (and bind most in MRI)
...
No core implementations yet for shadow and outline color.
2014-08-16 11:46:25 +02:00
Jonas Kulla
36eea09c7e
SharedState: Add RGSS3 default encrypted archive filename
2014-08-16 06:04:02 +02:00
Jonas Kulla
bdd60291a7
Bitmap: Fix vertical gradient direction
2014-08-16 06:04:02 +02:00
Jonas Kulla
8d375b5cac
Graphics: Execute one frame reset at construction
...
Fixes RGSS3 title screen transition looking skipped
2014-08-16 06:04:02 +02:00
Jonas Kulla
150c280c1e
Graphics: Default framerate in RGSS2 is 60
2014-08-16 06:04:02 +02:00
Jonas Kulla
7a655528e4
Viewport: Add zero arg constructor (RGSS3) and bind in MRI
2014-08-16 06:03:48 +02:00
Jonas Kulla
5bc6f6f32c
Etc: Implement missing RGSS3 functionality (and bind in MRI)
2014-08-15 22:58:08 +02:00
Jonas Kulla
7790bd6c2c
Implement RGSS2 Tilemap class (TilemapVX)
2014-08-15 15:20:32 +02:00
Jonas Kulla
3717609142
Tilemap: Make Autotiles con/destructor private
2014-08-15 15:20:32 +02:00
Jonas Kulla
4742226e7c
Tilemap: Fix typo
2014-08-15 15:20:32 +02:00
Jonas Kulla
91d19d0a73
Implement RGSS2 Window class (WindowVX)
2014-08-15 15:20:15 +02:00
Jonas Kulla
d654fb7dd6
Add internal 'KeepDestAlpha' BlendType (for use in WindowVX)
2014-08-12 22:26:54 +02:00
Jonas Kulla
d95e90db34
Tone: Add 'valueChanged' signal
2014-08-12 22:26:54 +02:00
Jonas Kulla
3550cc0ff5
Use correct default resolution for RGSS2/3 (544x416)
2014-08-12 22:21:57 +02:00
Jonas Kulla
d128375d62
DisposeWatch: Make private and constify members
2014-08-12 21:41:59 +02:00
Jonas Kulla
194f70c48c
SharedState: Constify most getter methods
2014-08-12 21:41:59 +02:00
Jonas Kulla
18022bf809
quadarray.h: Use size_t for everything (quad) count related
2014-08-12 21:41:59 +02:00
Jonas Kulla
7d30ce1a00
quad.h: Cleanup static functions to use templated Vertex parameter
...
Collapses all the different Vertex/SVertex/CVertex variants
into one generic one per function.
2014-08-12 21:41:59 +02:00
Jonas Kulla
0af5e9d66c
gl-util.h: Add GL ID != operator and TEXFBO::clear
...
TEXFBO::clear resets the struct into its state right
after creation, nulling all IDs inside so they're invaid.
2014-08-12 21:41:59 +02:00
Jonas Kulla
1767b200c7
etc.h: Constify methods
2014-08-12 21:41:28 +02:00
Jonas Kulla
9967ae022d
window.cpp: small cleanups
...
Constify static numbers
'unsigned char' -> 'uint8_t'
2014-08-12 19:38:31 +02:00
Jonas Kulla
e858bbdcf5
Lift 'Disposable' concept from core into bindings
...
Instead of replicating the RGSS Disposable interface in C++
and merely binding it, redefine the 'disposed' state as the
entire core object being deleted (and the binding object's
private pointer being null).
This makes the behavior more accurate in regard to RMXP.
It is now for example possible to subclass disposable classes
and access their 'dispose'/'disposed?' methods without
initializing the base class first (because the internal pointer
is simply null before initialization). Accessing any other
base methods will still raise an exception.
There are some quirks and irregular behavior in RMXP; eg.
most nullable bitmap attributes of disposable classes
(Sprite, Plane etc.) can still be queried afterwards, but
some cannot (Tilemap#tileset), and disposing certain
attributes crashes RMXP entirely (Tilemap#autotiles[n]).
mkxp tries to behave as close possible, but will be more
lenient some circumstances.
To the core, disposed bitmap attributes will look
identically to null, which slightly diverges from RMXP
(where they're treated as still existing, but aren't drawn).
The Disposable interface has been retained containing a
single signal, for the binding to inform core when
objects are disposed (so active attributes can be set to null).
2014-08-09 21:21:38 +02:00
Jonas Kulla
cc0ab35f10
Font: 'exist?' allows any object (returns false if not string)
2014-08-09 21:21:38 +02:00
Jonas Kulla
6c9fbc1465
Bitmap: Clip dest rect when blitting from mega surface
2014-08-09 21:21:38 +02:00
Jonas Kulla
bdcf1503bd
Bitmap: Normalize rectangle passed to pixman
2014-08-09 21:21:38 +02:00
Jonas Kulla
656c5099ea
autotiles.cpp: Fix subrect pattern for indices 23 and 46
...
Fixes #51 .
2014-08-07 10:46:58 +02:00
Jonas Kulla
24759fb97b
EventThread: Simplify user event handling
2014-08-06 15:54:44 +02:00
Jonas Kulla
151a1f0d1b
Table: Add clone constructor (and bind in MRI)
...
Fixes #50 .
2014-08-05 05:24:13 +02:00
Jonas Kulla
59aed37d3e
MidiSource: Improve pitch shifting accuracy
...
Also drop note events whose keys are shifted out of range
instead of clamping them.
2014-08-02 16:15:11 +02:00
Jonas Kulla
5eb5b0dc83
MidiSource: Fix memory leak and simplify code
2014-08-02 16:14:22 +02:00
Jonas Kulla
3bcf995832
Add option to turn off switching into executable dir on startup
2014-08-02 09:30:17 +02:00
Jonas Kulla
cc7218c19d
Spacing
2014-08-02 06:50:14 +02:00
Jonas Kulla
751fdc599e
Audio: Add MIDI format playback support
...
This adds a new dependency with libfuildsynth. MIDI support
is built by default, but can be disabled if not desired.
All RTP songs should work well, but there are known problems
with other files (see README). Also, the pitch shift implementation
is somewhat poor and doesn't match RMXP (at least subjectively).
A soundfont is not included and must be provided by
the user themself.
2014-08-02 06:42:55 +02:00
Jonas Kulla
818ca18ebb
ALStream: Actually fix issue referenced in prev commit
...
This bug occured when starting playback of a stream, then immediately
stopping it, loading a different source, and starting playback again.
The real issue was that in stopStream(), the streaming thread had
not even queued anything yet, so it first decoded some data, then
started playing the source (which had already been stopped in the main
thread), and then finally saw the term request and stopped.
Instead stopping the source after the thread has definitely
terminated fixed the problem.
2014-07-31 05:12:35 +02:00
Jonas Kulla
80937d0d06
ALStream: Fix sometimes not unqueuing all buffers before play
...
Very rarely rogue buffers would remain and play on loop on song
switch because we only ever cleared processed, not queued, buffers
from the source.
The correct way to completely clear a source's queue is to
simply attach a null buffer to it.
2014-07-31 03:39:36 +02:00
Jonas Kulla
0a94b518dc
Add missing header
2014-07-25 14:58:11 +02:00
Jonas Kulla
ec16210f8a
MRI-Binding: Allow manually specifying load paths in config
2014-07-24 23:11:12 +02:00
Jonas Kulla
393a283d99
Minor cleanups
2014-07-24 23:02:38 +02:00
Jonas Kulla
2f831aea60
RGSSAD: Add RGSS3 archive reader
...
Everything except the entry table parsing is the same as RGSS1.
2014-07-24 02:45:20 +02:00
Jonas Kulla
6726493ee7
RGSSAD: Add RGSS2 archive reader
...
Exactly the same as RGSS1 but different file extension.
Also remove some redundant strings.
2014-07-23 23:05:24 +02:00
Jonas Kulla
1ecdd9f980
filesystem.cpp: Split out RGSSAD parts
2014-07-23 22:57:39 +02:00
Jonas Kulla
7b947a50c9
Use macro from util.h for static array size
2014-07-23 21:26:44 +02:00
Jonas Kulla
f73b0ba4b5
audio.cpp: Split up into smaller parts
2014-07-23 17:28:20 +02:00
Jonas Kulla
492be508da
gl-fun.h: Allow to alternatively be compiled with GLES2 headers
...
Requires your typical "GLES2/{gl2,gl2ext,gl2platform}.h bundle.
Define "GLES2_HEADER" to use.
2014-07-21 01:49:06 +00:00
Jonas Kulla
ca9f83c6de
Bitmap: Always upload data in GL_RGBA format
2014-07-21 01:38:22 +00:00
Jonas Kulla
c1d627e0ae
GLMeta: Disable blending when blitting via quad draw
2014-07-20 13:20:43 +02:00
Jonas Kulla
27b7815f52
GLState: Remove 'BlendNone' mode in favor of disabling blending alltogether
2014-07-20 13:17:12 +02:00
Jonas Kulla
7ce747d34d
GLProperty: Assert proper stack usage
2014-07-20 13:15:03 +02:00
Jonas Kulla
c44f4d7d28
gl-util.h: GL_RGBA8 is not a legal internalformat under GLES2
...
GL_RGBA ought to be synonymous.
2014-07-19 15:40:40 +00:00
Jonas Kulla
6f17b6ff46
Hookup mkxp to run under a OpenGL ES 2.0 context
2014-07-19 14:26:42 +00:00
Jonas Kulla
86b207e389
Actually switch to 16 bit index buffers
2014-07-19 09:31:39 +02:00
Jonas Kulla
5640c3d04b
Print RGSS thread error message to console
2014-07-19 02:59:05 +02:00