Commit Graph

410 Commits

Author SHA1 Message Date
faiface f16eb8271e fix Picture.Image 2017-01-22 14:16:19 +01:00
faiface e656130ce3 change pixelgl.Texture.Pixels to work with OpenGL 3.3 2017-01-22 14:16:06 +01:00
faiface 9228a55482 add Picture.Image method 2017-01-22 13:45:43 +01:00
faiface 4d2ccc92df add pixelgl.Texture.SetPixels/Pixels 2017-01-22 13:45:24 +01:00
faiface e9c1214953 fix window resizing 2017-01-22 03:05:59 +01:00
faiface d686841b5c add Canvas.SetSize method 2017-01-22 03:05:46 +01:00
faiface 8e1359b45d flip image in Picture to make it correct 2017-01-22 02:49:45 +01:00
faiface ca9b2716a8 add state-of-the-art canvas and use it within window 2017-01-22 02:43:13 +01:00
faiface 79ef8d51eb remove pixelgl.Viewport, because Frame sets viewport 2017-01-22 02:38:04 +01:00
faiface 2f070dc302 clarify doc 2017-01-22 01:57:36 +01:00
faiface 192c455b16 document pixelgl.Frame 2017-01-22 01:49:09 +01:00
faiface d905c04479 minor change 2017-01-20 22:50:51 +01:00
faiface 5daaad80dc always convert image in NewPicture (Bounds) 2017-01-20 22:46:18 +01:00
faiface 1f4f11078b pixelgl: actually get info log length in shader creation 2017-01-20 19:53:41 +01:00
faiface 6cb3121d0e minor change (rename variables) 2017-01-20 19:26:28 +01:00
faiface e34970d541 fix - convert image in Picture to NRGBA, not RGBA 2017-01-20 19:25:26 +01:00
faiface 37baaee464 add forgotten gltriangles.go 2017-01-20 18:40:48 +01:00
faiface 3524644d3d generalize OpenGL triangles into GLTrangles to DRY 2017-01-20 18:40:11 +01:00
faiface 7a7b2f2588 adopt github.com/faiface/mainthread package + frame prototype 2017-01-20 17:45:19 +01:00
faiface de21a40184 disable mipmaping in Texture 2017-01-17 01:24:15 +01:00
faiface 2a5fddabd8 add orphan pixelgl functions 2017-01-16 01:12:03 +01:00
faiface 7a4fce3b75 remove error return value from NewTexture 2017-01-16 00:53:02 +01:00
faiface 2848ee5c0c avoid cheese comment alignment 2017-01-14 16:20:31 +01:00
faiface c9f445787e add support for Picture slicing (Batch and Window) 2017-01-14 16:07:51 +01:00
faiface 3b39cc60e9 rework VertexSlice for better performance 2017-01-14 00:47:49 +01:00
faiface 43bdd39739 performance optimizations (reducing allocations) 2017-01-13 01:53:52 +01:00
faiface aa0f7462ec performance optimizations 2017-01-13 01:07:13 +01:00
faiface 906c3248a4 change TrianglesColor.Color return type to NRGBA 2017-01-13 01:07:04 +01:00
faiface c8627e1e93 optimize batch draw (reduce allocations) 2017-01-12 19:30:36 +01:00
faiface 268e1b72f5 add Picture correctness check in Batch.SetPicture 2017-01-12 14:50:28 +01:00
faiface b610760f1c add doc on default vertex properties values 2017-01-12 13:50:06 +01:00
faiface c12e7633a2 implement Batch 2017-01-12 13:47:44 +01:00
faiface bad60ef7fa remove unnecessary and confusing Triangles(Color|Texture)Data 2017-01-12 13:16:33 +01:00
faiface f7fe00fe4d add Copy method to Triangles interface 2017-01-12 11:44:54 +01:00
faiface 6587b54040 minor fix 2017-01-11 23:19:38 +01:00
faiface 71e26e12a6 minor change 2017-01-11 23:18:10 +01:00
faiface 8ec1bdfadf remove TrianglesContainer + add Append to Triangles 2017-01-11 23:17:42 +01:00
faiface b4c035e2ff add TrianglesContainer interface 2017-01-11 13:16:27 +01:00
faiface 0da605c366 simplify NewWindow 2017-01-11 01:05:24 +01:00
faiface 33fb585acc adjust comment 2017-01-11 00:36:54 +01:00
faiface 828f7aa803 avoid possible race condition 2017-01-11 00:35:16 +01:00
faiface b1f415d3ef optimize Window.SetTransform/SetMaskColor 2017-01-11 00:26:33 +01:00
faiface 1f3c875d87 remove ID's from OpenGL objects + replace VertexArray with dynamically sized VertexSlice + add new Sprite 2017-01-10 23:54:35 +01:00
faiface fb3df06337 add common response channel for main thread 2017-01-06 15:00:05 +01:00
faiface 8d2306bcbf fix passing nil color to Window 2017-01-06 02:50:03 +01:00
faiface b86e04704f fix Picture creation optimization 2017-01-06 02:49:23 +01:00
faiface b15253ee83 reorder basic Target adjustment methods 2017-01-05 15:13:59 +01:00
faiface f175b58d1b optimize picture constructor for RGBA images 2017-01-05 15:02:31 +01:00
faiface 5b4cc5f18e remove unnecessary Window.Shader method 2017-01-05 14:58:22 +01:00
faiface 29871f72f1 minor change 2017-01-05 14:50:09 +01:00