//
// MyOpenGLESView.h
// MyOpenGLES
//
// Created by Archer_LJ on 14-5-9.
// Copyright (c) 2014年 Archer_LJ. All rights reserved.
//
#import <UIKit/UIKit.h>
#define MAX_SIZE 1024
@interface MyOpenGLESView : UIView
{
CAEAGLLayer* layer;
}
@property (nonatomic, retain) EAGLContext* context;
@property (nonatomic, assign) GLuint colorRenderBuffer;
@property (nonatomic, assign) GLuint depthRenderBuffer;
@property (nonatomic, assign) GLuint frameBuffer;
@property (nonatomic, assign) int viewWidth;
@property (nonatomic, assign) int viewHeight;
@property (nonatomic, assign) int redSize;
@property (nonatomic, assign) int greenSize;
@property (nonatomic, assign) int blueSize;
@property (nonatomic, assign) int alphaSize;
@property (nonatomic, assign) int depthSize;
@property (nonatomic, assign) int stencilSize;
@property (nonatomic, assign) int samplesSize;
//-(void)CADisplayLinkRender:(CADisplayLink*)displayLink;
-(BOOL)Init;
-(BOOL)Render;
-(void)Finish;
-(void)SwapBuffers;
// True init function
-(BOOL)Initialize:(int)redsize GreenSize:(int)greensize BlueSize:(int)bluesize AlphaSize:(int)alphasize DepthSize:(int)depthsize StencilSize:(int)stencilsize SamplesSize:(int)samplessize;
-(void)SetupLayer;
-(void)SetupContext;
-(void)SetupRenderBuffer;
-(void)SetupDepthBuffer;
-(void)SetupFrameBuffer;
-(void)DestroyBuffers;
-(BOOL)CompileShader:(char*)shadersource shader:(GLuint)shader;
-(BOOL)LoadShaders:(char*)vssource fragsource:(char*)fssource program:(GLuint*)prog;
@end

hoytGM
- 粉丝: 11
最新资源
- 微软面试题及答案很需要开放性思维啊.doc
- 毕业设计基于PLC的小车运动控制系统.doc
- 下一代云计算平台-建设方案.doc
- asp-access网上人才信息管理完整.doc
- 基于BS的日常费用报销管理系统软件工程课程方案.doc
- 设计院主导的总承包模式项目管理分析.docx
- 信息化建设实践与探索.docx
- 大数据背景下商业银行信用卡风险防范策略研究.docx
- linux常用命令.doc
- 项目管理的多维度集成创新模式研究.docx
- 一个中小企业网络规划与研发方案.doc
- 学生请假管理系统需求分析设计方案文档(附待部分核心代码-ssh框架实现).doc
- WEB30时代广告.ppt
- PLC的三自由度机械手控制系统设计方案6.doc
- 阐述大数据环境下科技项目的管理.docx
- 计算机信息安全技术及防护分析.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


