[37] | 1 | /* |
---|
| 2 | |
---|
| 3 | Homan Igehy |
---|
| 4 | |
---|
| 5 | Computer Graphics Laboratory |
---|
| 6 | Stanford University |
---|
| 7 | |
---|
| 8 | --------------------------------------------------------------------- |
---|
| 9 | |
---|
| 10 | Copyright (1997) The Board of Trustees of the Leland Stanford Junior |
---|
| 11 | University. Except for commercial resale, lease, license or other |
---|
| 12 | commercial transactions, permission is hereby given to use, copy, |
---|
| 13 | modify this software for academic purposes only. No part of this |
---|
| 14 | software or any derivatives thereof may be used in the production of |
---|
| 15 | computer models for resale or for use in a commercial |
---|
| 16 | product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND |
---|
| 17 | CONCERNING THIS SOFTWARE. No support is implied or provided. |
---|
| 18 | |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | /* |
---|
| 23 | * sl_framebuffer.H |
---|
| 24 | * |
---|
| 25 | */ |
---|
| 26 | |
---|
| 27 | #ifndef SL_FRAMEBUFFER_H |
---|
| 28 | #define SL_FRAMEBUFFER_H |
---|
| 29 | |
---|
| 30 | #include "sl_val.H" |
---|
| 31 | |
---|
| 32 | typedef struct FB_SampleZ { Real Z; } FB_SampleZ; |
---|
| 33 | |
---|
| 34 | typedef struct FB_SampleZI { Real Z, I; } FB_SampleZI; |
---|
| 35 | |
---|
| 36 | typedef struct FB_SampleRGBA { Integer8 R, G, B, A; } FB_SampleRGBA; |
---|
| 37 | |
---|
| 38 | typedef struct FB_SampleZRGBA { |
---|
| 39 | Real Z; |
---|
| 40 | Integer8 R, G, B, A; |
---|
| 41 | } FB_SampleZRGBA; |
---|
| 42 | |
---|
| 43 | typedef struct FB_SampleFloatRGBA { Real R, G, B, A; } FB_SampleFloatRGBA; |
---|
| 44 | |
---|
| 45 | typedef struct FB_SampleFloatZRGBA { |
---|
| 46 | Real Z; |
---|
| 47 | Real R, G, B, A; |
---|
| 48 | } FB_SampleFloatZRGBA; |
---|
| 49 | |
---|
| 50 | typedef struct FB_UnifiedBuffer { |
---|
| 51 | FB_SampleZRGBA *sampleZRGBA; |
---|
| 52 | Integer16 height, width; |
---|
| 53 | } FB_UnifiedBuffer; |
---|
| 54 | |
---|
| 55 | typedef struct FB_IntensityBuffer { |
---|
| 56 | FB_SampleZI *sampleZI; |
---|
| 57 | Integer16 height, width; |
---|
| 58 | } FB_IntensityBuffer; |
---|
| 59 | |
---|
| 60 | typedef struct FB_SplitBuffer { |
---|
| 61 | FB_SampleZ *sampleZ; |
---|
| 62 | FB_SampleRGBA *sampleRGBA; |
---|
| 63 | Integer16 height, width; |
---|
| 64 | } FB_SplitBuffer; |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | typedef struct FB_FloatUnifiedBuffer { |
---|
| 68 | FB_SampleFloatZRGBA *sampleFloatZRGBA; |
---|
| 69 | Integer16 height, width; |
---|
| 70 | } FB_FloatUnifiedBuffer; |
---|
| 71 | |
---|
| 72 | typedef struct FB_FloatSplitBuffer { |
---|
| 73 | FB_SampleZ *sampleZ; |
---|
| 74 | FB_SampleFloatRGBA *sampleFloatRGBA; |
---|
| 75 | Integer16 height, width; |
---|
| 76 | } FB_FloatSplitBuffer; |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | #endif /* SL_FRAMEBUFFER_H */ |
---|
| 80 | |
---|
| 81 | |
---|