In this post we will look at loading a texture and applying to the quad that we created in the previous post. The steps involved in this are: Load the texture as an image. Set up OpenGL to use our texture. Modify the Shader for Texture Mapping. Bind the Texture to GPU. Drawing the Quad … Continue reading Texturing the quad
iOS
Create and Draw Our First quad
In this series we now have: set up our development environment for OpenGL and created our basic game loop class written a simple shader for drawing a colored quad Complied and Linked the Shader with the program. Next we will create a quad by defining its vertices in the screen space and proceed to draw … Continue reading Create and Draw Our First quad
Compile and Link Shaders
In our previous post we wrote the shaders that will be required to display our first quad using OpenGL on our iOS device. Our next step would be to compile and link the shaders so they are ready to be used within our program. In order to use our shaders we need a handle to the shader and … Continue reading Compile and Link Shaders
Writing Simple Shader to Display Colored Quad
This post continues where the "Setting Up Xcode OpenGL Template and Creating Game Loop Class" in the series left off Before we begin to display our quad on the device we need to write a vertex shader and fragment shader. For this post we will begin by writing a simple vertex shader that accepts the … Continue reading Writing Simple Shader to Display Colored Quad