Commit Graph

194 Commits

Author SHA1 Message Date
Hajime Hoshi
6ca71c6931 graphics: Errors of NewImage* are always nil (#331) 2017-03-04 01:22:51 +09:00
Hajime Hoshi
2c5ee99769 Simplify internal API not to return errors 2017-03-04 01:00:18 +09:00
Hajime Hoshi
7ba18a5d0d graphics: Image.Clear/Fill now always return nil (#331) 2017-03-04 00:53:49 +09:00
Hajime Hoshi
1c7ce07edf Simplify internal API not to return errors 2017-03-04 00:44:41 +09:00
Hajime Hoshi
147798e14d Simplify internal API not to return errors 2017-03-03 23:59:44 +09:00
Hajime Hoshi
2b1dc69497 graphics: Document bug fix: DrawImage 2017-02-27 23:53:21 +09:00
Hajime Hoshi
6e897d1479 graphcis: Bug fix: Can't dispose textures/framebuffers after the context is lost (fixing #305) 2017-01-22 01:37:08 +09:00
Hajime Hoshi
07294a98b6 Move internal/graphics/opengl -> internal/opengl 2016-11-03 23:31:25 +09:00
Hajime Hoshi
2b2d6157c7 graphics: Skip resetPixelsIfDependingOn if possible 2016-10-28 02:54:09 +09:00
Hajime Hoshi
43e8349567 graphics: Remove imageImpl.width/height 2016-09-04 01:25:02 +09:00
Hajime Hoshi
02151e48ea restorable: Remove Image() 2016-09-04 00:53:30 +09:00
Hajime Hoshi
fb3724a40e graphics: Remove imageImpl.image member 2016-09-03 23:08:51 +09:00
Hajime Hoshi
8855df40e4 gprahics: Bug fix: Check if an image is disposed before resetting pixels (examples/windowsize crashes) 2016-07-28 01:17:57 +09:00
Hajime Hoshi
4ad5c65efe graphics: Rename s/ensure/resolveStale/ 2016-07-27 23:08:28 +09:00
Hajime Hoshi
5c56058d6e pixels Rename s/history/dependency/ 2016-07-27 01:28:16 +09:00
Hajime Hoshi
c5f3eaf925 graphics: Refactoring 2016-07-26 12:28:05 +09:00
Hajime Hoshi
0fc61ed568 pixels: Rename fuctions 2016-07-26 10:51:48 +09:00
Hajime Hoshi
c0eb01d69e pixels: Rename s/flush/reset/ 2016-07-25 09:10:51 +09:00
Hajime Hoshi
95dae4ad45 pixels: Remove 'inconsistent' property 2016-07-25 09:01:00 +09:00
Hajime Hoshi
3ea6033c3d graphics: Don't ref *Image in pixels. Ref *graphics.Image instead 2016-07-24 06:22:33 +09:00
Hajime Hoshi
9bbd5e89c3 graphics: Bug fix: GL context is not available until graphics context is initialized 2016-07-24 06:02:04 +09:00
Hajime Hoshi
8d074ecc20 graphics: Add Pixel's 'inconsistent' state 2016-07-24 01:28:39 +09:00
Hajime Hoshi
75916490b7 graphics: Better name functions 2016-07-24 00:46:24 +09:00
Hajime Hoshi
2ba835373b graphics: Refactoring: passing a GL context from the top level 2016-07-14 01:20:45 +09:00
Hajime Hoshi
1627176d59 graphics: Restoring by recording drawing-images history 2016-07-13 12:38:59 +09:00
Hajime Hoshi
ebe7f10af1 graphics: Make NewVolatileImage unexported 2016-07-12 01:58:10 +09:00
Hajime Hoshi
0c611d875b graphics: Bug fix: glTexSubImage2D on Android now works (#211) 2016-07-10 05:59:21 +09:00
Hajime Hoshi
c7783b2ecf graphics: Clear volatile images at the start of a frame 2016-07-06 01:30:49 +09:00
Hajime Hoshi
1fdfa5707a graphics: Fix a comment 2016-07-05 11:43:47 +09:00
Hajime Hoshi
31d1af9740 graphics: Add NewVolatileImage (#235) 2016-07-05 03:40:40 +09:00
Hajime Hoshi
11e67d0eed graphics: Refactoring 2016-07-05 03:15:32 +09:00
Hajime Hoshi
793aad2681 graphics: Rename restorePixels -> restore 2016-07-05 03:01:32 +09:00
Hajime Hoshi
7e296b1aae graphics: Bug Fix: The screen image should be recreated 2016-07-05 02:57:41 +09:00
Hajime Hoshi
6cb1c929b5 graphics: Bug fix: Reset finalizer of *Image 2016-07-05 02:16:49 +09:00
Hajime Hoshi
760e1aa288 graphics: Add newImageImplFromImage; Rename theImages -> theImagesForRestoring 2016-07-05 01:34:40 +09:00
Hajime Hoshi
eac816ca47 graphics: Remove imageImpl.screen 2016-07-05 01:23:29 +09:00
Hajime Hoshi
085336d50f graphics: Add newImageImpl 2016-07-05 00:24:06 +09:00
Hajime Hoshi
006f918b8e graphics: Bug fix: Call theImages.add after initializing (#242) 2016-07-04 23:41:57 +09:00
Hajime Hoshi
d70bf66a59 graphics: Reduce imageM usages 2016-07-03 23:23:57 +09:00
Hajime Hoshi
86144a1cd6 opengl: Move members to variables 2016-07-03 18:23:19 +09:00
Hajime Hoshi
89fe69d564 graphics: Separate image.go into image.go and imageimpl.go 2016-07-03 14:42:28 +09:00
Hajime Hoshi
22655682fb graphics: Smaller scope for the lock 2016-07-03 03:08:41 +09:00
Hajime Hoshi
5826a958e1 graphics: Add a comment 2016-07-03 02:47:12 +09:00
Hajime Hoshi
0519c69c13 graphics: Add Image.noSave 2016-07-03 01:08:47 +09:00
Hajime Hoshi
fb8b6e93e5 graphics: Add TestNewImageFromSubImage (not bug fix) 2016-07-02 23:24:43 +09:00
Hajime Hoshi
5e892b3887 graphics: Add a comment about bug #211 2016-07-01 18:27:01 +09:00
Hajime Hoshi
5eb77d2fb5 Remove 'default framebuffer' and add 'screen framebuffer' for iOS 2016-06-18 04:56:13 +09:00
Hajime Hoshi
3f18096e95 graphics: Refactoring: Remove unneeded function 2016-06-13 00:01:01 +09:00
Hajime Hoshi
a1fbf2cd2d graphics: Remove 'Resume' 2016-06-12 23:54:36 +09:00
Hajime Hoshi
854fa6f32c graphics: Bug fix: double disposing 2016-06-12 23:13:41 +09:00