source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vrippack-0.31/src/softrender/sl_framebuffer.H @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 1.8 KB
Line 
1/*
2
3Homan Igehy
4
5Computer Graphics Laboratory
6Stanford University
7
8---------------------------------------------------------------------
9
10Copyright (1997) The Board of Trustees of the Leland Stanford Junior
11University. Except for commercial resale, lease, license or other
12commercial transactions, permission is hereby given to use, copy,
13modify this software for academic purposes only.  No part of this
14software or any derivatives thereof may be used in the production of
15computer models for resale or for use in a commercial
16product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND
17CONCERNING 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
32typedef struct FB_SampleZ { Real Z; } FB_SampleZ;
33
34typedef struct FB_SampleZI { Real Z, I; } FB_SampleZI;
35
36typedef struct FB_SampleRGBA { Integer8 R, G, B, A; } FB_SampleRGBA;
37
38typedef struct FB_SampleZRGBA {
39  Real Z;
40  Integer8 R, G, B, A;
41} FB_SampleZRGBA;
42
43typedef struct FB_SampleFloatRGBA { Real R, G, B, A; } FB_SampleFloatRGBA;
44
45typedef struct FB_SampleFloatZRGBA {
46  Real Z;
47  Real R, G, B, A;
48} FB_SampleFloatZRGBA;
49
50typedef struct FB_UnifiedBuffer {
51  FB_SampleZRGBA *sampleZRGBA;
52  Integer16 height, width;
53} FB_UnifiedBuffer;
54
55typedef struct FB_IntensityBuffer {
56  FB_SampleZI *sampleZI;
57  Integer16 height, width;
58} FB_IntensityBuffer;
59
60typedef struct FB_SplitBuffer {
61  FB_SampleZ *sampleZ;
62  FB_SampleRGBA *sampleRGBA;
63  Integer16 height, width;
64} FB_SplitBuffer;
65
66
67typedef struct FB_FloatUnifiedBuffer {
68  FB_SampleFloatZRGBA *sampleFloatZRGBA;
69  Integer16 height, width;
70} FB_FloatUnifiedBuffer;
71
72typedef 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
Note: See TracBrowser for help on using the repository browser.