//
// EAGLView.h
#import <UIKit/UIKit.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import <CoreLocation/CoreLocation.h>
#import<CoreMotion/CoreMotion.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/*
This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass.
The view content is basically an EAGL surface you render your OpenGL scene into.
Note that setting the view non-opaque will only work if the EAGL surface has an alpha channel.
*/
#define kFilteringFactor 0.1
@interface EAGLView : UIView<CLLocationManagerDelegate,UIAccelerometerDelegate> {
@private
/* The pixel dimensions of the backbuffer */
GLint backingWidth;
GLint backingHeight;
EAGLContext *context;
/* OpenGL names for the renderbuffer and framebuffers used to render to this view */
GLuint viewRenderbuffer, viewFramebuffer;
/* OpenGL name for the depth buffer that is attached to viewFramebuffer, if it exists (0 if it does not exist) */
GLuint depthRenderbuffer;
NSTimer *animationTimer;
NSTimeInterval animationInterval;
GLuint textures[10];
GLfloat rota;
GLfloat startHeading;
GLfloat curHeading;
GLfloat phoneAngle;
GLfloat curPhoneAngle;
GLfloat phoneAngle_X;
GLfloat curPhoneAngle_X;
GLfloat phoneAngle_R;
GLfloat curPhoneAngle_R;
BOOL isFirst;
BOOL isFirstAngle;
BOOL isIphone4;
CLLocationManager *gps;
UIAccelerationValue rollingX, rollingY, rollingZ;
CMMotionManager *motionManager;
//CMAttitude *refrenceAttitude;
}
@property NSTimeInterval animationInterval;
- (void)startAnimation;
- (void)stopAnimation;
- (void)drawView;
- (void)setupView;
- (void)checkGLError:(BOOL)visibleCheck;
- (void)loadTexture;
- (void)startGPS;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
iPhone 3D 报表Demo源码,3D报表可以通过随着手机的转动一起转动(请在3GS和iPhone4上运行)。3GS通过加速器感应手机姿态,iPhone4通过陀螺仪感应。程序效果和代码讲解请见:http://blog.sina.com.cn/s/blog_4cdc44df0100thbn.html
资源推荐
资源详情
资源评论
收起资源包目录
iPhone 3D 报表Demo源码(OpenGL ES) (214个子文件)
3DChart 161KB
3DChart 81KB
3DChart 79KB
3DChart 42KB
3DChart 32KB
3DChart 31KB
AppleCoder-OpenGLES-00 158KB
AppleCoder-OpenGLES-00 81KB
AppleCoder-OpenGLES-00 79KB
AppleCoder-OpenGLES-00 79KB
AppleCoder-OpenGLES-00 78KB
AppleCoder-OpenGLES-00 42KB
AppleCoder-OpenGLES-00 36KB
AppleCoder-OpenGLES-00 32KB
AppleCoder-OpenGLES-00 31KB
AppleCoder-OpenGLES-00 27KB
CodeResources 980B
CodeResources 904B
CodeResources 904B
CodeResources 757B
CodeResources 28B
CodeResources 28B
CodeResources 28B
CodeResources 28B
control 256KB
control 256KB
build-state.dat 96KB
build-state~.dat 93KB
build-state.dat 74KB
build-state~.dat 71KB
build-state.dat 63KB
build-state~.dat 48KB
build-state.dat 47KB
build-state~.dat 42KB
build-state.dat 42KB
build-state~.dat 42KB
build-state.dat 40KB
build-state~.dat 35KB
build-state.dat 27KB
build-state~.dat 27KB
build-state.dat 1KB
3DChart.dep 13KB
AppleCoder-OpenGLES-00.dep 10KB
AppleCoder-OpenGLES-00~.dep 10KB
AppleCoder-OpenGLES-00.dep 6KB
AppleCoder-OpenGLES-00~.dep 6KB
3DChart.dep 6KB
3DChart.dep 6KB
3DChart~.dep 6KB
AppleCoder-OpenGLES-00.dep 5KB
3DChart.dep 5KB
3DChart~.dep 4KB
3DChart~.dep 4KB
AppleCoder-OpenGLES-00.dep 3KB
AppleCoder-OpenGLES-00~.dep 3KB
AppleCoder-OpenGLES-00~.dep 3KB
AppleCoder-OpenGLES-00.dep 1KB
.DS_Store 6KB
.DS_Store 6KB
EAGLView.h 2KB
ChartAppDelegate.h 361B
pbxindex.header 24B
pbxindex.header 24B
AppleCoder-OpenGLES-00.hmap 2KB
AppleCoder-OpenGLES-00.hmap 2KB
AppleCoder-OpenGLES-00.hmap 2KB
3DChart.hmap 2KB
AppleCoder-OpenGLES-00.hmap 2KB
3DChart.hmap 2KB
3DChart.hmap 2KB
AppleCoder-OpenGLES-00-project-headers.hmap 954B
AppleCoder-OpenGLES-00-project-headers.hmap 954B
AppleCoder-OpenGLES-00-project-headers.hmap 950B
AppleCoder-OpenGLES-00-project-headers.hmap 950B
3DChart-project-headers.hmap 950B
3DChart-project-headers.hmap 950B
3DChart-project-headers.hmap 870B
AppleCoder-OpenGLES-00-all-target-headers.hmap 793B
AppleCoder-OpenGLES-00-own-target-headers.hmap 793B
AppleCoder-OpenGLES-00-own-target-headers.hmap 793B
3DChart-all-target-headers.hmap 793B
AppleCoder-OpenGLES-00-all-target-headers.hmap 793B
3DChart-own-target-headers.hmap 793B
AppleCoder-OpenGLES-00-own-target-headers.hmap 793B
AppleCoder-OpenGLES-00-all-target-headers.hmap 793B
AppleCoder-OpenGLES-00-all-target-headers.hmap 793B
3DChart-all-target-headers.hmap 793B
AppleCoder-OpenGLES-00-own-target-headers.hmap 793B
3DChart-own-target-headers.hmap 793B
3DChart-all-target-headers.hmap 793B
3DChart-own-target-headers.hmap 793B
AppleCoder-OpenGLES-00-generated-files.hmap 121B
AppleCoder-OpenGLES-00-generated-files.hmap 121B
3DChart-generated-files.hmap 121B
AppleCoder-OpenGLES-00-generated-files.hmap 121B
3DChart-generated-files.hmap 121B
AppleCoder-OpenGLES-00-generated-files.hmap 121B
3DChart-generated-files.hmap 121B
icon@2x.ico 59KB
icon@2x.ico 59KB
共 214 条
- 1
- 2
- 3
ggydggyd
- 粉丝: 2
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 代码预测代码预测代码预测
- 毕业设计基于 YOLOv8 和 LPRNet 的车牌识别系统python源码+模型.zip
- 计组多周期实验报告加源码
- vue-基于Vue+Echarts实现的数据可视化平台.zip
- 太原理工大学离散结构期末复习考点勾画
- 基于matlab实现LMS与RLS算法的自适应均衡程序,包括加性高斯信道、瑞利平坦信道、频率选择性衰落信道 .rar
- 基于matlab实现LMS自适应信道均衡程序以及学习曲线绘制,程序为matlab代码 .rar
- 基于C++qt 停车场管理系统源码+sql文件.zip
- 基于matlab实现OFDM信道估计和均衡的仿真程序,包括MMSE、LS、ZF等方法 .rar
- 基于matlab实现菜品推荐 主成分分析处理稀疏矩阵后,采用协同过滤算法进行推荐.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页