Hajime Hoshi
|
ff86f8bd93
|
opengl: Refactoring
|
2018-06-23 04:43:56 +09:00 |
|
Hajime Hoshi
|
33e4f82d7c
|
graphicsutil: Optimization to avoid boundary checks
|
2018-06-23 03:18:54 +09:00 |
|
Hajime Hoshi
|
6c1c60d40d
|
opengl: Make Program struct to avoid Get()
|
2018-06-22 01:45:25 +09:00 |
|
Hajime Hoshi
|
55d832fc63
|
shareable: Don't extend textures on macOS
Fixes #593
|
2018-06-20 11:57:39 +09:00 |
|
Hajime Hoshi
|
d83799acf8
|
opengl: Bug fix: mobile build failure
|
2018-06-20 11:16:21 +09:00 |
|
Hajime Hoshi
|
8d644479cc
|
opengl: Initialize consts first to avoid 'Get' calls
|
2018-06-19 04:02:56 +09:00 |
|
Hajime Hoshi
|
62bd35e412
|
Avoid 'Get' call if possible
(*js.Value).Get has some overhead especially on Wasm.
|
2018-06-19 03:43:24 +09:00 |
|
Hajime Hoshi
|
702a429afb
|
opengl: Faster conversion from []float32 to Float32Array
|
2018-06-19 03:31:53 +09:00 |
|
Hajime Hoshi
|
840c4d24df
|
graphicsutil: Accept matrix parameters directly for performance
|
2018-06-19 00:19:32 +09:00 |
|
Philipp Steinhaus
|
39b3170185
|
input: Enable mouse wheel input (#628)
|
2018-06-18 00:38:30 +09:00 |
|
Hajime Hoshi
|
a3c754d2cc
|
graphics: Restrict QuadVertices to allow only power of 2 sizes
Now QuadVertices can skip calculating power of 2 values.
|
2018-06-17 23:05:19 +09:00 |
|
Hajime Hoshi
|
12287a8382
|
graphicsutil: Reduce multiplying
|
2018-06-17 20:11:31 +09:00 |
|
Hajime Hoshi
|
ac24a8382f
|
graphicsutil: Extract matrix applying for performance
|
2018-06-17 19:45:09 +09:00 |
|
Hajime Hoshi
|
1849b59741
|
graphicsutil: Refactoring
|
2018-06-17 17:29:36 +09:00 |
|
Hajime Hoshi
|
5d37c331bb
|
graphicsutil: Remove unused arguments
|
2018-06-17 16:38:21 +09:00 |
|
Hajime Hoshi
|
95561bbf6b
|
affine: Use float32 values for GeoM
float32 was slow on GopherJS, but not slow on Wasm.
|
2018-06-17 15:38:10 +09:00 |
|
Hajime Hoshi
|
4c2fc30311
|
graphicsutil: Don't allow nil GeoM
|
2018-06-17 01:48:56 +09:00 |
|
Hajime Hoshi
|
f6b7a6be73
|
graphics: Use copy function in appendVertices
|
2018-06-17 01:09:05 +09:00 |
|
Hajime Hoshi
|
b4ace53596
|
affine: Remove GeoM to avoid GeoM allocations on the heap
|
2018-06-17 00:59:50 +09:00 |
|
Hajime Hoshi
|
460c47a9eb
|
opengl: Pass slices to js.Value
|
2018-06-16 02:19:18 +09:00 |
|
Hajime Hoshi
|
3fbe8d8ecb
|
opengl: Change Shader/Program/Buffer to js.Value
|
2018-06-16 00:30:16 +09:00 |
|
Hajime Hoshi
|
2497b64cf7
|
opengl: Change uniformLocation to js.Value
|
2018-06-16 00:30:16 +09:00 |
|
Hajime Hoshi
|
17ccf06755
|
opengl: Change Texture/Framebuffer to js.Value
|
2018-06-16 00:30:16 +09:00 |
|
Hajime Hoshi
|
48e2c2aba9
|
opengl: Use gopherwasm
|
2018-06-16 00:30:16 +09:00 |
|
Hajime Hoshi
|
b87a851c0e
|
ui: New GopherWASM API
|
2018-06-16 00:26:28 +09:00 |
|
Hajime Hoshi
|
a90b7efdf4
|
shareable: Refactoring
|
2018-06-11 01:02:25 +09:00 |
|
Hajime Hoshi
|
3ee76ffd8e
|
graphicsutil: Move vertices.go to graphicsutil
|
2018-06-10 23:08:22 +09:00 |
|
Hajime Hoshi
|
9745ccee47
|
restorable: Make (*Image).DrawImage accept vertices and indices
|
2018-06-10 22:59:00 +09:00 |
|
Hajime Hoshi
|
97a54548df
|
restorable: Rename vertices -> quadVertices
|
2018-06-10 20:41:17 +09:00 |
|
Hajime Hoshi
|
600983e028
|
restorable: Record indices for restoring
|
2018-06-10 20:17:48 +09:00 |
|
Hajime Hoshi
|
2e5e7e6e24
|
restorable: Remove merging commands for code simplicity
|
2018-06-10 20:06:17 +09:00 |
|
Hajime Hoshi
|
03079ba067
|
restorable: Refactoring
|
2018-06-10 18:40:46 +09:00 |
|
Hajime Hoshi
|
c782380a1c
|
restorable: Specify indices from restorable package
|
2018-06-10 18:17:58 +09:00 |
|
Hajime Hoshi
|
2853895e6b
|
graphics: Refactoring: Rename functions
|
2018-06-10 17:53:57 +09:00 |
|
Hajime Hoshi
|
32ac3840a7
|
graphics: Add comments
|
2018-06-10 17:10:11 +09:00 |
|
Hajime Hoshi
|
4e21bfd005
|
graphics: Rename elements -> indices
|
2018-06-10 17:06:40 +09:00 |
|
Hajime Hoshi
|
8a268e871f
|
graphics: Specify indices before commands
|
2018-06-10 17:04:58 +09:00 |
|
Hajime Hoshi
|
be665a3526
|
ui: Better way to avoid blocking
Fixes #625
|
2018-06-09 13:36:35 +09:00 |
|
Hajime Hoshi
|
6e12f287b0
|
ui: Use goroutine to avoid blocking on GopherJS
|
2018-06-09 03:05:37 +09:00 |
|
Hajime Hoshi
|
e6d0943366
|
graphics: Rename color_matrix -> color_matrix_body
|
2018-06-06 02:46:54 +09:00 |
|
Hajime Hoshi
|
b86860abcc
|
graphics: Call BindBuffer only when the program was null
|
2018-06-04 00:13:23 +09:00 |
|
Hajime Hoshi
|
fac639f9b7
|
graphics: Refactoring: Remove drawImageCommand.quadsNum
|
2018-06-03 23:58:08 +09:00 |
|
Hajime Hoshi
|
c9dd04d471
|
graphics: Refactoring: Remove command groups
|
2018-06-03 23:13:01 +09:00 |
|
Hajime Hoshi
|
9d87622a19
|
graphics: Set elements for every EnqueueDrawImageCommand
|
2018-06-03 20:42:45 +09:00 |
|
Hajime Hoshi
|
525ad04568
|
graphics: Split the notion of vertices and elements
|
2018-06-03 16:07:26 +09:00 |
|
Hajime Hoshi
|
25f2dfc677
|
graphics: Refactoring
|
2018-06-03 01:43:10 +09:00 |
|
Hajime Hoshi
|
03e3f0f5f7
|
graphics: Call glBufferSubData for element array buffer every frame
This is a preparation for more flexible drawing commands.
|
2018-05-31 00:53:05 +09:00 |
|
Hajime Hoshi
|
5e93d75ae0
|
graphics: Fix comments
|
2018-05-28 02:38:26 +09:00 |
|
Hajime Hoshi
|
399f965729
|
opengl: Add BindBuffer accepting both element-array-buffer and array-buffer
This change is a pure refactoring to clarify that array buffer is
binded before its usage.
|
2018-05-28 00:34:00 +09:00 |
|
Hajime Hoshi
|
311788dfe2
|
ui: Remove warnings of deadlock
Now gopherwasm fixed this problem by avoiding js.MakeFunc.
See also: 3fe87b73c0
|
2018-05-27 04:10:14 +09:00 |
|