Jonas Kulla
4219b91bbb
al-util.h: Add include fix for older OpenAL releases
...
Apparently older versions of 'alext.h' didn't include
'alc.h' despite dependencies on ALC types.
2014-02-06 04:27:17 +01:00
Jonas Kulla
af9039f58d
Sprite: Implement wave effect (RGSS2)
...
This initial implementation emulates the way RMVX splits
the sprite into "chunks" of about 8 pixels, which it then
scrolls left/right on a vertical sine wave. It even
replicates the weird behavior when wave_amp < 0, namely
"shrinking" the src_rect horizontally.
As with bush_opacity, this effect in combination with
rotation will render differently from RMVX.
2014-02-03 15:32:50 +01:00
Jonas Kulla
42b10fd2ee
mkxp.pro: Add RGSS3 config define
2014-02-03 15:24:10 +01:00
Jonas Kulla
64f1e32fdc
Input: Implement RGSS3 functionality in bindings
...
Ie. using symbols instead of Input:: constants to query
button states.
2014-02-03 15:04:57 +01:00
Jonas Kulla
5a6c0c14ed
MRuby-Binding: Fix etc accessors not using getter/setter functions
2014-02-03 14:07:08 +01:00
Jonas Kulla
bb8f2351cc
Bitmap: Remove leftover 'flush()' calls
2014-02-02 23:36:01 +01:00
Jonas Kulla
e0a4dfe372
Bitmap: Make #get_pixel/#set_pixel more accurate
...
This gets rid of the "batch/flush" semantics for #set_pixel
and instead just directly uploads the pixel color to the
texture, circumventing the float conversion entirely.
Also makes a lot of code simpler in many places as calling
'flush()' is no longer required for bitmaps.
2014-01-31 10:19:16 +01:00
Jonas Kulla
1b0eb2797d
BltShader: Correct algorithm as provided my /cremno
...
The color calculation is now actually 99% correct!
Fixes #14 .
2014-01-31 10:08:05 +01:00
Jonas Kulla
b6a299541f
Bitmap: Fix #get_pixel returning bogus values
...
We never bound the Bitmap FBO to the READ binding point,
so glReadPixels was blindly reading data off of whatever
was last bound there.
2014-01-28 16:38:10 +01:00
Jonas Kulla
f956f21ce1
Revert "Font: Adhere to spec and set Font.default_name to "MS PGothic""
...
This reverts commit c9423164d4
.
Turns out the spec was not adjusted correctly for the
English RGSS version; the de facto default is "Arial"
after all.
2014-01-26 08:06:54 +01:00
Jonas Kulla
b28863d8eb
Add comment
2014-01-25 09:30:48 +01:00
Jonas Kulla
53718d0428
README: Mention cmake and fix some wording
2014-01-25 09:30:05 +01:00
Jonas Kulla
87c1e376b9
GLState: Add bound shader program to managed state
...
Squishes a handful of redundant binds per frame.
2014-01-20 00:58:39 +01:00
Jonas Kulla
b729da249b
Graphics: Don't unbind shader
2014-01-20 00:56:00 +01:00
Jonas Kulla
e93e1fd292
debugwriter.h: Use std::newl instead of '\n'
2014-01-20 00:54:42 +01:00
Jonas Kulla
f3572f5ba4
Bitmap: Don't unbind shader after render op
...
Since all rendering is now shader based, there's normally
no reason to ever unbind a shader program.
2014-01-20 00:53:58 +01:00
Jonas Kulla
f39d1239bb
TileAtlas: Slightly optimize out some allocation
...
User vector instead of list for colums.s
2014-01-16 19:17:46 +01:00
Jonas Kulla
b0a41a23e0
Rename typedef and fix wrong documenting comment
2014-01-16 19:16:09 +01:00
Jonas Kulla
316457b988
Refactoring
2014-01-16 04:19:22 +01:00
Jonas Kulla
91efcfa06d
FileSystem: More stringent RGSSAD header checks
2014-01-16 01:06:59 +01:00
Jonas Kulla
9b92a7bc14
Documentation: Move mkxp.conf description into sample conf
2014-01-15 03:20:05 +01:00
Jonas Kulla
bbb9bff239
FileSystem: Fix path cache for mounted zip archives
2014-01-15 01:51:56 +01:00
Jonas Kulla
f14a379ee9
FileSystem: Trim redundant error message on ENOENT
...
MRI adds the "No such file or directory - " itself;
I guess we can just emulate this behavior everywhere else.
2014-01-15 01:47:16 +01:00
Jonas Kulla
64cb4ee4f1
Use stdint types
2014-01-15 01:43:46 +01:00
Jonas Kulla
0f004b8601
Spacing
2014-01-15 00:48:34 +01:00
Jonas Kulla
c33144552a
Config: Parse from command line options on top of config file
...
Any options that are not arrays (ie. RTP paths) specified
as command line options will override entries in mkxp.conf.
The syntax is: --<option>=<value>
2014-01-10 20:16:34 +01:00
Jonas Kulla
b8fc5e25b9
Audio: Make thread names more descriptive
2014-01-07 16:06:50 +01:00
Jonas Kulla
0a53a894dc
Merge branch 'master' of github.com:Ancurio/mkxp
2014-01-07 05:26:05 +01:00
Jonas Kulla
063793c4d9
Turn screenshots (F3) off by default
2014-01-07 05:25:00 +01:00
Jonas Kulla
4c5b21496a
Merge pull request #13 from humble/baseNameFix
...
Fix npos comparison check in baseName
2014-01-06 16:33:46 -08:00
Edward Rudd
c60ffa6384
fix npos comparison check in baseName method
2014-01-06 12:45:01 -05:00
Jonas Kulla
953f903149
Spacing
2014-01-05 16:09:00 +01:00
Jonas Kulla
e9cf77dbce
Config: Fix preceeding '/' in deducted game title
...
Also factor out the common code path
2014-01-05 10:31:15 +01:00
Jonas Kulla
19dc83a5d5
Bitmap: Supply image filename on loading error
2014-01-05 10:28:35 +01:00
Jonas Kulla
8ed6de22a4
Input: Return const -20 mouse position when outside window
2014-01-05 01:15:33 +01:00
Edward Rudd
318162a229
fix screen grab crash when in fullscreen
...
- read the FBO size NOT the screen size.
2014-01-04 13:52:11 +01:00
Jonas Kulla
56b49acf39
Spacing
2014-01-04 13:50:07 +01:00
Jonas Kulla
43321b8ed7
Coding style fixes
2014-01-04 13:49:32 +01:00
Jonas Kulla
092e6ad948
Typo
2014-01-04 13:48:23 +01:00
Jonas Kulla
d93c1280aa
Font: Open TTF font as late as possible
...
This reduces opened fonts that were never going
to be used anyway.
2014-01-04 13:47:00 +01:00
Jonas Kulla
857693d4a1
Font: Fix 'Font#set_name' not actually changing underlying TTF_Font
2014-01-04 13:00:38 +01:00
Jonas Kulla
78f9272e3d
Typo
2014-01-04 13:00:04 +01:00
Jonas Kulla
c9423164d4
Font: Adhere to spec and set Font.default_name to "MS PGothic"
2014-01-04 12:58:03 +01:00
Jonas Kulla
a8bff666eb
Audio: Don't try to fill and queue null buffer
...
Fixes skipping audio after interrupting and resuming
the program via eg. a debugger.
2014-01-04 12:28:16 +01:00
Jonas Kulla
3daf805350
Table: Serialize actual table dimensions instead of '3'
...
This allows savegames created with mkxp to be read with RMXP.
2014-01-02 03:39:22 +01:00
Jonas Kulla
5f16eef273
EventThread: Properly allocate SDL user event codes
2014-01-02 02:22:10 +01:00
Jonas Kulla
0a336ea315
Spacing
2014-01-02 00:17:31 +01:00
Jonas Kulla
a0a27889a3
Merge #8
2014-01-02 00:11:57 +01:00
Edward Rudd
5b4f0b239c
add config option to set the window icon
2014-01-01 16:52:07 -05:00
Edward Rudd
a740f7754c
add option to choose whether left alt or both alts toggle's fullscreen
2014-01-01 15:56:38 -05:00