Pro OpenGL ES for iOS
16 CHAPTER 1: Computer Graphics: From Then to Now^ -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, -0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, -0 ...
CHAPTER 1: Computer Graphics: From Then to Now (^17) @implementation TwoCubesViewController @synthesize context = _context; @syn ...
18 CHAPTER 1: Computer Graphics: From Then to Now^ (void)setupGL { [EAGLContext setCurrentContext:self.context]; //7 [self loa ...
CHAPTER 1: Computer Graphics: From Then to Now (^19) So, what is happening here? In lines 1ff (the ff means ‘‘and the lines fo ...
20 CHAPTER 1: Computer Graphics: From Then to Now^ In line 5, we grab the view object of this controller. What makes this diff ...
CHAPTER 1: Computer Graphics: From Then to Now (^21) Depth-testing is another important part of 3D worlds. It is used in line ...
22 CHAPTER 1: Computer Graphics: From Then to Now^ Line 16 ‘‘closes’’ the vertex array object. Now, whenever we want to draw o ...
CHAPTER 1: Computer Graphics: From Then to Now (^23) GLKMatrix4 modelViewMatrix = //6 GLKMatrix4MakeTranslation(0.0f, 0.0f, -1.5 ...
24 CHAPTER 1: Computer Graphics: From Then to Now^ Let’s take a look at what’s going on here: Line 1, the start of the update ...
CHAPTER 1: Computer Graphics: From Then to Now (^25) Line 7 applies a rotation to each axis of the cube’s world. The rotation ...
26 CHAPTER 1: Computer Graphics: From Then to Now^ The only other section is that which handles the loading and using of the sha ...
CHAPTER 1: Computer Graphics: From Then to Now (^27) What About the Shaders? Here is not the place to get into a detailed breakd ...
28 CHAPTER 1: Computer Graphics: From Then to Now^ Figure 1-11a,b. Changing the vertical scaling in the vertex shader on the lef ...
CHAPTER 1: Computer Graphics: From Then to Now (^29) Finally, we are done with the very first example. Yes, for the 3D newcomers ...
30 CHAPTER 1: Computer Graphics: From Then to Now^ The first step is to take the data that describes some geometry along with ...
CHAPTER 1: Computer Graphics: From Then to Now (^31) Now to compare things, Figure 1-13 shows the pipeline for OpenGL ES 2. Some ...
32 CHAPTER 1: Computer Graphics: From Then to Now^ Figure 1-14. Upper left, the actual teapot used by Newell, currently on displ ...
Chapter 2 All That Math Jazz No book on 3D programming would be complete without at least one chapter on the m a t h e m a t i c ...
34 CHAPTER 2: All That Math Jazz^ 2D Transformations Without knowing it, you probably have used 2D transformations already in th ...
CHAPTER 2: All That Math Jazz (^35) Figure 2-2. Rotating around the common origin Naturally things get more complicated while we ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf