Commit Graph

393 Commits

Author SHA1 Message Date
faiface 26c44125cf fix window viewport 2016-12-03 02:02:52 +01:00
faiface c1e2968d2a fix transform anchor 2016-12-03 01:50:14 +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 966bce8c2c fix Camera 2016-12-03 00:54:58 +01:00
faiface ea63453f9f fix and improve code in NewShader 2016-12-03 00:52:23 +01:00
faiface 1fcf42263a reorder VertexArray struct 2016-12-03 00:45:34 +01:00
faiface 63efe9e167 reorder Shader struct 2016-12-02 22:58:20 +01:00
faiface fc7fda188f change Context to a field (instead of embed) in ContextHolder 2016-12-02 22:57:17 +01:00
faiface 888e69899e simplify AttrType.Size 2016-12-02 22:55:58 +01:00
faiface 3fe283ff71 remove obsolete doc 2016-12-02 22:55:12 +01:00
faiface 9112aeb802 remove camera attr purpose 2016-12-02 22:54:09 +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 5f6748f7b8 don't support Int as vertex attribute 2016-12-02 18:21:28 +01:00
faiface 237e2d54cd make window use a shader 2016-12-02 18:17:40 +01:00
faiface f2460b34da add ContextHolder 2016-12-02 18:15:47 +01:00
faiface e009011c37 change vertex format to include names + add vertex format to shader + ID methods 2016-12-02 18:03:51 +01:00
faiface a1913661e7 add Camera function 2016-12-02 17:48:19 +01:00
faiface 21733d0858 add Transform.ScaleXY method 2016-12-02 17:36:36 +01:00
faiface 6a6a7791e1 fix typo 2016-12-02 01:50:31 +01:00
faiface 519c9c1c19 add default shader 2016-12-02 01:20:54 +01:00
faiface 29d5bc7c92 improve doc 2016-12-02 01:02:57 +01:00
faiface 2fa073ce90 add Transform 2016-12-02 00:38:49 +01:00
faiface 7446bec505 change float64 to float32 in colorToRGBA 2016-12-01 17:54:27 +01:00
faiface c192b684d3 fix doc 2016-12-01 17:49:40 +01:00
faiface 73db1b4d5b change all float64 to float32 in pixelgl 2016-12-01 17:48:52 +01:00
faiface 6962ba1bda fix Shader.SetUniform* methods 2016-12-01 16:44:54 +01:00
faiface 51f94b29b0 add NumStandardAttrPurposes 2016-12-01 16:12:51 +01:00
faiface c35dac11af add methods to set uniform values 2016-12-01 16:10:05 +01:00
faiface 029f983440 remove Bool type 2016-12-01 16:09:56 +01:00
faiface b6851f8ff4 replace generatl VertexArray.SetVertexAttribute with specific type methods 2016-12-01 15:53:34 +01:00
faiface 7023d5dfdc add Vec.XY method 2016-12-01 01:01:36 +01:00
faiface 3b70c803c2 change unsafe.Pointer to interface{} in vertex 2016-11-30 17:58:23 +01:00
faiface d53eefbf59 shader uniforms 2016-11-30 17:41:48 +01:00
faiface 96f134d4c4 use new attr 2016-11-29 23:11:53 +01:00
faiface 9d4111282e add context 2016-11-28 23:26:56 +01:00
faiface 6253156e24 better error checking 2016-11-26 22:51:20 +01:00
faiface c6e2d67aba replace UpdateData with more convenient SetVertexAttribute 2016-11-26 22:42:26 +01:00
faiface 4421c7dbef prettier doc 2016-11-26 00:42:47 +01:00
faiface 6889c7f23f fix doc 2016-11-26 00:31:20 +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 c8dba6aaf1 nicer code 2016-11-25 22:56:17 +01:00
faiface 52a3a96d20 replace BeginEnder with Doer and migrate everything 2016-11-25 22:49:56 +01:00
faiface f7c4a6e1ad more idiomatic error reporting 2016-11-25 18:11:38 +01:00
faiface ee9c6a6b6e replace Init and Quit with Run 2016-11-25 17:45:24 +01:00
faiface 0986e0c35e improve error reporting; add GLError type 2016-11-25 17:22:25 +01:00
faiface 5043d06295 change pixelgl, so that it runs on the main thread 2016-11-25 17:12:13 +01:00
faiface 2bc43c7ec4 add VertexArray.Data function 2016-11-24 22:20:31 +01:00