Commit Graph

57 Commits

Author SHA1 Message Date
faiface ca9b2716a8 add state-of-the-art canvas and use it within window 2017-01-22 02:43:13 +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 2a5fddabd8 add orphan pixelgl functions 2017-01-16 01:12:03 +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 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 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 8d2306bcbf fix passing nil color to Window 2017-01-06 02:50:03 +01:00
faiface 5b4cc5f18e remove unnecessary Window.Shader method 2017-01-05 14:58:22 +01:00
faiface 5baac913c8 redundant code reduction 2017-01-05 01:08:45 +01:00
faiface 4541fe2c8b introduce new Target/Triangles/Drawer abstraction (very cool!) 2017-01-05 00:19:45 +01:00
faiface cafda2cfae backup before reinstall 2017-01-01 22:12:12 +01:00
faiface 9096277914 normalized most of lines to <=100 chars 2016-12-30 17:43:26 +01:00
faiface fefa184652 add own NRGBA color format 2016-12-23 20:25:47 +01:00
faiface 9a7a73b94e add input handling methods (keyboard, mouse) 2016-12-21 20:18:38 +01:00
faiface 303c66d2b9 remove destructors, instead SetFinalizer 2016-12-18 20:16:27 +01:00
faiface 12a6bd1e25 add default uniform values in default window shader 2016-12-17 12:57:48 +01:00
faiface 947cb02f8c add Window.DefaultShader 2016-12-17 12:37:28 +01:00
faiface 1c8297b7ab fix shader creation in window 2016-12-16 20:46:24 +01:00
faiface ddfede847e remove unnecessary window.Do from window methods 2016-12-16 20:27:40 +01:00
faiface 2aaab88e07 adoprt universal AttrFormat 2016-12-16 00:28:52 +01:00
faiface 6e139459cc add default unexported attribute types 2016-12-14 17:53:08 +01:00
faiface db2d6be751 change internal default shader to use -1,-1 texCoords as no texture 2016-12-09 20:13:32 +01:00
faiface c87527aa5d add indices to vertex array 2016-12-08 15:25:00 +01:00
faiface 6268c52e77 nicer code 2016-12-06 18:04:55 +01:00
faiface fc96ec3a06 add MaskColor uniform 2016-12-03 15:48:40 +01:00
faiface a3e7656922 remove orphan functions from pixelgl (use OpenGL directly instead) 2016-12-03 15:38:33 +01:00
faiface 26c44125cf fix window viewport 2016-12-03 02:02:52 +01:00
faiface 63c9ab68e2 fix window context holder 2016-12-03 01:45:47 +01:00
faiface 2af64d4204 improve code in NewWindow 2016-12-03 01:02:01 +01:00
faiface defb4b3778 fix 2016-12-02 19:29:39 +01:00
faiface 9546652cc3 remove int support from vertex format 2016-12-02 18:55:52 +01:00
faiface 237e2d54cd make window use a shader 2016-12-02 18:17:40 +01:00
faiface 519c9c1c19 add default shader 2016-12-02 01:20:54 +01:00
faiface 9d4111282e add context 2016-11-28 23:26:56 +01:00
faiface 2f7af40ce6 handle error from glfw.Init 2016-11-25 23:26:27 +01:00
faiface 0fe2df4620 move GLFW init from Run to NewWindow 2016-11-25 23:12:01 +01:00
faiface 52a3a96d20 replace BeginEnder with Doer and migrate everything 2016-11-25 22:49:56 +01:00
faiface 07dde4c8b4 basic window control functions 2016-11-24 22:06:51 +01:00