Commit Graph

288 Commits

Author SHA1 Message Date
Joey de Vries
ab132220a9 Add (updated) source code for Text Rendering chapter. 2020-04-29 13:51:53 +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
39cdda55e4 Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL 2020-04-29 10:41:42 +02:00
Joey de Vries
88ab67dad2 Add glDeleteProgram call to relevant examples. 2020-04-29 10:41:28 +02:00
Joey de Vries
6d2976e4f9 Merge pull request #166 from FlexW/patch-1
Zero out memory from color variable
2020-04-29 10:36:00 +02:00
Joey de Vries
82b066067f Update Breakout source code to match updates Text Rendering chapter. 2020-04-28 14:46:15 +02:00
Felix Weilbach
c91f8d65a5 Zero out memory from color variable
According to [here](https://www.khronos.org/opengl/wiki/Type_Qualifier_(GLSL)#Fragment_shader_outputs) memory of a fragment shader variable is initialized with undefined values. Therefore it should be zeroed out.
2020-04-27 16:44:24 +02:00
Joey de Vries
be066bcb6e Add Breakout progress code for Audio chapter. 2020-04-27 15:00:23 +02:00
Joey de Vries
75c6d5fa97 Update Breakout progress code for PowerUps chapter. Also few missed items on prev. progress code. 2020-04-27 14:26:24 +02:00
Joey de Vries
596c654c2c Add progress code item for Breakout's PostProcessing chapter. 2020-04-26 12:58:03 +02:00
Joey de Vries
9a34b34b32 Fix include error on 6.game.cpp progress. 2020-04-25 16:58:38 +02:00
Joey de Vries
4b890eca6b Update Breakout code for revised Particles chapter. 2020-04-25 16:57:19 +02:00
Joey de Vries
abbcac5743 Add game progress code for Breakout collision chapters. Add forgotten destructor logic on previous progress files. 2020-04-24 15:51:32 +02:00
Joey de Vries
01def67b0d Add progress ball object code. 2020-04-23 12:30:50 +02:00
Joey de Vries
85af3b93fa Fix awesomeface alpha channel on texture. 2020-04-23 12:30:38 +02:00
Joey de Vries
90163ce702 Forgot to add relevant include. 2020-04-23 12:01:15 +02:00
Joey de Vries
351c968373 Update breakout code to match revised changes 'Levels' chapter. 2020-04-23 12:00:15 +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
1f05d38e1e Breakout changes for revision 'Rendering Sprites' 2020-04-22 19:02:20 +02:00
Joey de Vries
91f53af052 Remove unnecessary 'uncomment' statement from all code samples. 2020-04-22 16:37:07 +02:00
Joey de Vries
e046977ffb Update Breakout code for 'Setting up' chapter. 2020-04-22 16:35:13 +02:00
Joey de Vries
599355fba8 First chapter-specific progress breakout code; test to see if I can link these directly from article. 2020-04-22 16:05:11 +02:00
Joey de Vries
d756ed80fa Add full source code of the finished (and revised code) Breakout example. Not set up for cross-platform compilation as it has irrKlang and FreeType dependency, but at least source code is available online (and can be referenced from Breakout chapters). 2020-04-22 15:47:23 +02:00
Joey de Vries
a8499a2668 Fix infinite loop error w/ unsigned ints used on decrementing for counters. 2020-04-22 12:58:38 +02:00
Joey de Vries
7452f38392 Merge pull request #162 from lnslbrty/master
fixed compiler warnings reported by gcc/clang
2020-03-22 12:43:59 +01: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
3fe2e0ad4a Merge pull request #151 from ReDucTor/patch-1
Fixing spacing in mesh.h
2019-12-23 11:59:10 +01:00
James
ef18a856b8 Fixing spacing in mesh.h
This file doesn't display properly in the code viewer due to a mixture of spaces and tabs
https://learnopengl.com/code_viewer_gh.php?code=includes/learnopengl/mesh.h
2019-12-23 09:14:40 +11:00
Joey de Vries
f1c835bb3f Merge pull request #149 from 01e9/master
Replaced outdated docker/ with script in readme
2019-12-15 15:21:09 +01:00
Oleg Artene
a33c83b680 readme: added "Linux building in Docker" 2019-12-14 22:53:54 +02:00
Oleg Artene
90bbcdb4d0 deleted docker/ 2019-12-14 22:53:33 +02:00
Joey de Vries
2300a20eb0 For Bloom tutorial, make sure second MRT target's BrightColor is assigned a default value (appears to break on some drivers/cards). 2019-01-09 13:03:22 +01:00
Joey de Vries
d4af863bc3 Adjust light values to hit bloom threshold. 2019-01-08 20:56:26 +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
Joey de Vries
239c456ae9 Merge pull request #127 from tim3385/master
LN134: The second parameter internalFormat GL_RGB will not work on Op…
2018-11-24 20:51:28 +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
Joey de Vries
e2d82e2cfb Merge pull request #118 from linesight/master
fix unreferenced local variable warning
2018-09-20 13:37:31 +02:00
linesight
ce0c6dab4e fix unreferenced local variable warning 2018-09-20 01:23:38 -07:00
linesight
b17767ed89 Merge remote-tracking branch 'upstream/master' 2018-09-20 00:43:34 -07:00
linesight
95a8b4dd8c fix unreferenced local variable warning 2018-09-20 00:33:58 -07:00
Joey de Vries
36e1f03d44 Merge pull request #117 from linesight/master
fix unreferenced local variable warning
2018-09-13 09:29:14 +02:00
linesight
437ba8b08d fix unreferenced local variable warning 2018-09-12 22:24:36 -07:00
Joey de Vries
2d6a9b964d Merge branch 'master' of https://github.com/JoeyDeVries/LearnOpenGL 2018-08-23 19:03:10 +02:00
Joey de Vries
d091c7b9c4 Add updated awesomeface.png back to repository. 2018-08-23 19:02:16 +02:00
Joey de Vries
b7836922b0 Merge pull request #116 from arteniioleg/master
Docker configuration minor improvements
2018-08-19 22:55:47 +02:00
Joey de Vries
443f16db60 Update awesomeface.png image to fix white-border artifacts. 2018-06-19 20:51:36 +02:00
arteniioleg
8deb4c45a3 docker: removed x11docker --no-init, not needed anymore 2018-05-05 11:47:19 +03:00
arteniioleg
ba90540eea dockerfile: clean apt 2018-05-04 16:57:49 +03:00
arteniioleg
98aeeece5a Dockerfile: install kmod package 2018-04-27 22:55:37 +03:00
Joey de Vries
cdceb36d25 Merge pull request #108 from arteniioleg/master
fix `dl` link error
2018-04-24 16:32:48 +02:00