The previous chapter was all about setting up our project to use different types of libraries, such as GLFW, GLEW, SMFL, and SDL. In this chapter, we'll go beyond the setup part and learn to implement some really cool OpenGL stuff. We'll learn about shaders and how to use them to create various shapes. Then, we'll move on to learn how to create a separate shader file and reference that in our code. We'll also discuss how to apply different textures to shapes using the SOIL library.
In this chapter, we'll cover the following topics in detail:
- Learning to draw a triangle using a shader
- Creating a separate shader file and referencing it in the main code
- Drawing a rectangle and applying textures to it using the SOIL library
This chapter will initiate you into OpenGL coding and you'll learn a lot of concepts related...