qnvyxw

所属分类:进程与线程
开发工具:C/C++
文件大小:63KB
下载次数:0
上传日期:2018-07-08 13:49:58
上 传 者fnowps
说明:  一个关于OpenGL,2D图形设计的示例程序,可以直接用X-code开发工具和Iphone模拟器运行,

文件列表:
67Icon.png (4944, 2008-06-24)
Info.plist (726, 2008-06-30)
lClasses (0, 2017-12-24)
lClasses\AppController.h (2792, 2008-06-26)
lClasses\AppController.m (9461, 2008-06-26)
lClasses\PaintingView.h (2959, 2008-06-26)
lClasses\PaintingView.m (9753, 2008-06-26)
lClasses\SoundEffect.h (2693, 2008-06-26)
lClasses\SoundEffect.m (4020, 2008-06-26)
main.m (2613, 2008-06-26)
OpenGLSupport (0, 2017-12-24)
OpenGLSupport\EAGLView.h (4376, 2008-06-26)
OpenGLSupport\EAGLView.m (8155, 2008-06-26)
Particle.png (2176, 2008-06-24)
Prefix.pch (81, 2008-06-24)
Recording.data (3204, 2008-06-24)
Select.caf (5420, 2008-06-24)
VImages (0, 2017-12-24)
VImages\Blue.png (1180, 2008-06-24)
VImages\Green.png (1159, 2008-06-24)
VImages\Purple.png (1128, 2008-06-24)
VImages\Red.png (1136, 2008-06-24)
VImages\Yellow.png (1150, 2008-06-24)
W69Erase.caf (33056, 2008-06-24)
w72GLPaint.xcodeproj (0, 2017-12-24)
w72GLPaint.xcodeproj\project.pbxproj (17939, 2008-06-24)
YDefault.png (2159, 2008-06-24)

### GLPaint ### ================================================================================ DESCRIPTION: The GLPaint sample application demonstrates how to support single-finger painting using OpenGL ES. This sample also shows how to detect a "shake" motion of the device using the UIAccelerometer class. By looking at the code you'll see how to set up an OpenGL ES view and use it for rendering painting strokes. The application creates a brush texture from an image by first drawing the image into a Core Graphics bitmap context. It then uses the bitmap data for the texture. The image used for a texture must have dimensions that are a power of 2. To use this sample, open it in Xcode and click Build and Go. After the application paints "Shake Me", shake the device to erase the words. Touch a color to choose it. Paint by dragging a finger. NOTE: If you run the device in the simulator, you won't be able to erase. You will, however, be able to paint. ================================================================================ BUILD REQUIREMENTS: Mac OS X v10.5.3, Xcode 3.1, iPhone OS 2.0 ================================================================================ RUNTIME REQUIREMENTS: Mac OS X v10.5.3, iPhone OS 2.0 ================================================================================ PACKAGING LIST: AppController.h AppController.m UIApplication's delegate class i.e. the central controller of the application. PaintingView.h PaintingView.m The class responsible for the finger painting. SoundEffect.h SoundEffect.m A simple Objective-C wrapper around Audio Services functions that allow the loading and playing of sound files. EAGLView.h EAGLView.m Convenience class that wraps the CAEAGLLayer from CoreAnimation into a UIView subclass. main.m The main entry point for the GLPaint application. Recording.data Contains the path used to display "Shake Me" after the application launches. Particle.png The texture used for the paint brush. ================================================================================ CHANGES FROM PREVIOUS VERSIONS: Version 1.6 Updated for and tested with iPhone OS 2.0. First public release. Version 1.5 Minor changes to the comments. There are no code changes in this version. Version 1.4 Updated for Beta 6. Updated code to use revised EAGL API. Removed TouchView and Texture2D classes. Replaced the views used to choose brush color with a segmented control. Replace the Texture2D class with code that creates a texture using a Core Graphic bitmap graphics context. Speeded up the "Shake Me" instructions that appear at the start of the application. Revised touch handling to use the begin, moved, end, and cancelled methods instead of touchesChanged:withEvent; Version 1.3 Updated for Beta 4. Changed project setting related to code signing. Replaced pixel buffer objects with framebuffer objects. Version 1.2 Added an icon and a default.png file. Version 1.1 Updated for Beta 2. ================================================================================ Copyright (C) 2008 Apple Inc. All rights reserved.

近期下载者

相关文件


收藏者