//
// ShaderManager.h
// TwoLivesLeft.com
//
// Created by Simeon Nasilowski on 29/05/11.
// Copyright 2011 Two Lives Left. All rights reserved.
//
// Permission is given to use this source code file without charge in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that any redistribution (in part or whole) of source code must retain
// this copyright and permission notice. Attribution in compiled projects is
// appreciated but not required.
//
#import <Foundation/Foundation.h>
#import "Shader.h"
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
@interface ShaderManager : NSObject
{
NSMutableDictionary *shaderPrograms;
GLuint activeProgram;
Shader *currentShader;
}
+ (ShaderManager*) sharedManager;
- (NSArray*) allShaders;
- (Shader*) currentShader;
- (Shader*) useShader:(NSString*)name;
- (Shader*) shaderForName:(NSString*)name;
- (Shader*) createShader:(NSString*)name withSettings:(NSDictionary*)settings;
- (Shader*) createShader:(NSString*)name withFile:(NSString*)file;
- (void) useShaderObject:(Shader*)shader;
- (void) removeShader:(NSString*)name;
- (void) removeAllShaders;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——TwoLivesLeft-ShaderManager-8801e12.zip
共22个文件
m:6个
h:5个
xib:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 170 浏览量
2023-07-05
23:24:39
上传
评论
收藏 25KB ZIP 举报
温馨提示
iOS游戏应用源代码——TwoLivesLeft-ShaderManager-8801e12.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——TwoLivesLeft-ShaderManager-8801e12.zip (22个子文件)
TwoLivesLeft-ShaderManager-8801e12
README.markdown 2KB
TestShader.plist 449B
Shader.m 5KB
Shader.h 1016B
ShaderManager.h 1KB
.gitignore 166B
ShaderManager.m 3KB
ShaderManagerDemo
ShaderManagerDemo.xcodeproj
project.pbxproj 17KB
ShaderManagerDemo
Shaders
Shader.vsh 360B
Shader.fsh 226B
EAGLView.h 983B
ShaderManagerDemo-Prefix.pch 340B
ShaderManagerDemoAppDelegate.m 2KB
ShaderManagerDemoViewController.m 6KB
main.m 363B
ShaderManagerDemoAppDelegate.h 469B
ShaderManagerDemoViewController.h 714B
EAGLView.m 4KB
ShaderManagerDemo-Info.plist 1KB
en.lproj
InfoPlist.strings 45B
MainWindow.xib 10KB
ShaderManagerDemoViewController.xib 6KB
共 22 条
- 1
资源评论
快乐无限出发
- 粉丝: 1135
- 资源: 7274
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功