Commit Graph

15 Commits

Author SHA1 Message Date
Recep Aslantas
1eadb38462 resize helper for perspective
* when window resized we only change aspect ratio, so projection still
keeps same
2016-12-08 22:06:52 +02:00
Recep Aslantas
ec6c9ae497 improve cam impl 2016-10-30 23:08:44 +02:00
Recep Aslantas
5621fa1ab7 fix ortho
nearVal, farVal
Specify the distances to the nearer and farther depth clipping planes.
****These values are negative if the plane is to be behind the
viewer.***

https://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
2016-10-20 02:39:24 +03:00
Recep Aslantas
bdcea86ac6 move types to individual header
* include cglm-common to all headers
2016-10-13 23:44:02 +03:00
Recep Aslantas
3ffca7a733 use native types instead GL* 2016-10-09 18:08:59 +03:00
Recep Aslantas
2ebdfaeeaf helper ortho proj 2016-10-09 18:06:52 +03:00
Recep Aslantas
a6f96de292 move platform specific functions to platform header 2016-10-09 17:57:55 +03:00
Recep Aslantas
1f12adbfae default ortho projection 2016-10-09 17:48:50 +03:00
Recep Aslantas
4da42276f5 msvc compatibility 2016-10-09 14:38:53 +03:00
Recep Aslantas
751391c8ff fix ortho 2016-10-09 14:08:08 +03:00
Recep Aslantas
bc8cede3d8 helper: default perspective 2016-10-08 16:37:56 +03:00
Recep Aslantas
5a28f2ec60 frustum, ortho and perspective functions 2016-09-17 19:04:53 +03:00
Recep Aslantas
f7e7bffe11 drop _self postfix from normalize 2016-09-13 00:47:07 +03:00
Recep Aslantas
18a12763d0 fix fn call 2016-09-13 00:05:55 +03:00
Recep Aslantas
6635fdd7c1 lookat 2016-09-11 23:11:24 +03:00