Commit graph

666 commits

Author SHA1 Message Date
Jonas Kulla
6f711184ac Spacing 2013-09-09 21:32:34 +02:00
Jonas Kulla
39233a036b Rename constant 2013-09-09 21:23:56 +02:00
Jonas Kulla
a66b15bd08 Pack REQUEST event codes into enum 2013-09-09 21:22:31 +02:00
Jonas Kulla
4620901002 Forgot some EXT functions 2013-09-07 02:42:56 +02:00
Jonas Kulla
f87f231129 Fix Plane not accepting nil for '#bitmap=' 2013-09-06 15:54:30 +02:00
Jonas Kulla
051c939f8d Free SDL surface if 'TexPool::request' throws 2013-09-06 15:52:45 +02:00
Jonas Kulla
ef2ed2fb32 Fix wording 2013-09-06 15:29:00 +02:00
Jonas Kulla
6c7d751dbd Remove 'Default' FBO binding (only allow 'Read' and 'Draw')
Also make code more verbose by removing default mode
parameter value to 'FBO::bind'
2013-09-06 14:56:30 +02:00
Jonas Kulla
abc927c91d Use EXT version of gl functions 2013-09-06 14:37:28 +02:00
Jonas Kulla
ef6bacf201 Only require EXT framebuffer extensions 2013-09-06 14:21:35 +02:00
Jonas Kulla
a9f400e64a Undef utility macro in header 2013-09-06 13:14:34 +02:00
Jonas Kulla
3bd9df1191 Move draw order sorting into SceneElement 2013-09-06 13:10:41 +02:00
Jonas Kulla
5ca513fcec Document gl-util types 2013-09-06 12:33:33 +02:00
Jonas Kulla
b151a22f6e Rename 'Tex' to 'TEX' for consistency 2013-09-06 12:26:41 +02:00
Jonas Kulla
ba3b904f34 Thanks to the ID abstraction, we can use proper overloading now! 2013-09-06 12:22:55 +02:00
Jonas Kulla
55596e9da9 Rename 'RB'(renderbuffer) to 'RBO'(renderbuffer object) 2013-09-06 12:16:24 +02:00
Jonas Kulla
a21423ca1c Move GL state initialization into GLState 2013-09-04 21:05:47 +02:00
Jonas Kulla
f89cd2d207 Provide general purpose Quad in GlobalState 2013-09-04 19:07:28 +02:00
Jonas Kulla
e8a9873125 Document nonstandard RGSS extensions 2013-09-04 18:43:40 +02:00
Jonas Kulla
efa55ce6c2 Raise exception on invalid bitmap sizes
A difference to RMXP is that negative height values
will result in exceptions too.
Also change Bitmap constructors to not allocate Private
struct before potential exceptions.
2013-09-04 18:14:29 +02:00
Jonas Kulla
6a85699e11 Properly destroy fade thread 2013-09-04 17:53:12 +02:00
Jonas Kulla
abd59be30d Properly delete[] arrays 2013-09-04 17:52:03 +02:00
Jonas Kulla
689a31580c Beautify constant 2013-09-04 17:03:00 +02:00
Jonas Kulla
1401578f92 Add bounds check to setter 2013-09-04 17:01:51 +02:00
Jonas Kulla
4a945f8d6c Null PhysFS handle after closing 2013-09-04 13:32:11 +02:00
Jonas Kulla
0253b6ed2b Use C99 integer types instead of Qt's 2013-09-04 13:30:14 +02:00
Jonas Kulla
a75dea3ffe Rename 'resetInput' to 'resetInputStates' 2013-09-04 13:28:05 +02:00
Jonas Kulla
d0fa2dd37a Document 'WindowSizeNotify' 2013-09-04 12:09:09 +02:00
Jonas Kulla
5b6d4e0026 Clean up remainind references to 'render thread' 2013-09-04 12:07:59 +02:00
Jonas Kulla
c2585660b7 Remove unnecessary variable 2013-09-04 11:31:35 +02:00
Jonas Kulla
774c9b7c8a Update config
Add a missing dependency and properly explain all values
in the config file
2013-09-03 19:24:41 +02:00
Jonas Kulla
3761c62d86 Spacing 2013-09-03 16:47:53 +02:00
Jonas Kulla
84db116d0c Rename 'bound' to 'clamp' 2013-09-03 15:31:29 +02:00
Jonas Kulla
f81e20cc68 Raise exception on too big textures 2013-09-03 15:22:00 +02:00
Jonas Kulla
31c007b541 Mark internal methods 2013-09-03 15:21:44 +02:00
Jonas Kulla
8d3379ce0e Silence "unused" warnings 2013-09-03 15:19:18 +02:00
Jonas Kulla
6a133cf04b Clean up unused code and documentation 2013-09-03 14:51:55 +02:00
Jonas Kulla
6c5745c4bf FloatRect: add implicit IntRect conversion 2013-09-03 14:51:13 +02:00
Jonas Kulla
73812e957e Clean up unused code 2013-09-03 14:39:11 +02:00
Jonas Kulla
108392217f Remove empty line 2013-09-03 11:15:04 +02:00
Jonas Kulla
2ddb31016d Add support for compiled ".mrb" scripts
A compiled ".mrb" script can be specified in the Binding config
subgroup with key 'mrbFile='.
If a 'customScript' is specified it still takes priority however.
2013-09-03 11:11:12 +02:00
Jonas Kulla
57c806e9b5 Add "[Binding]" config subgroup
Binding specific configuration goes here. It is stored as
a String->Value hash.
2013-09-03 11:07:56 +02:00
Jonas Kulla
d151986c72 Use 'MRB_FUNCTION' instead of 'MRB_METHOD' for modules 2013-09-03 11:06:01 +02:00
Jonas Kulla
121df799ab Use 'MRB_METHOD' macro 2013-09-03 10:48:20 +02:00
Jonas Kulla
8674cb8e06 Always glClear before blitting to screen
Prevents a distorted screen when an error happens during
script loading (ie. before the first drawn frame) and fullscreen
is turned on in the config.
This will also be necessarry once fixed aspect ratio is implemented.
2013-09-02 17:31:34 +02:00
Jonas Kulla
0477c3f8db Remove wrong extension check 2013-09-02 13:40:16 +02:00
Jonas Kulla
7ea875ae5d Minor cleanups and documentation 2013-09-02 12:32:53 +02:00
Jonas Kulla
a6ee6bd043 'time_op': print empty string instead of "(null)" 2013-09-02 11:21:06 +02:00
Jonas Kulla
ca42db7353 Fix compile error 2013-09-02 11:19:30 +02:00
Jonas Kulla
d6df300341 Enhance 'time_op' and remove unused test code
time_op now takes 2 optional arguments:
iterations: block will be run this many times and the average
            time it took will be printed
opName:     tag that is printed before the measured time

Also returns the measured time as float.

I also removed the 'MKXP' module because it was clashing with
the likewise named global const.
2013-09-02 11:15:12 +02:00