Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						ef62f407d1 
					 
					
						
						
							
							Clean up build tags  
						
						
						
						
					 
					
						2021-10-24 15:05:36 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						6c8a7d1079 
					 
					
						
						
							
							internal/graphicsdriver/opengl: Bug fix: A location cache map must be reset when a program is deleted  
						
						... 
						
						
						
						Closes  #1753  
					
						2021-08-15 04:54:20 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						50d2d7ed61 
					 
					
						
						
							
							internal/graphicsdriver/opengl: Remove unused code using PBO  
						
						... 
						
						
						
						Updates #1678  
						
						
					 
					
						2021-07-14 21:51:27 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						daa883d799 
					 
					
						
						
							
							ebiten: Bug fix: Stencil buffers should not be cleared until all the vertices are rendered  
						
						... 
						
						
						
						Updates #1684  
						
						
					 
					
						2021-07-05 17:41:06 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						b466a0cbd7 
					 
					
						
						
							
							ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions  
						
						... 
						
						
						
						Updates #844 
Closes  #1684  
						
						
					 
					
						2021-07-05 03:35:55 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						269ea7c489 
					 
					
						
						
							
							internal/graphicsdriver/opengl: Refactoring: Reorder functions  
						
						... 
						
						
						
						glPixelStorei affects the result of glTexImage2D. This change makes
this fact more explicit. 
						
						
					 
					
						2021-07-03 02:09:47 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						2a8e8d0eb6 
					 
					
						
						
							
							internal/graphicsdriver/opengl: Stop using PBO  
						
						... 
						
						
						
						PBO was introduced to improve the performance at ReplacePixels,
but we found that PBO can degrades the performance. Also, now
multiple glTexImage2Ds are called successively like a batch, so
the situation is now different from that time when PBO was
introduced.
Let's remove PBO usages and wait and see.
Closes  #1678  
						
						
					 
					
						2021-06-24 21:20:58 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						7f60cd41eb 
					 
					
						
						
							
							internal/graphicsdriver/opengl: Refactoring: Remove unused arguments from texSubImage2D  
						
						
						
						
					 
					
						2021-06-24 12:06:28 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						b54ad73a2b 
					 
					
						
						
							
							Add go:build comments with go1.17beta1 fmt  
						
						
						
						
					 
					
						2021-06-11 01:11:46 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						912e13071f 
					 
					
						
						
							
							graphicsdriver/opengl: Refactoring  
						
						
						
						
					 
					
						2020-11-29 23:04:00 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						526a92256b 
					 
					
						
						
							
							graphicsdriver/opengl: Refactoring: Remove shaderType  
						
						
						
						
					 
					
						2020-11-21 23:33:25 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						8dba7b7722 
					 
					
						
						
							
							graphicsdriver/opengl: Refactoring: Remove dataType  
						
						
						
						
					 
					
						2020-11-21 23:14:43 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						9c014a281a 
					 
					
						
						
							
							graphicsdriver/opengl: Refactoring  
						
						
						
						
					 
					
						2020-11-21 23:00:57 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						859d247093 
					 
					
						
						
							
							graphicsdriver/opengl: Refactoring  
						
						
						
						
					 
					
						2020-11-21 22:49:49 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						ed494dbf59 
					 
					
						
						
							
							restorable: Reland: Do not record pixels if restoring is not requried  
						
						... 
						
						
						
						This change also remove the restrictions of operations on
graphicscommand.Image. For example, now DrawTriangles and
ReplacePixels can be mixed on the same image.
Fixes  #1022  
						
						
					 
					
						2020-11-14 15:00:16 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						86a0c7aa82 
					 
					
						
						
							
							graphicsdriver/opengl: Use PBO when retrieving pixels  
						
						
						
						
					 
					
						2020-11-13 09:10:56 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						ed028110cf 
					 
					
						
						
							
							ebiten: Allow rendering on a sub-image by scissor test  
						
						... 
						
						
						
						Fixes  #1255  
					
						2020-11-08 00:58:44 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						eed619ad0f 
					 
					
						
						
							
							graphicsdriver/metal, graphicsdriver/opengl: Reland: Remove the thread usages for performance  
						
						... 
						
						
						
						Instead, graphicscommand package has a thread.
Updates #1367  
						
						
					 
					
						2020-10-13 02:46:31 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						713eee1117 
					 
					
						
						
							
							Revert "graphicsdriver/metal, graphicsdriver/opengl: Remove the thread usages for performance"  
						
						... 
						
						
						
						This reverts commit 2942f10d9d 
						
						
					 
					
						2020-10-13 02:12:02 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						2942f10d9d 
					 
					
						
						
							
							graphicsdriver/metal, graphicsdriver/opengl: Remove the thread usages for performance  
						
						... 
						
						
						
						Instead, graphicscommand package has a thread.
Updates #1367  
						
						
					 
					
						2020-10-13 01:50:54 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						ee4ebaaa95 
					 
					
						
						
							
							Clean up the 'js' build tags  
						
						... 
						
						
						
						Updates #1129  
						
						
					 
					
						2020-10-07 02:07:03 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						bf515bb594 
					 
					
						
						
							
							Update version to v2.0.0-alpha  
						
						
						
						
					 
					
						2020-10-04 04:30:40 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						38dcadb233 
					 
					
						
						
							
							graphicsdriver/opengl: Add program error info to the error  
						
						
						
						
					 
					
						2020-08-01 18:58:05 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						073fd329f2 
					 
					
						
						
							
							graphicsdriver/opengl: Enable to pass any type of uniform variables  
						
						... 
						
						
						
						Updates #1274  
						
						
					 
					
						2020-08-01 05:11:24 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						75d34ab585 
					 
					
						
						
							
							graphicsdriver/opengl: Forbids PBO on Raspberry Pi 4 ( #1261 )  
						
						... 
						
						
						
						Fixes  #1208  
					
						2020-07-23 19:15:34 +09:00 
						 
				 
			
				
					
						
							
							
								nanoslayer 
							
						 
					 
					
						
						
							
						
						72babcd420 
					 
					
						
						
							
							ebiten: Add CompositeModeMultiply ( #1251 )  
						
						... 
						
						
						
						This change adds a new composite mode called `CompositeModeMultiply`,
which multiplies the source color with the destination color.
This is tested on Linux and Windows only.
Fixes  #410  
						
						
					 
					
						2020-07-18 21:37:17 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						e25a6f4d46 
					 
					
						
						
							
							graphicsdriver/opengl: Remove isTexture on desktops  
						
						
						
						
					 
					
						2020-05-30 20:56:13 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						1c980a16f5 
					 
					
						
						
							
							graphicsdriver/opengl: Ignore non-existent uniform locations  
						
						... 
						
						
						
						Shader users should not have to care about the existence of uniform
variables.
Updates #1168  
						
						
					 
					
						2020-05-27 11:39:11 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						7f2092f964 
					 
					
						
						
							
							graphicsdriver/opengl: Enable to bind multiple textures (in theory)  
						
						
						
						
					 
					
						2020-05-17 23:57:42 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						e66f1fb71e 
					 
					
						
						
							
							graphicsdriver/opengl: Use glBufferSubData instead of glTexSubImage2D on browsers  
						
						... 
						
						
						
						Updates #988  
						
						
					 
					
						2020-01-02 16:27:51 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						38815ba801 
					 
					
						
						
							
							graphicsdriver/opengl: Use glBufferSubData instead of glMapBuffer  
						
						... 
						
						
						
						We have confirmed that this does not slow down ReplacePixels.
Fixes  #993 
Fixes  #1040  
						
						
					 
					
						2020-01-02 00:01:27 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						815afe6670 
					 
					
						
						
							
							graphicsdriver/opengl: Reduce calls of glBindTexture  
						
						
						
						
					 
					
						2020-01-01 01:39:45 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						85cbc7e56b 
					 
					
						
						
							
							Enable to compile Ebiten on js/wasm with Go 1.14  
						
						... 
						
						
						
						Fixes  #1024  
					
						2019-12-19 00:45:53 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						78e912e30b 
					 
					
						
						
							
							graphicsdriver/opengl: Fix comments  
						
						
						
						
					 
					
						2019-11-24 18:11:45 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						3d3a1be1c4 
					 
					
						
						
							
							graphicsdriver/opengl: Use glTexSubImage2D instead of glTexImage2D  
						
						
						
						
					 
					
						2019-11-24 18:07:21 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						9f483ddc60 
					 
					
						
						
							
							graphicsdriver/opengl: Adopt WRITE_ONLY for PBOs  
						
						... 
						
						
						
						It looks like it is safe to use WRITE_ONLY:
https://stackoverflow.com/questions/30248594/write-only-glmapbuffer-what-if-i-dont-write-it-all  
						
						
					 
					
						2019-11-24 17:42:28 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						0ef8009c11 
					 
					
						
						
							
							graphicsdriver/opengl: Use uintptr whenever possible instead of unsafe.Pointer  
						
						
						
						
					 
					
						2019-11-20 02:00:02 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						4296c11256 
					 
					
						
						
							
							graphicsdriver/opengl: Refactoring  
						
						
						
						
					 
					
						2019-11-24 00:08:38 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						3df198f68e 
					 
					
						
						
							
							graphicsdriver/opengl: Use GL_READ_WRITE at glMapBuffer  
						
						... 
						
						
						
						Updates #993  
						
						
					 
					
						2019-11-22 00:27:20 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						52f6be2639 
					 
					
						
						
							
							graphicsdriver/opengl: Fix suspicious GL function calls  
						
						... 
						
						
						
						Before this change, the pixel object buffer is unbound just after
getting a pointer by glMapBuffer. This seemed suspicious.
This change fixes to do all pixel manipulations once between
glMapBuffer and glUnmapBuffer without changing a bound buffer.
This might fix a wrong rendering on some machines, but I am not
sure.
Updates #993  
						
						
					 
					
						2019-11-20 02:41:34 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						acc933b7c3 
					 
					
						
						
							
							graphicsdriver/opengl: Experimental PBO implementation  
						
						... 
						
						
						
						This change is an experimental implementation to use Pixel Buffer
Objects. This reduces calls of glTexSubImage2D.
This works only on desktops. Unfortunately WebGL does not have
this features. Mobiles can have PBO as of OpenGL ES 3.
Updates #976  
						
						
					 
					
						2019-11-17 05:01:43 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						38ee9113ee 
					 
					
						
						
							
							graphicsdriver/opengl/gl: Remvoe PtrOffset  
						
						... 
						
						
						
						Updates #889  
						
						
					 
					
						2019-10-01 01:48:42 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						f40798b586 
					 
					
						
						
							
							graphics: Move const definitions to driver package  
						
						... 
						
						
						
						Let's keep 'graphics' package as a package for utility functions
or testable functions as much as possible. 
						
						
					 
					
						2019-06-26 01:05:13 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						9bff33472a 
					 
					
						
						
							
							driver: Add (Graphics).HasHighPrecisionFlaot  
						
						... 
						
						
						
						This enables to determine whether vertices should be adjusted or
not.
Fixes  #879  
						
						
					 
					
						2019-06-22 14:57:53 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						85dcafe176 
					 
					
						
						
							
							thread: Rename Run -> Call  
						
						
						
						
					 
					
						2019-06-06 00:25:57 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						15a5896efd 
					 
					
						
						
							
							thread: Rename mainthread -> thread and add struct Thread  
						
						... 
						
						
						
						This enables thread available not only for the main thread but also
any threads.
This is a preparation for iOS Metal, that runs drawing functions on
a particular thread.
Updates #737  
						
						
					 
					
						2019-06-06 00:25:53 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						fcb5554aa1 
					 
					
						
						
							
							driver: Add Graphics.NeedsRestoring  
						
						
						
						
					 
					
						2019-05-26 19:46:12 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						0bf911905a 
					 
					
						
						
							
							Revert "graphicsdriver/opengl: Call glFinish before glReadPixels"  
						
						... 
						
						
						
						This reverts commit 04dc1faa9c#814  is 82178794c3 
						
						
					 
					
						2019-02-19 10:55:06 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						09ca873c41 
					 
					
						
						
							
							graphicsdriver/opengl: Use glBindAttribLocation instead of glGetAttribLocation  
						
						... 
						
						
						
						Attribute variables are often optimized out and it is really hard
to prevent this.
Instead of implicit indices of attribute variables, use explicit
indices by glBindAttribLocation.
Bug: #816  
						
						
					 
					
						2019-02-16 14:35:53 +09:00 
						 
				 
			
				
					
						
							
							
								Hajime Hoshi 
							
						 
					 
					
						
						
							
						
						7ff99d3965 
					 
					
						
						
							
							graphicsdriver/opengl: Remove glGetError calls  
						
						... 
						
						
						
						As glGetError doesn't tell where the error happens, this is not
useful.
Fixes  #815  
						
						
					 
					
						2019-02-16 10:00:27 +09:00