~ubuntu-branches/ubuntu/wily/oolite/wily-proposed

« back to all changes in this revision

Viewing changes to tests/textureGeneratorTestRig/OOTextureGenerator.h

  • Committer: Package Import Robot
  • Author(s): Nicolas Boulenguez
  • Date: 2011-12-22 00:22:39 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20111222002239-pr3upeupp4jw1psp
Tags: 1.76-1
* New upstream.
* watch: scan upstream stable releases instead of dev snapshots.
* control: use default gobjc instead of explicit 4.6.
* rules: use dpkg-dev build flags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
typedef struct
 
2
{
 
3
        float                   r, g, b;
 
4
} FloatRGB;
 
5
 
 
6
 
 
7
typedef struct
 
8
{
 
9
        float                   r, g, b, a;
 
10
} FloatRGBA;
 
11
 
 
12
 
 
13
@interface OOTextureGenerator: NSObject
 
14
{
 
15
@protected
 
16
        void                                    *data;
 
17
        uint32_t                                width, height, rowBytes;
 
18
        
 
19
        OOTextureDataFormat             format;
 
20
        
 
21
@private
 
22
        BOOL                                    _ready;
 
23
}
 
24
 
 
25
 
 
26
- (BOOL) isReady;
 
27
- (BOOL) enqueue;
 
28
 
 
29
- (BOOL) getResult:(void **)outData
 
30
                        format:(OOTextureDataFormat *)outFormat
 
31
                         width:(uint32_t *)outWidth
 
32
                        height:(uint32_t *)outHeight;
 
33
 
 
34
// For subclass
 
35
- (void) loadTexture;
 
36
 
 
37
// For client
 
38
- (void) render;
 
39
 
 
40
- (void) dumpToRGBFile:(NSString *)rgbName andAlphaFile:(NSString *)alphaName;
 
41
 
 
42
@end