Commit Graph

33 Commits

Author SHA1 Message Date
Jelle Vos
c85067d4fe Update textures.cpp
On line 109 glGenerateMipmap is getting called but the GL_TEXTURE_MIN_FILTER uses GL_LINEAR. Changed it to GL_LINEAR_MIPMAP_LINEAR
2021-08-28 19:04:33 +02:00
Joey de Vries
95ed602bd6 Also update hello triangle example. 2021-01-20 16:28:47 +01:00
Joey de Vries
ac661d85f3 Use unsigned ints for shader ids. 2021-01-20 16:22:44 +01:00
Joey de Vries
b963e2a4c9 Fix several texture/shader exercises to use updated code viewer. 2020-06-02 17:19:49 +02:00
Joey de Vries
e7d809b317 Readjust camera's FOV zoom code. 2020-05-17 17:06:07 +02:00
Joey de Vries
ef0dcfd5ab add folder number. 2020-05-12 15:17:14 +02:00
Joey de Vries
59c4aafb60 Add camera exercise solutions to repo. 2020-05-12 15:15:57 +02:00
Joey de Vries
d67c29e9d8 Add exercise3 of coordiante systems chapter to repo. 2020-05-08 22:03:53 +02:00
Joey de Vries
9a582d850c Add exercise1 to repo so it works on gh code viewer. 2020-05-08 21:35:59 +02:00
Joey de Vries
6d1136d09a Update debugging example code to match Debugging chapter updates. 2020-04-29 11:57:45 +02:00
Joey de Vries
88ab67dad2 Add glDeleteProgram call to relevant examples. 2020-04-29 10:41:28 +02:00
Joey de Vries
37892e5370 Missed a few code files for removing the unnecesasry OS X compile comment. 2020-04-23 11:59:53 +02:00
Joey de Vries
91f53af052 Remove unnecessary 'uncomment' statement from all code samples. 2020-04-22 16:37:07 +02:00
Toni Uhlig
dcdf94fce7 fixed compiler warnings reported by gcc/clang
* changed some catch blocks to use exception references instead of value types
 * fixed missing use of SCR_WIDTH/SCR_HEIGHT for glfwCreateWindow
 * fixed implicit numeric type casts regarding signedness
 * removed unused variables

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2020-03-18 18:34:17 +01:00
Joey de Vries
f4b6763356 Update GLM to latest version (0.9.9.3). This includes GLM's change of matrices no longer default initializing to the identity matrix. This commit thus also includes the update of all of LearnOpenGL's code to reflect this: all matrices are now constructor-initialized to the identity matrix where relevant. 2018-12-30 14:27:14 +01:00
houstond
d07b463cfc LN134: The second parameter internalFormat GL_RGB will not work on OpenGL es. GL_RGB should be GL_RGBA. 2018-11-24 12:03:07 +08:00
dotlive
8fef6cdd3e fix shader file’s variable name dismatched with source file’s. 2017-10-19 07:30:33 +08:00
Joey de Vries
c6b404915d Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL 2017-07-24 20:08:58 +02:00
Joey de Vries
b379c0fe74 Additional statements to clarify usage of FileSystem namespace in Textures tutorial. 2017-07-24 20:08:53 +02:00
Shivpratap Chauhan
2d16ef0fe2 GLFW hint GLFW_OPENGL_FORWARD_COMPAT is must on osx to create glfw
window successfully
2017-07-12 17:06:00 +05:30
Joey de Vries
103b4f6358 Coordinate system code fix. 2017-07-10 08:36:52 +02:00
Matthew Taylor
120c8c8c11 Fix OSX errors and warnings 2017-06-18 00:39:07 +01:00
Joey de Vries
320db41e89 Code re-work and content update: lighting. 2017-05-30 19:23:56 +02:00
Joey de Vries
18e5fdb443 Code/content re-work: getting started. 2017-05-29 23:47:28 +02:00
Joey de Vries
79e22d716e Content/code update: coordinate systems. 2017-05-29 22:43:07 +02:00
Joey de Vries
28eb2bbf62 Updated code changes to reflect content updates. 2017-05-29 21:04:33 +02:00
Joey de Vries
5846428705 Getting started content code-rework updates. 2017-05-29 20:36:10 +02:00
Joey de Vries
701f4fe608 Fix build errors w/ long path name. 2017-05-26 15:07:44 +02:00
Giuseppe Barbieri
f4001a9def Update shaders_class.cpp
typo
2017-04-24 19:27:16 +02:00
Joey de Vries
edbc854ab2 Complete code re-work 'Getting Started' tutorials. 2017-04-06 21:05:54 +02:00
J. de Vries
f313234c9a Fix viewport display for high-DPI devices. 2016-04-30 11:38:05 +02:00
Marin Nilsson
a8a8d11f22 Support for out-of-source builds.
Uses environment variable to tell the program where to find resource
files.
Sharder sources are still search for in the current workind directory.
2015-07-30 21:48:41 +02:00
Joey de Vries
f28ad1e256 Initial commit, all code samples with working CMake script for VS/Windows. 2015-03-23 15:42:04 +01:00