RSS

(root)/iphone/common : /source/gfx.h (revision 96)

To get this branch, use:
bzr branch /browse/iphone/common
Line Revision Contents
1 66
//
2
//  gfx.h
3
//  TestTools
4
//
5
//  Created by döme on 10.14.08.
6
//  Copyright 2008 Doemoetoer Gulyas. All rights reserved.
7
//
8
9
#import <Foundation/Foundation.h>
10
#import <OpenGLES/ES2/gl.h>
11
12
#define NSPrettyLog(...) NSLog(@"%s: %@", __PRETTY_FUNCTION__, [NSString stringWithFormat: __VA_ARGS__])
13
#define LogGLError(x) _LogGLError([NSString stringWithFormat: @"%s: %@", __PRETTY_FUNCTION__, x]);
14
void	_LogGLError(NSString* str);
15
16
17
@interface GLResourceDisposal : NSObject
18
{
19
	NSRecursiveLock* 	lock;
20
	GLuint*			vbos;
21
	GLuint*			textures;
22
	GLuint*			fbos;
23
	GLuint*			rbos;
24
//	GLhandle*	programs;
25
	size_t		numVbos, numFbos, numRbos, numTextures, numPrograms;
26
}
27
28
+ (void) disposeOfResourcesWithTypes: (size_t) rsrc, ...;
29
+ (void) performDisposal;
30
31
@end
32

Loggerhead 1.17 is a web-based interface for Bazaar branches