Commit Graph

917 Commits

Author SHA1 Message Date
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
faiface 07dde4c8b4 basic window control functions 2016-11-24 22:06:51 +01:00
faiface a1325c8a83 remove pixegl.Do from monitor stuff (unnecessary) 2016-11-24 22:01:37 +01:00
faiface f6db65f213 fullscreen support + several window handling functions 2016-11-24 17:24:38 +01:00
faiface 106471a126 use Monitor as pointer (*Monitor) 2016-11-24 17:21:35 +01:00
faiface 40d2c42046 add monitor 2016-11-24 17:19:43 +01:00
faiface 3b589b96bc improve window doc + improve window mutex handling 2016-11-24 16:16:00 +01:00
faiface ea2ed1bcd5 doc fix 2016-11-24 16:06:33 +01:00
faiface 5e909b3f88 use Color from image/color 2016-11-24 15:13:05 +01:00
faiface 58e2d01435 clarify doc 2016-11-24 14:46:12 +01:00
faiface ecce5fdcc9 some blank lines 2016-11-24 14:37:11 +01:00
faiface 53222d1cef spartan window doc 2016-11-24 14:27:43 +01:00
faiface 08af9e4010 add orphan function Clear 2016-11-24 14:24:17 +01:00
faiface c6c3e020a4 implement non-blocking call queue calls 2016-11-24 14:10:33 +01:00
faiface d4e242a59b fix window switching 2016-11-24 00:43:00 +01:00
faiface 3b929ad5c3 clarity doc 2016-11-23 23:33:40 +01:00
faiface 62bc194ee4 another small fix 2016-11-23 23:31:45 +01:00
faiface 4480f61a0a fixes 2016-11-23 23:25:45 +01:00
faiface eb316e5126 add window creation 2016-11-23 23:12:23 +01:00
faiface 325832977b add Init function 2016-11-23 22:27:30 +01:00
faiface b81eba039b remove unecessary comment 2016-11-23 22:06:08 +01:00
faiface 29aa4aa32f small fix 2016-11-23 21:49:56 +01:00
faiface 832425c6cc add resource delete methods 2016-11-23 20:06:34 +01:00
faiface e52ee3ba9a encapsulate error handling
add functions DoGLErr, DoErrGLErr and DoValGLErr to handle OpenGL errors
2016-11-23 18:50:49 +01:00
faiface 2bf58a8f5b rename GetLastError -> getLastError 2016-11-23 18:23:05 +01:00
faiface c5c93d9442 add error handling 2016-11-23 18:06:55 +01:00
faiface ff30a4d2b2 add texture 2016-11-23 17:29:28 +01:00