//
// 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
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
OpenGLES demo - 4. GL中的三角形.zip (20个子文件)
OpenGLES demo - 4. GL中的三角形
.DS_Store 6KB
MyOpenGLES
main.m 338B
MyOpenGLESView.m 9KB
AppDelegate.h 368B
MyOpenGLES-Info.plist 1KB
AppDelegate.m 2KB
Images.xcassets
AppIcon.appiconset
Contents.json 333B
LaunchImage.launchimage
Contents.json 442B
en.lproj
InfoPlist.strings 45B
MyOpenGLES-Prefix.pch 344B
MyOpenGLESView.h 1KB
MyOpenGLESTests
MyOpenGLESTests.m 646B
MyOpenGLESTests-Info.plist 686B
en.lproj
InfoPlist.strings 45B
MyOpenGLES.xcodeproj
project.xcworkspace
contents.xcworkspacedata 155B
xcuserdata
Archer.xcuserdatad
UserInterfaceState.xcuserstate 14KB
project.pbxproj 20KB
xcuserdata
Archer.xcuserdatad
xcschemes
xcschememanagement.plist 572B
MyOpenGLES.xcscheme 4KB
xcdebugger
Breakpoints_v2.xcbkptlist 91B
共 20 条
- 1
资源评论
hoytGM
- 粉丝: 11
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功