刘皓
a6393d6301
Implement rudimentary FreeType-based font rendering in libretro builds
...
Yes, it's quite garbage, but I'll improve on it later. What's important
is that it helps get libretro builds to a testable state.
2025-03-05 17:11:39 -05:00
刘皓
740dfd51c9
Start integrating font code into libretro builds
2025-03-04 18:52:20 -05:00
刘皓
9f33a0acea
Implement image loading in libretro builds
2025-02-25 12:53:57 -05:00
刘皓
2029539ece
Replace pixman with pixman-region in libretro builds
2025-02-24 17:13:25 -05:00
刘皓
8a8860912a
Merge branch 'libretro-compat' into libretro
2025-02-21 23:56:52 -05:00
刘皓
071be23d74
Fix some bitmap and gl-meta bugs in libretro builds
2025-02-19 21:49:59 -05:00
刘皓
20c8f6d463
Get Graphics::update()
working (probably) in libretro builds
2025-02-19 18:16:08 -05:00
刘皓
7e4484a640
Start integrating the OpenGL code for sprites into libretro builds
2025-02-18 23:12:42 -05:00
刘皓
1e42180fa2
Stub out more of the sprite bindings for binding-sandbox
2025-02-05 22:30:04 -05:00
刘皓
739185594e
Implement more of binding-sandbox
2025-01-22 11:52:10 -05:00
Splendide Imaginarius
7e9937b80f
Bitmap: short-circuit shader/bilinear interpolation
...
Benchmark shows a speedup from 10.4s to 4.1s.
2024-10-23 22:36:00 +00:00
Wayward Heart
347ef9f53c
Guard against disposed source bitmaps in Bitmap::addFrame
2024-08-02 09:26:51 -05:00
Splendide Imaginarius
3376730416
Merge pull request #198 from Splendide-Imaginarius/mkxp-z-memory-leak-fix
...
Fix memory leak when disposing a high-res Bitmap
2024-07-15 23:57:26 +00:00
Splendide Imaginarius
83647b947d
Fix memory leak when disposing a high-res Bitmap
2024-07-02 22:52:15 +00:00
Wayward Heart
9221cc7ec2
Fix major memory leak in Bitmap::initFromSurface
...
c89f3d5bd7
accidentally completely removed the call to free the surface when successfully creating a texture.
2024-06-02 02:02:31 -05:00
Wayward Heart
477162d1d3
Ensure that fonts for hires bitmaps get deleted.
2024-06-02 01:51:59 -05:00
Wayward Heart
65aab17dba
Release resources if we error in the Bitmap constructor.
2024-06-02 01:51:59 -05:00
Splendide Imaginarius
e929cfb7c7
Merge pull request #98 from WaywardHeart/transparent-blitting
...
Enable transparent blitting from megatextures.
2024-04-29 12:55:43 +00:00
Splendide Imaginarius
a15e4aff14
Merge pull request #178 from Splendide-Imaginarius/mkxp-z-sprite-lanczos
...
Implement smooth scaling for simple sprites
2024-04-02 03:44:55 +00:00
Wayward Heart
8b14894b6f
Fix blitting with negative dimensions
2024-03-24 07:47:58 -05:00
Wayward Heart
cf762c77f1
Only draw text to the hires bitmap when Hires mode is enabled
2024-03-24 07:47:58 -05:00
Wayward Heart
46d9095129
Use gl.unpack_subimage when blitting megasurfaces to textures when available
2024-03-24 07:47:58 -05:00
Wayward Heart
7539a2f34b
Use SDL_LowerBlitScaled/SDL_SoftStretchLinear instead of SDL_BlitScaled
2024-03-24 07:47:58 -05:00
Wayward Heart
e477007061
Use stretchBlt in drawText
2024-03-24 07:47:58 -05:00
Wayward Heart
c89f3d5bd7
Change the create Bitmap from surface constructor to always take ownership of the surface, and provide an option to leave it as a mega surface
2024-03-24 07:47:58 -05:00
Wayward Heart
bd01e11f56
Fix blitting from megatextures
...
Code mostly taken from the implementation in Bitmap::drawText
2024-03-24 07:47:57 -05:00
Splendide Imaginarius
1b3d1d96c4
Merge pull request #145 from WaywardHeart/deletedBitmaps
...
Guard against deleted bitmaps
2024-03-22 06:47:14 +00:00
Splendide Imaginarius
58d7ec8519
Implement smooth scaling for simple sprites
2024-03-22 04:35:06 +00:00
Wayward Heart
35d46e627d
Guard against deleted bitmaps
...
Ruby is not guaranteed to delete bitmaps after any windows, sprites, etc that they are attached to. In the event that the attached object is not deleted before the next call to Graphics.update, this will most likely result in a segfault, as isDisposed() is not guaranteed to return true for a deleted bitmap.
Bitmap::invalid was added in an attempt to guard against this for sprites, but since the bitmap in question is deleted it's not guaranteed that the pointer actually points to null, which made the fix unreliable.
2024-01-10 09:41:00 -06:00
Wayward Heart
43ac2b35a1
Don't clamp Bitmap::blit
...
Bitmap::stretchBlt handles that now
2024-01-05 07:33:55 -06:00
Wayward Heart
2247f1d9b7
Shrink missized blits
2024-01-05 07:33:55 -06:00
Splendide Imaginarius
7032dccbc7
Add Bitmap constructors that take a TEXFBO or an SDL_Surface
...
Refactor snapToBitmap to use it, and add ability to dump VX Atlas with it.
2023-11-27 22:47:24 +00:00
Splendide Imaginarius
11a1fef1c3
Implement hi-res Bitmap replacement
2023-10-25 15:39:28 +00:00
Amaryllis Kulla
fae7fa9c4e
Update ancurio's copyright notice ( #29 )
2023-10-04 15:07:34 -04:00
Struma
0072c19371
Multiple changes
...
+ Time is now measured in fractions of a second, not microseconds
+ Viewports in RGSS1 will now only retain weak references to their children
+ Invalid Sprite bitmaps found during Graphics.update will be treated as null
+ Bitmap#mega? and Bitmap#animated? are properly rescued
2023-05-03 23:00:06 -04:00
Struma
a8e6338598
Convert solidFonts
config option to be an array of fonts
2023-04-12 21:03:32 -04:00
Snowdream
843e54de2e
deal with a couple warnings, make sure xcode project still builds
2022-07-22 13:12:29 -04:00
Snowdream
4e6e291624
Revert adding Bitmap#v_flip/h_flip
2022-07-20 02:56:04 -04:00
Struma
5100ae57e8
Add Bitmap.h_flip and v_flip
2022-07-04 07:35:38 -04:00
Struma
85fe2b070a
miscellaneous garbage
2022-01-23 09:54:33 -05:00
Struma
5855266dab
make the terrifying sign-compare warnings go away
2022-01-23 09:31:27 -05:00
Struma
3c7d454dd6
Make Bitmap.to_file
work with overlarge bitmaps
2021-08-09 10:42:47 -04:00
Struma
baaa162e2c
Remove libsigc++, use sigslot instead
2021-06-14 10:03:56 -04:00
Struma
63b40053ac
Prevent relevant functions from stepping over Graphics.update when threading
2021-06-04 14:29:45 -04:00
Struma
ca596cbaf9
cleanup
2021-05-23 21:55:02 -04:00
Struma
023e9a05a7
Adjust GIF decoding loop, again
2021-05-23 11:34:24 -04:00
Struma
fd8bd40260
using gif.decoded_frame as a condition is just a bad idea
2021-05-23 10:40:49 -04:00
Struma
78e823a040
Just iterate through gif frames with a for loop ( Fixes #44 )
2021-05-20 15:54:18 -04:00
Struma
07548ff9d6
fix infinite loop when gif total frames != decoded frames
2021-05-09 18:19:46 -04:00
Struma
9fa790ab15
Remove extraneous call to glReadPixels
2021-05-08 12:28:30 -04:00