40 Commits

Author SHA1 Message Date
Josh Holtrop
a278d1843f store matrices in column-major mode 2011-05-10 23:38:26 -04:00
Josh Holtrop
64b76bd085 convert angles to radians 2011-05-10 23:10:42 -04:00
Josh Holtrop
513599d855 split transform into modelview/projection 2011-05-10 23:02:32 -04:00
Josh Holtrop
5adc26b089 set transform shader matrix 2011-05-10 22:54:04 -04:00
Josh Holtrop
b6a5821fae change guAttribBinding ptrs to const 2011-05-10 12:13:12 -04:00
Josh Holtrop
335c926876 use char instead of GLchar 2011-05-10 12:09:05 -04:00
Josh Holtrop
ae9a83cca5 remove color vertex attribute 2011-05-09 19:37:19 -04:00
Josh Holtrop
921ea83b01 add guMakeProgram{,FromSource,FromFiles}() 2011-05-09 17:48:19 -04:00
Josh Holtrop
6ad367812b add guMakeBuffer() 2011-05-09 17:33:45 -04:00
Josh Holtrop
c51606772f build with -Wall and -DGL_GLEXT_PROTOTYPES 2011-05-09 17:31:42 -04:00
Josh Holtrop
9e6003a0d2 use stdio i/o functions 2011-05-09 17:31:02 -04:00
Josh Holtrop
956f249d54 add guMakeShaderFromFile() and guMakeShader() 2011-05-09 17:28:33 -04:00
Josh Holtrop
01f9c2e467 add guGetShaderLog() and guGetProgramLog() 2011-05-09 17:22:41 -04:00
Josh Holtrop
cf31a302f2 add guOrtho() 2011-05-09 17:11:07 -04:00
Josh Holtrop
e06395ff5d slight optimization 2011-05-09 17:07:06 -04:00
Josh Holtrop
e05c62725c add guPerspective() 2011-05-09 17:05:23 -04:00
Josh Holtrop
2d7bafe23b add guMatrixRotate() 2011-05-09 16:56:19 -04:00
Josh Holtrop
fe93dffab0 use GLfloat instead of float 2011-05-09 16:45:50 -04:00
Josh Holtrop
9ad00aee7f add guMatrixScale() 2011-05-09 16:45:07 -04:00
Josh Holtrop
e76503001e add Makefile, SConstruct, fix compiler errors 2011-05-09 16:38:31 -04:00
Josh Holtrop
26bc6781cb add guMatrixFrustum() 2011-05-09 16:32:51 -04:00
Josh Holtrop
514a1c6d09 update function prefix, fill out translate 2011-05-09 16:21:28 -04:00
Josh Holtrop
c1c42f3558 add initial glslUtil files 2011-05-08 21:58:12 -04:00
Josh Holtrop
fecc8a0e44 corrected phong lighting shader 2011-05-06 09:19:24 -04:00
Josh Holtrop
8bd56f42aa first lighting attempt; specular not working 2011-05-01 08:34:13 -04:00
Josh Holtrop
4e40f6af5c cp template -> lighting 2011-04-30 19:47:55 -04:00
Josh Holtrop
57f984c92a switch to perspective projection 2011-04-30 11:42:23 -04:00
Josh Holtrop
097feecbb7 fix near and far value in glOrtho() 2011-04-30 11:25:17 -04:00
Josh Holtrop
4a7a97236b actually using the program we made is helpful 2011-04-30 09:54:04 -04:00
Josh Holtrop
d3c509e966 explicitly bind generic attribute locations 2011-04-30 09:49:23 -04:00
Josh Holtrop
1371328c8b use projection matrix as well 2011-04-30 09:49:08 -04:00
Josh Holtrop
2f57ba687c specify vertex attributes and draw triangles 2011-04-30 09:32:38 -04:00
Josh Holtrop
1434828ad9 implement basic color shader 2011-04-30 09:32:14 -04:00
Josh Holtrop
d76fb43a3c add makeBuffer() and triangle data 2011-04-30 09:08:58 -04:00
Josh Holtrop
9a0ffa8cbe kinda forgot the point of loadFile() 2011-04-29 17:24:01 -04:00
Josh Holtrop
c6e51524e9 create and link program, add getProgramLog() 2011-04-28 19:44:04 -04:00
Josh Holtrop
5a1fed9a41 load and compile shaders 2011-04-28 18:47:06 -04:00
Josh Holtrop
ba2c1d9c60 set up modelview matrix, bigger window 2011-04-28 17:52:07 -04:00
Josh Holtrop
13cb39e79e retabbed 2011-04-27 22:30:03 -04:00
Josh Holtrop
e32f283aad add initial GLSL template 2011-04-27 22:25:02 -04:00