Commit Graph

1635 Commits

Author SHA1 Message Date
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
17fbffb720 graphics: Rename noSave -> volatile 2016-07-05 03:18:55 +09:00
Hajime Hoshi
11e67d0eed graphics: Refactoring 2016-07-05 03:15:32 +09:00
Hajime Hoshi
302f5a5437 opengl: Remove BindScreenFramebuffer 2016-07-05 03:07:33 +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
7903fe2108 graphics: Remove texture's width/height 2016-07-05 00:31:02 +09:00
Hajime Hoshi
93f7fdd349 graphics: Remove framebuffer's width/height 2016-07-05 00:29:46 +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
910e1b760c ui: Introduce glfwScale 2016-07-04 11:37:34 +09:00
Hajime Hoshi
cf093513be graphics: Bug fix: need more locks for imageImpl 2016-07-04 01:50:58 +09:00
Hajime Hoshi
55bfe19bf8 opengl: Add context.DoWork (mobile) 2016-07-04 01:25:35 +09:00
Hajime Hoshi
61ba8dad17 opegnl: Remove initialization (use Reset instead) (mobile) 2016-07-04 01:04:35 +09:00
Hajime Hoshi
6cfb92c4c4 opengl: Remove init (JavaScript) 2016-07-04 00:55:04 +09:00
Hajime Hoshi
0d91883fb9 opengl: Remove init (desktops) 2016-07-04 00:51:58 +09:00
Hajime Hoshi
c2d21bc39f opengl: Misspelling 2016-07-04 00:31:51 +09:00
Hajime Hoshi
163ee01bd5 graphics: Rename Initialize/Resume -> Reset 2016-07-04 00:30:14 +09:00
Hajime Hoshi
d0a779e272 graphics: Delete programs and buffers when resuming 2016-07-04 00:23:45 +09:00
Hajime Hoshi
2c1bcaf87a graphics: Remove imageM (global lock) 2016-07-03 23:31:03 +09:00
Hajime Hoshi
d70bf66a59 graphics: Reduce imageM usages 2016-07-03 23:23:57 +09:00
Hajime Hoshi
f7a84fe969 graphics: Move all context usages to internal/graphics 2016-07-03 22:35:27 +09:00
Hajime Hoshi
6e76c3ed6b graphics: Move context.resume() to internal/graphics 2016-07-03 21:42:01 +09:00
Hajime Hoshi
146c1e5846 graphics: Refactoring: Remove graphicsContext.Draw and flush 2016-07-03 18:56:44 +09:00
Hajime Hoshi
86144a1cd6 opengl: Move members to variables 2016-07-03 18:23:19 +09:00
Hajime Hoshi
fbc1a4238c graphics: Reduce calls of ui.GLContext() 2016-07-03 17:27:33 +09:00
Hajime Hoshi
f29ff4a9e2 graphics: Refactoring: No need to call ResetViewportSize 2016-07-03 16:41:05 +09:00
Hajime Hoshi
93f052de8c graphics: Refactoring 2016-07-03 16:18:29 +09:00
Hajime Hoshi
375d71e085 graphics: Reduce calls of ui.GLContext() 2016-07-03 15:41:04 +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
0e2a1a1636 mobile: Change the unit from px to dp on Android (#241) 2016-07-03 05:37:56 +09:00
Hajime Hoshi
83e24f6d48 ui: Update a comment about units 2016-07-03 04:13:39 +09:00
Hajime Hoshi
c7fee53017 mobile: Update a comment about units 2016-07-03 03:57:09 +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
9de581f832 audio: Check returning values of write (android) 2016-07-01 22:05:11 +09:00
Hajime Hoshi
5e892b3887 graphics: Add a comment about bug #211 2016-07-01 18:27:01 +09:00
Hajime Hoshi
cc39cdc8f5 opengl: Bug fix: glGetShaderPrecisionFormat returns wrong values on emulators (#239) 2016-07-01 02:40:53 +09:00
Hajime Hoshi
47a0b3ccfa ui: Need LockOSThread for mobile 2016-07-01 00:44:15 +09:00
Hajime Hoshi
c50f5a3509 mobile: Rename Render -> Update 2016-06-30 02:12:31 +09:00
Hajime Hoshi
3ebc5cc15a ui: Stop the game when the window is deactivated (#230) 2016-06-30 01:07:54 +09:00
Hajime Hoshi
ff30f01c1b graphics: Remove Finalize 2016-06-30 00:21:47 +09:00
Hajime Hoshi
328ef85606 opengl: Prepare Context Losing for JavaScript (#217) 2016-06-29 23:18:02 +09:00