Commit Graph

306 Commits

Author SHA1 Message Date
Hajime Hoshi
3a9a7fed87 Rename Texture -> Image (#29) 2014-12-21 02:55:15 +09:00
Hajime Hoshi
146c1db44a Rename RenderTarget.Texture -> .Image 2014-12-21 02:45:50 +09:00
Hajime Hoshi
6a2cfab839 Rename TexturePart -> ImagePart 2014-12-21 02:42:55 +09:00
Hajime Hoshi
40c763724f Rename NewTexture -> NewImage 2014-12-21 02:29:04 +09:00
Hajime Hoshi
ee61db3478 Rename DrawTexture -> DrawImage 2014-12-21 02:24:57 +09:00
Hajime Hoshi
991adb7449 Change RenderTexture to interface 2014-12-21 00:36:27 +09:00
Hajime Hoshi
01e0d42451 Remove GraphicsContext; Add rendering methods to RenderTarget (#26) 2014-12-20 23:24:15 +09:00
Hajime Hoshi
d4cd858eeb Improve alphablending example 2014-12-20 19:11:06 +09:00
Hajime Hoshi
df35a0ce1e Bug fix: the default framebuffer can't bind a texture 2014-12-20 18:57:00 +09:00
Hajime Hoshi
b50e82f49d Add example alphablending 2014-12-20 16:15:21 +09:00
Hajime Hoshi
c49937519e Change GraphicsContext.Fill to use color.Color 2014-12-20 06:18:28 +09:00
Hajime Hoshi
ccef1b5e65 Remove unneeded shaders 2014-12-20 05:59:07 +09:00
Hajime Hoshi
6673a39fa2 Introduce Photoshop-like alpha blending 2014-12-20 05:57:18 +09:00
Hajime Hoshi
dc0e67f600 Add example mosaic 2014-12-18 23:19:01 +09:00
Hajime Hoshi
49bcf8bb32 Remove Drawer; Add GraphicsContext.DrawTexture 2014-12-18 22:24:27 +09:00
Hajime Hoshi
9bd0f9363c Change the filter 2014-12-18 21:59:44 +09:00
Hajime Hoshi
60a1626724 Add example perspective 2014-12-18 21:23:36 +09:00
Hajime Hoshi
c8007a6252 Change TexturePart int -> float64 2014-12-18 20:48:36 +09:00
Hajime Hoshi
9c18aef725 Change TexturePart 2014-12-18 20:04:40 +09:00
Hajime Hoshi
87d49546f3 Enrich the example 2014-12-18 01:38:01 +09:00
Hajime Hoshi
0e673670c0 Replace DrawWhole with DrawWholeTexture and DrawWholeRenderTarget 2014-12-17 23:06:14 +09:00
Hajime Hoshi
f3e4d1703d Add Texture.Width, Height and RenderTarget.Width, Height 2014-12-17 22:50:44 +09:00
Hajime Hoshi
bac4317fc5 Replace RenderTargetID with RenderTarget 2014-12-17 22:04:33 +09:00
Hajime Hoshi
eb11831585 Replace TextureID with Texture 2014-12-17 21:50:58 +09:00
Hajime Hoshi
33cb234ae1 Bug fix: Creating a render target before running 2014-12-17 20:21:27 +09:00
Hajime Hoshi
ebdee00dd2 Simplify API: Make loading textures enable before running a game (#24) 2014-12-17 20:03:26 +09:00
Hajime Hoshi
a95ed2cd2a Simplify Run and Remove Game 2014-12-17 17:45:06 +09:00
Hajime Hoshi
1c460d80c3 Add examples/image 2014-12-17 17:10:38 +09:00
Hajime Hoshi
3cf449c52c Change the algorithm of RotateHue 2014-12-15 09:37:44 +09:00
Hajime Hoshi
6eaec92a4e Change ColorMatrix's methods to functions 2014-12-15 02:04:33 +09:00
Hajime Hoshi
2c67a71a53 Change GeometryMatrix's methods to functions 2014-12-15 01:58:52 +09:00
Hajime Hoshi
d5f8e79c88 Add RotateHue 2014-12-15 01:47:38 +09:00
Hajime Hoshi
d25d5f39b0 Move example files 2014-12-14 23:15:18 +09:00
Hajime Hoshi
00a7cb1bac Implement paint.go 2014-12-14 23:06:58 +09:00
Hajime Hoshi
d0c0dea2be Remove GameContext 2014-12-14 17:28:19 +09:00
Hajime Hoshi
8319e0d41d Remove package glfw (once) 2014-12-14 17:00:11 +09:00
Hajime Hoshi
4addf8f9af Rename PushOffscreen -> PushRenderTarget 2014-12-13 14:53:53 +09:00
Hajime Hoshi
54509e42cf Add GraphicsContext.PushOffscreen / PopOffscreen (#21) 2014-12-11 03:50:35 +09:00
Hajime Hoshi
d5529d4351 Add ebitenutil/debugprint.go 2014-12-11 01:59:38 +09:00
Hajime Hoshi
a39f0e904d Remove some methods; Add Game.Initialize 2014-12-11 01:12:46 +09:00
Hajime Hoshi
b313578a24 Add ebiten/runner; Move glfw -> internal/glfw 2014-12-10 22:55:34 +09:00
Hajime Hoshi
00552d91c2 Remove Canvas 2014-12-10 10:44:27 +09:00
Hajime Hoshi
225f1fa7b1 Add license comments (#18) 2014-12-09 23:16:04 +09:00
Hajime Hoshi
164b320170 Unify packages to ebiten (#19) 2014-12-09 22:19:30 +09:00
Hajime Hoshi
7311369a07 Revert main.go as blocks.go 2014-12-09 01:35:35 +09:00
Hajime Hoshi
60e4d6f6ff Bug fix: can't call canvas.use recursively 2014-12-09 01:08:47 +09:00
Hajime Hoshi
0d78f9937f Move main.go; Change the package name blocks -> main 2014-12-08 23:14:20 +09:00
Hajime Hoshi
5fc5acd3d9 Add input.Mouse 2014-12-08 22:51:40 +09:00
Hajime Hoshi
eb8c592269 Add ebiten.png to license.md 2014-12-08 10:35:19 +09:00
Hajime Hoshi
111234ee69 Add license.md 2014-12-08 10:32:10 +09:00
Hajime Hoshi
ca99e94b5c Remove TODOs; Hide some structs 2014-12-08 00:19:46 +09:00
Hajime Hoshi
7fd54f6bb3 Add input 2014-12-07 22:10:04 +09:00
Hajime Hoshi
c039c13acd Change API 2014-12-07 19:25:49 +09:00
Hajime Hoshi
9b05640ddf Refactoring 2014-12-07 18:25:28 +09:00
Hajime Hoshi
6a2229f973 Add -cpuprofile option (#14) 2014-12-07 06:04:14 +09:00
Hajime Hoshi
4eb6c8d131 Rename Id -> ID 2014-12-07 05:21:20 +09:00
Hajime Hoshi
b27ba795df Change APIs to return errors 2014-12-07 04:14:35 +09:00
Hajime Hoshi
53cb2fbce8 Add global function to create textures / render targets 2014-12-07 03:28:50 +09:00
Hajime Hoshi
18141ecb6f Remove ui.InputState; Add ui.Keyboard 2014-12-07 03:27:55 +09:00
Hajime Hoshi
71d9bb8958 Remove ui.Keys 2014-12-07 02:27:08 +09:00
Hajime Hoshi
f0f77c1a2f Add ui.Run 2014-12-07 01:09:59 +09:00
Hajime Hoshi
d47dd79e1c Rename methods: Identity* -> *I 2014-12-06 23:03:17 +09:00
Hajime Hoshi
7d4540d863 gofmt 2014-12-06 22:56:57 +09:00
Hajime Hoshi
ca97ee6961 Implement ui/glfw except for inputting 2014-12-06 02:26:02 +09:00
Hajime Hoshi
3aa6f996a5 Remove underscores from the filenames (#9) 2014-12-05 22:21:10 +09:00
Hajime Hoshi
a32973a33e Fix the module paths (#12) 2014-12-05 22:16:58 +09:00
Hajime Hoshi
a4e74eb4be Add ui.InputState 2014-05-12 10:04:28 +09:00
Hajime Hoshi
0b9f27287b Add ui.Keys 2014-05-12 02:16:23 +09:00
Hajime Hoshi
fb4751e8cd Remove ui.GameWindow; Add ui.Canvas 2014-05-11 21:24:37 +09:00
Hajime Hoshi
214f099ef7 Simplify main() 2014-05-11 19:54:19 +09:00
Hajime Hoshi
86846b0171 Remove unnecessary channels 2014-05-11 19:44:36 +09:00
Hajime Hoshi
26122aa120 Remove gl.go 2014-05-04 00:40:53 +09:00
Hajime Hoshi
61db71e453 Make CreateTexture/RenderTarget synchronous 2014-05-03 17:50:42 +09:00
Hajime Hoshi
4e6aeaa291 Add Textures 2014-05-03 15:53:43 +09:00
Hajime Hoshi
322d0f1924 Remove graphics.Drawer.DrawParts 2014-05-03 13:58:18 +09:00
Hajime Hoshi
562d04cacc Change API of graphics.Context 2014-05-01 22:45:48 +09:00
Hajime Hoshi
8ff6e4efa0 Refactoring: Add NSAutoreleasePool 2014-01-13 15:26:29 +09:00
Hajime Hoshi
2b18ce8748 Rename PollEvents -> DoEvents 2014-01-11 18:11:13 +09:00
Hajime Hoshi
ffc08a75d3 Add filter to CreateRenderTarget 2014-01-11 18:07:12 +09:00
Hajime Hoshi
11a9b77be3 Refactoring 2014-01-11 15:18:04 +09:00
Hajime Hoshi
ee23301538 Use signal to catch SIGINT and SIGTERM 2014-01-11 15:14:47 +09:00
Hajime Hoshi
2b4dc28d91 go fmt 2014-01-07 23:29:24 +09:00
Hajime Hoshi
5d2e2476b6 Refactoring: lazy initializing the application 2014-01-07 02:14:53 +09:00
Hajime Hoshi
1f1c5cba95 Add methods to ui/cocoa/texture_factory.go 2014-01-07 00:10:46 +09:00
Hajime Hoshi
cc14882cb2 Remove void* 2013-12-31 03:17:39 +09:00
Hajime Hoshi
51fa65bf2f Flush lines 2013-12-27 00:37:36 +09:00
Hajime Hoshi
ce97070f66 Implement landing 2013-12-20 03:21:10 +09:00
Hajime Hoshi
14994d57f2 Landing a piece 2013-12-20 03:03:35 +09:00
Hajime Hoshi
2ac027c452 Drop a piece 2013-12-20 01:23:00 +09:00
Hajime Hoshi
631b226b5b Move a piece 2013-12-20 01:08:32 +09:00
Hajime Hoshi
bc7dd51adf Show a piece 2013-12-19 03:21:25 +09:00
Hajime Hoshi
71e08bca41 Add images/README.md 2013-12-18 18:09:56 +09:00
Hajime Hoshi
c35d0f85ec Title for blocks 2013-12-18 18:05:28 +09:00
Hajime Hoshi
72ce849fbd Key events 2013-12-16 10:02:15 +09:00
Hajime Hoshi
94ecfbba9c Refactoring event handling 2013-12-16 09:39:49 +09:00
Hajime Hoshi
0a3ec197ff Rename InputStateUpdated -> MouseStateUpdated 2013-12-15 23:45:50 +09:00
Hajime Hoshi
f61d9280e4 Rename: Canvas -> Context 2013-12-14 06:10:24 +09:00
Hajime Hoshi
b1062a80bf Refactoring 2013-12-14 05:34:27 +09:00
Hajime Hoshi
5aa0b5f5c2 Avoid a busy loop 2013-12-13 01:27:02 +09:00
Hajime Hoshi
d087333e48 Refactoring 2013-12-13 00:45:24 +09:00
Hajime Hoshi
82e8849e01 Refactoring 2013-12-11 22:31:13 +09:00
Hajime Hoshi
0c51a7a362 Remove ebiten_controller.c 2013-12-11 00:54:00 +09:00
Hajime Hoshi
54557aadf2 Add WindowClosedEvent 2013-12-11 00:49:30 +09:00
Hajime Hoshi
2e17c366ca Add and use cocoa.Window 2013-12-11 00:18:08 +09:00
Hajime Hoshi
a0cf1e5d55 Remove GOMAXPROCS 2013-12-10 21:17:39 +09:00
Hajime Hoshi
2bd77e949a Refactoring 2013-12-09 09:45:40 +09:00
Hajime Hoshi
894dd71d35 Change the background color 2013-12-09 02:00:17 +09:00
Hajime Hoshi
2ea00ec8a9 Add a transparent screen 2013-12-08 23:49:48 +09:00
Hajime Hoshi
698d176ec3 Refactoring 2013-12-08 23:03:00 +09:00
Hajime Hoshi
63abfb2c13 Bug fix: the initial state of a ebiten 2013-12-08 22:14:52 +09:00
Hajime Hoshi
e10bac5a8a Rotate ebiten 2013-12-08 21:03:30 +09:00
Hajime Hoshi
cdb511b08b Add matrix.Color.Scale 2013-12-08 19:38:22 +09:00
Hajime Hoshi
b14684804f Draggin ebiten 2013-12-08 17:02:35 +09:00
Hajime Hoshi
a25a2df6b4 gofmt 2013-12-08 16:28:56 +09:00
Hajime Hoshi
8fbd818f28 Async loading textures 2013-12-08 16:28:18 +09:00
Hajime Hoshi
cbc5c38db6 Remove games 2013-12-08 16:19:24 +09:00
Hajime Hoshi
4489557c84 UnuseGLContext 2013-12-08 01:35:24 +09:00
Hajime Hoshi
e55060c239 Add cocoa.textureFactory 2013-12-07 02:20:53 +09:00
Hajime Hoshi
24a735dd0b Use runtime.LockOSThread at main 2013-12-04 21:51:39 +09:00
Hajime Hoshi
dd979ac4d6 Add 'Tag' to the methods of TextureFactory 2013-12-03 23:24:34 +09:00
Hajime Hoshi
79c74273f5 Fix the event handling model 2013-12-03 22:15:00 +09:00
Hajime Hoshi
f9e5e754b2 Move some definitions to the ui package 2013-12-03 00:15:01 +09:00
Hajime Hoshi
add743572c Add LazyCanvas 2013-12-02 21:47:41 +09:00
Hajime Hoshi
3e5d58ef85 Close the observing channel 2013-12-01 21:42:41 +09:00
Hajime Hoshi
e2a8b07a94 Event handling 2013-12-01 21:23:03 +09:00
Hajime Hoshi
da30a83491 Remove ebiten.GameContext 2013-11-30 04:24:52 +09:00
Hajime Hoshi
2a8af24518 Remove InputState 2013-11-30 03:21:10 +09:00
Hajime Hoshi
7c91b03678 Bug fix: rects 2013-11-29 23:18:44 +09:00
Hajime Hoshi
89c33eac85 Remove Canvas.ToTexture 2013-11-29 22:45:18 +09:00
Hajime Hoshi
e8c518735b Rename graphics.Context -> graphics.Canvas 2013-11-29 22:06:22 +09:00
Hajime Hoshi
f0ef3384cb Refactoring 2013-11-29 02:38:18 +09:00
Hajime Hoshi
0a16107cd6 Refactoring 2013-11-24 01:17:22 +09:00
Hajime Hoshi
bcb8c0d45a Remove ebiten.FPS 2013-11-23 19:51:29 +09:00
Hajime Hoshi
cc7b78bb9a Refactoring 2013-11-23 19:31:10 +09:00
Hajime Hoshi
75a362d5b1 Clean up 2013-11-23 18:10:15 +09:00
Hajime Hoshi
170ed689fa Stop using [NSApp run] 2013-11-23 02:56:18 +09:00
Hajime Hoshi
f72076641a Refactoring 2013-11-17 22:42:12 +09:00
Hajime Hoshi
9aded38cc2 Refactoring 2013-10-23 01:08:29 +09:00
Hajime Hoshi
a0f17a4971 Rename ID -> Id 2013-10-21 22:18:10 +09:00
Hajime Hoshi
3a383b3078 Change TextureFactory.NewRenderTarget 2013-10-21 01:23:44 +09:00
Hajime Hoshi
ba931902b9 Refactoring: Any images are acceptable 2013-10-21 00:17:05 +09:00
Hajime Hoshi
801688f511 Rename Game.Init -> Game.InitTextures 2013-10-20 15:51:26 +09:00
Hajime Hoshi
d360f0effe Add TestPattern 2013-10-19 02:58:00 +09:00
Hajime Hoshi
8ae31a35dc Bug fix: a rect's size 2013-10-19 00:57:43 +09:00
Hajime Hoshi
e2509e3439 Rename Context.TextureID -> ToTexture 2013-10-18 00:45:12 +09:00
Hajime Hoshi
db4e3fdc03 Remove Texture/RenderTarget 2013-10-17 00:14:32 +09:00
Hajime Hoshi
fd0ba69f0b Remove Texture.Width()/Height() 2013-10-16 23:20:07 +09:00
Hajime Hoshi
5679120f29 Remove RenderTarget.Width/Height 2013-10-16 23:06:35 +09:00
Hajime Hoshi
20f9a990ac Replace Screen/ResetOffscreen 2013-10-16 22:18:46 +09:00
Hajime Hoshi
319d1bfc74 Refactoring: glut.UI implements ui.UI 2013-10-15 09:12:43 +09:00