-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathD2PTextureDescriptor.h
More file actions
42 lines (33 loc) · 1.08 KB
/
D2PTextureDescriptor.h
File metadata and controls
42 lines (33 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// D2PTextureDescriptor.h
// D2Patch
//
// Created by Andrey on 23/02/2017.
//
#import <Foundation/Foundation.h>
#import <OpenGL/gl.h>
#import "D2PTextureHash.h"
@interface D2PTextureDescriptor : NSObject
{
GLsizei _width;
GLsizei _height;
GLenum _format;
GLenum _type;
const GLvoid *_pixels;
D2PTextureHash *_textureHash;
}
@property (nonatomic, readonly) GLsizei width;
@property (nonatomic, readonly) GLsizei height;
@property (nonatomic, readonly) GLenum format;
@property (nonatomic, readonly) GLenum type;
@property (nonatomic, readonly) const GLvoid *pixels;
@property (nonatomic, readonly) NSUInteger bytesPerPixel;
@property (nonatomic, readonly) NSUInteger area;
@property (nonatomic, readonly) NSUInteger size;
@property (nonatomic, readonly) D2PTextureHash *textureHash;
- (instancetype) initWithData:(const GLvoid *)pixels
width:(GLsizei)width
height:(GLsizei)height
format:(GLenum)format
type:(GLenum)type;
@end