Commit Graph

2996 Commits

Author SHA1 Message Date
Hajime Hoshi
447bda7d68 Remove calling gl.checkFramebufferStatus 2015-01-03 02:01:30 +09:00
Hajime Hoshi
449bc7931d Change receiver ColorM.Element and GeoM.Element to pointers (performance issue) 2015-01-03 01:54:12 +09:00
Hajime Hoshi
091cc215fb Remove NextPowerOf2 (for uint64) 2015-01-03 01:46:25 +09:00
Hajime Hoshi
1df0854193 Update docs 2015-01-03 01:24:37 +09:00
Hajime Hoshi
62f47ed02f Change the body's background color black 2015-01-03 01:19:25 +09:00
Hajime Hoshi
ae04bb17f6 Reduce calling glFlush 2015-01-03 01:14:36 +09:00
Hajime Hoshi
47227139db Implement keyboard events for js 2015-01-03 00:52:49 +09:00
Hajime Hoshi
5c755f2f31 Fix BindFramebuffer to pass JS null object explicitly 2015-01-02 23:52:40 +09:00
Hajime Hoshi
24c39bcd18 Fix shaders for WebGL 2015-01-02 23:31:32 +09:00
Hajime Hoshi
bd4434c62c Add loadimage_js.go 2015-01-02 16:48:07 +09:00
Hajime Hoshi
e9527df0f5 Remove calling runtime.LockOSThread (now blocks can be built with gopherjs) 2015-01-02 15:37:36 +09:00
Hajime Hoshi
cadb3fffdf Add ui_js.go and input_js.go 2015-01-02 15:20:05 +09:00
Hajime Hoshi
c95390801a Add keys.go 2015-01-02 03:29:51 +09:00
Hajime Hoshi
c4e104a5d2 Remove ui.ActualScale() 2015-01-02 03:28:43 +09:00
Hajime Hoshi
3d01084a2a Hide structs in internal/ui 2015-01-02 03:25:31 +09:00
Hajime Hoshi
a9e323d02c Rename input -> Input 2015-01-02 02:44:00 +09:00
Hajime Hoshi
8994bf4fad Rename RealScale -> ActualScale 2015-01-02 02:23:47 +09:00
Hajime Hoshi
96f5315c49 Add internal/ui module 2015-01-02 02:13:27 +09:00
Hajime Hoshi
5f4aa33edf Reduce currentUI usages 2015-01-01 04:30:10 +09:00
Hajime Hoshi
26b4ded0f1 Add credit of the gophers photograph (#51) 2015-01-01 03:02:53 +09:00
Hajime Hoshi
92f6264815 Happy New Year 2015 2015-01-01 00:04:06 +09:00
Hajime Hoshi
bcbaf2e674 Bug fix: opengl.Program can't take 0 (in gopherjs) 2014-12-31 23:53:54 +09:00
Hajime Hoshi
438380bb6e Add context_js.go 2014-12-31 23:34:50 +09:00
Hajime Hoshi
25fb0a9e31 Unify Uniform* methods 2014-12-31 20:07:27 +09:00
Hajime Hoshi
e10bcb3dd8 Move some methods to opengl.Context 2014-12-31 19:27:41 +09:00
Hajime Hoshi
4e3beb65f0 Rename Framebuffer.framebuffer -> Framebuffer.native 2014-12-31 18:00:53 +09:00
Hajime Hoshi
cdcc46543b Remove all dependencies on go-gl/gl from internal/graphics 2014-12-31 17:54:29 +09:00
Hajime Hoshi
f88154f380 Add opengl.Context.NewBuffer 2014-12-31 17:45:23 +09:00
Hajime Hoshi
7597268e85 Remove dependency on go-gl/gl in framebuffer.go 2014-12-31 17:04:03 +09:00
Hajime Hoshi
37828c452f Add opengl.AttribLocation 2014-12-31 17:01:08 +09:00
Hajime Hoshi
b8dde70b03 Add opengl.UniformLocation 2014-12-31 16:48:25 +09:00
Hajime Hoshi
dc6a153c65 Add opengl.Context.NewShader 2014-12-31 16:12:13 +09:00
Hajime Hoshi
a4a4c91eb1 Add opengl.Framebuffer.Fill 2014-12-31 15:26:06 +09:00
Hajime Hoshi
fbcd04cda8 Add opengl.Framebuffer.SetAsViewport 2014-12-31 15:22:15 +09:00
Hajime Hoshi
b1d4ce2120 Add opengl.Texture.Pixels 2014-12-31 15:11:19 +09:00
Hajime Hoshi
cc9b874dd0 Add opengl.NewTexture 2014-12-31 15:00:28 +09:00
Hajime Hoshi
efb759d23c Add package internal/opengl 2014-12-31 03:04:52 +09:00
Hajime Hoshi
450a8da267 Rename internal/opengl -> internal/graphics 2014-12-31 02:55:17 +09:00
Hajime Hoshi
0f569807e2 Bug fix: rename short32Size -> float32Size 2014-12-31 02:46:37 +09:00
Hajime Hoshi
957b4d392f Refactoring: Hide some functions of opengl 2014-12-31 02:06:08 +09:00
Hajime Hoshi
501e51c554 Update doc 2014-12-30 00:53:41 +09:00
Hajime Hoshi
9fb5c178ed Update version (1.1.0-alpha) 2014-12-29 23:54:22 +09:00
Hajime Hoshi
9e03c28c67 Show current version 2014-12-29 23:52:37 +09:00
Hajime Hoshi
075c67a84c Separate license and version from docs 2014-12-29 23:24:22 +09:00
Hajime Hoshi
b77181e37a Remove returning values of Add/Concat 2014-12-29 19:04:18 +09:00
Hajime Hoshi
2d667a399c Bug fix: blocks/main.go 2014-12-29 18:52:56 +09:00
Hajime Hoshi
1e6f51ed23 Add blocks example to index.html 2014-12-29 18:43:35 +09:00
Hajime Hoshi
1c4a652a6d blocks: Change font color 2014-12-29 18:33:57 +09:00
Hajime Hoshi
bb1d168154 blocks: Show background image; Go back to title after gameover 2014-12-29 18:30:36 +09:00
Hajime Hoshi
083dafa627 blocks: Flushing blocks 2014-12-29 17:44:06 +09:00