Commit Graph

3074 Commits

Author SHA1 Message Date
Hajime Hoshi
9d0ea5c241 graphics: Refactoring: Remove (*sharedImagePart).region() usages from *Image 2018-03-10 23:36:07 +09:00
Hajime Hoshi
26f4999ddd graphics: Refactoring: Remove (*sharedImagePart).image() 2018-03-10 23:27:16 +09:00
Hajime Hoshi
afda41a5ed graphics: Refactoring: Remove (*Image).restorable 2018-03-10 23:18:50 +09:00
Hajime Hoshi
2def3e5e6e graphics: Bug fix: Add defer for lock 2018-03-10 21:32:33 +09:00
Hajime Hoshi
9555e83589 packing: Add IsEmpty tests 2018-03-10 21:27:11 +09:00
Hajime Hoshi
6c9d9dbaff packing: Improve test errors 2018-03-10 21:02:04 +09:00
Hajime Hoshi
1583cd0f7b packing: Enable to specify max size of a page 2018-03-10 20:53:20 +09:00
Hajime Hoshi
df9c67d5db graphcis: Refactoring: (*Image).Size() 2018-03-10 19:46:46 +09:00
Hajime Hoshi
75049c4048 graphcis: Refactoring 2018-03-10 19:40:18 +09:00
Hajime Hoshi
9c72671232 Revert "packing: Add Extend"
This reverts commit 1dd32066d2.

Reason: #542
2018-03-09 16:02:57 +09:00
Hajime Hoshi
e977019d2f graphics: Detect maximum texture size for each environment
Fixes #537, #539

See also #541
2018-03-09 11:47:23 +09:00
Hajime Hoshi
0418ce0761 graphics: Refactoring: Remove duplication of checking image size 2018-03-09 11:04:02 +09:00
Hajime Hoshi
4628154478 graphics: Remove unused flipY member 2018-03-09 03:26:14 +09:00
Hajime Hoshi
00d8e793d9 restorable: Remove MaxImageSize 2018-03-09 02:50:38 +09:00
Hajime Hoshi
2c62e64a9e Revert "internal/graphics: increase defaultViewportSize to 8192 (#538)"
This reverts commit a60976f260 Per #541.
2018-03-09 02:13:44 +09:00
Hajime Hoshi
bc8a96eda7 graphicsutil: Avoid duplicated copying
Fixes #521
2018-03-09 01:00:23 +09:00
Hajime Hoshi
4c7025a05f graphicsutil: Add tests 2018-03-09 00:19:10 +09:00
Hajime Hoshi
36b249b320 Add Andrew Gerrand to AUTHORS 2018-03-08 12:02:34 +09:00
Hajime Hoshi
2dc4f3fdf0 opengl: Remove FillFramebuffer
Fixes #536
2018-03-08 12:01:24 +09:00
Andrew Gerrand
a60976f260 internal/graphics: increase defaultViewportSize to 8192 (#538)
This makes it possible to run ebiten applications in full screen on 5k
displays, such as Apple's 27" iMac.

Fix issue #537
2018-03-08 11:53:49 +09:00
Hajime Hoshi
ef5de62780 Follow the standard comment rule
See https://golang.org/s/generatedcode
2018-03-08 02:47:59 +09:00
Hajime Hoshi
86be32dfb5 packing: Add comments 2018-03-08 00:18:28 +09:00
Hajime Hoshi
1dd32066d2 packing: Add Extend 2018-03-08 00:14:51 +09:00
Hajime Hoshi
8ac2ebde1e packing: Rename tests 2018-03-07 02:29:11 +09:00
Hajime Hoshi
951568e403 packing: Refactoring 2018-03-06 02:52:36 +09:00
Hajime Hoshi
7e70d5ca69 Rename bsp -> packing 2018-03-06 00:38:56 +09:00
Hajime Hoshi
50be07355f Revert "ebitenutil: Remove RecordScreenAsGIF implementation (#500)"
This reverts commit e3b99dd081.

This is for backward compatibility
2018-03-05 12:07:18 +09:00
Hajime Hoshi
5bfdc6d29a graphics: The screen filter might be heavy 2018-03-05 11:09:06 +09:00
Hajime Hoshi
f1d97a7758 graphics: Refactoring 2018-03-05 10:53:42 +09:00
Hajime Hoshi
dcb05fb9ad graphics: Remove unneeded 'Clear' on the screen framebuffer 2018-03-05 10:53:09 +09:00
Hajime Hoshi
d523229d9f graphics: Skip clearing the screen framebuffer 2018-03-05 02:59:52 +09:00
Hajime Hoshi
64abc79dc2 ebitenutil: Improve DebugPrint speed by not using color matrices 2018-03-05 02:08:44 +09:00
Hajime Hoshi
8d98f297f2 graphics: Refactoring: Avoid type switch 2018-03-05 00:00:25 +09:00
Hajime Hoshi
f1ba3e5894 affine: Optimization Equals 2018-03-04 23:23:11 +09:00
Hajime Hoshi
cdfee9fd74 ebitenutil: Refactoring 2018-03-04 22:52:56 +09:00
Hajime Hoshi
d9571c7e32 ebitenutil: Use the default filter 2018-03-04 22:45:47 +09:00
Hajime Hoshi
61950817fa audio: Bug fix: importing audio without NewContext causes error 2018-03-04 22:18:14 +09:00
Hajime Hoshi
647d8f0094 audio: Use time.NewTimer and Stop instead of time.After
Fixes #532
2018-03-04 19:23:38 +09:00
Hajime Hoshi
3479b80f1c opengl: Use unsafe-way to convert []float32/[]uint16 to []byte; Remove internal/endian 2018-03-04 18:06:35 +09:00
Hajime Hoshi
24dcaf7f28 graphcis: Fix comments 2018-03-04 03:07:06 +09:00
Hajime Hoshi
c581219bb5 text: Utilize shared textures
Fixes #529
2018-03-04 02:38:48 +09:00
Hajime Hoshi
7da65d64be bsp: Make bsp concurrent safe
Fixes #530. Finalizers can be called on different goroutines
2018-03-04 02:33:32 +09:00
Hajime Hoshi
8dbb11a23c graphicsutil: Remove Gosched that might be harmful on browsers
This was introduced at 006f87d02b but this can be harmful when many images are created by NewImageFromImage
2018-03-03 23:43:57 +09:00
Hajime Hoshi
08610fcd8b bsp: Fix tests 2018-03-03 23:30:59 +09:00
Hajime Hoshi
d944d51c14 graphics: Now images from NewImage also shares a texture 2018-03-03 21:01:25 +09:00
Hajime Hoshi
2903f32d9b graphics: Bug fix: Add lock to newSharedImagePart 2018-03-03 20:50:26 +09:00
Hajime Hoshi
c5872c6640 graphics: Misspelling 2018-03-03 20:42:16 +09:00
Hajime Hoshi
4b4404bc7e graphics: Ensure the image is not disposed when restorableImage() is called 2018-03-03 20:36:33 +09:00
Hajime Hoshi
caf4e9504f graphics: ReplacePixels should work on shared textures 2018-03-03 20:35:44 +09:00
Hajime Hoshi
4ae9d5780c graphics: Implement shared texture (#514) 2018-03-03 19:54:53 +09:00