GLKTextureInfo create OpenGL texture information
- name: OpenGL texture context name
- target: target texture bound
- height: loading height texture
- width: Width of the loaded textures
- textureOrigin: Load the texture of the origin position
- alphaState: loading state texture alpha component
- containsMipmaps: Boolean value that contains loads of texture mip map
GLTextureLoader simplified load textures from a variety of resource file
- initialization
- initWithSharegroup: initialize a new texture loaded into an object
- initWithShareContext: initialize ⼀ a new texture processing load objects
- Load texture from a file
+ TextureWithContentsOfFile: options: errer: and create a new texture from the data loaded from the file 2D texture image
- textureWithContentsOfFile: options: queue: completionHandler: 2D texture image is loaded from a file asynchronously, and in accordance with data to create new textures
- Load textures from URL
- textureWithContentsOfURL: options: error: load image from URL and 2D texture create a new texture from data
- textureWithContentsOfURL: options: queue: completionHandler: URL loaded asynchronously from a 2D texture image and create a new texture from the data.
- It means creating a texture from memory
+ TextureWithContentsOfData: options: errer: Create a new texture from the texture memory space to load 2D image, and according to the data
- textureWithContentsOfData: options: queue: completionHandler: Create a new texture from data memory space asynchronous loading 2D texture image, and from
- Create a texture from CGImages
- textureWithCGImage: options: error: load images from the Quartz 2D texture processing and image processing to create a new texture from data
- textureWithCGImage: options: queue: completionHandler: Quartz 2D texture image processing asynchronous loading images and create a new texture processing according to data from.
- Create a multi-dimensional texture loaded from URL
+ CabeMapWithContentsOfURL: options: errer: load cube map texture image from a single URL, based on the data and create a new texture
- cabeMapWithContentsOfURL: options: queue: completionHandler: load cube map texture image from a single asynchronous URL, and create a new texture based on the data
- Load files from multidimensional data file created textures
+ CubeMapWithContentsOfFile: options: errer: cube map texture object loaded from a single file, and create a new texture from data
- cubeMapWithContentsOfFile: options: queue: completionHandler: Create a new texture from data from a single file is loaded asynchronously cube map texture object, and
+ CubeMapWithContentsOfFiles: options: errer: load cube map texture from a series of image files, and create a new texture from the total data
- cubeMapWithContentsOfFiles: options: options: queue: completionHandler: Create a new texture from data from a series of files loaded asynchronously cube map texture image, and
GLKView using OpenGL ES rendering view the contents of the default implementation
- Initialization view
- initWithFrame: context: initialize a new view
- proxy
delegate views of proxy: - glkView: drawInRect: Drawing view contents (must implement agency)
- Configuration frame buffer objects
drawableColorFormat color rendering buffer format
drawableDepthFormat render depth buffer format
drawableStencilFormat template rendering format buffer zone
DrawableMultisample multiple format sample buffer zone
- Frame buffer properties
Height drawableHeight underlying object cache (in pixels)
Width drawableWidth underlying object cache (in pixels)
- Drawing view contents
context: use when drawing down-view content files OpenGL ES
- bindDrawable: Binding to the object underlying FrameBuffer OpenGL ES
enableSetNeedsDisplay: Boolean value specifying whether the view so that the view of the contents of the response message Invalid
- display: Immediately redraw the content view
snapshot: Drawing view the content and returns it as a new image object
- bindDrawable: Binding to the object underlying FrameBuffer OpenGL ES
enableSetNeedsDisplay: Boolean value specifying whether the view so that the view of the contents of the response message Invalid
- display: Immediately redraw the content view
snapshot: Drawing view the content and returns it as a new image object
- Delete View bufferFrame objects
- deleteDrawable delete the view associated with drawable
GLKViewController OpenGL ES rendering cycle management View Controller
- Update
- (void) update update view contents
- (void) glkViewControllerUpdate:
- Configuration frame rate
preferredFramesPerSecond: View Controller calling view and update the contents of the view rate
framesPerSencond: View Controller calling view and update the content of the actual rate
- Proxy Configuration GLKViewController
Agent delegate view controller
Update Event processing: - glkViewControllerUpdate: Use tone before displaying each frame
Pause / Resume notification: - glkViewController: willPause: Using tune with before rendering cycle pause or resume.
- Update control frame
paused boolean rendering loop has been suspended
pausedOnWillResignActive Boolean value, the current view controller is automatically suspended rendering loop when the program re-stimulated active
View render loop control whether to automatically resume when resumeOnDidBecomeActive Boolean value, the current program becomes active
- View information about updating information
frameDisplayed view controller update since its inception the number of frames sent
The amount of time since the incident to send updates of timeSinceFirstResume view controller for the first time since the restoration
TimeSinceLastResume the amount of time since the last update event view controller to resume sending updates
timeSinceLastUpdate view controller since the last adjustment, and Use by an amount of time elapsed delegate method glkViewControllerUpdate.:
The amount of time that has elapsed since timeSinceLastDraw view display method since the last call to the view controller.
GLKBaseEffect ⼀ a simple light / discolored with color system, based on the discolored Using an OpenGL rendering shader
- Named Effect
label to Effect (effect) named
- Configuration model view conversion
Applied to the vertex data when the binding effect model view transform, projection transform, and texture
- Configuration lighting effects
Use strategy for calculating lightingType light still pictures of each segment slightly, GLKLightingType
GLKLightingType
GLKLightingTypePerVertex denotes each vertex lighting calculations performed in the triangle, then the triangle interpolation
GLKLightingTypePerPixel represents lighting calculations inserted in the input triangle, and each segment is calculated in the implementation of light
- Configuration of light
lightModelTwoSided: Boolean value indicating the calculated illumination on both sides of the primitive
material: calculated material properties rendering the primitive using light
lightModelAmbientColor: ambient color, all drawing application effect of rendering yuan.
light0: a first scene illumination property
light1: second scene illumination properties
light2: third scene illumination properties
- Configuration texture
texture2d0: The first texture attributes
texture2d1: second texture properties
textureOrder: textures to primitives rendering order
- Configuration atomization
fog mist properties is applied to the scene
- Color configuration information
colorMaterialEnable: Boolean value that indicates whether the color calculation of vertex attributes light interacting with the material
useConstantColor: Boolean value that indicates whether the use of constant color
constantColor: using a constant color is not provided for each vertex color data
- Ready to draw results
- prepareToDraw ready to render effects