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
OpenGL
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
Setting Up Xcode OpenGL Template and Creating Game Loop Class
Introduction: This post will be the first in a series of tutorials that attempts to get an OpenGL based application going for iOS devices initially. The plan is to write as much code as possible in C++ so we can later port over this application for other platforms. The plan is to use only the … Continue reading Setting Up Xcode OpenGL Template and Creating Game Loop Class