blob: f8b5408538e5442f473e4a707b218d904dfd58f4 (
plain)
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
|
#ifndef INTERFACEGRAPHIC_RawBufferData_H
#define INTERFACEGRAPHIC_RawBufferData_H
#include <Standard.hxx>
// Most items are from GLenum, but values not equal!
typedef enum
{
TRGB,
TBGR,
TRGBA,
TBGRA,
TDepthComponent,
TRed,
TGreen,
TBlue,
TAlpha,
} TRawBufferDataFormat;
typedef enum
{
TUByte,
TFloat,
} TRawBufferDataType;
struct TRawBufferData
{
Standard_Integer widthPx;
Standard_Integer heightPx;
Standard_Integer rowAligmentBytes;
TRawBufferDataFormat format;
TRawBufferDataType type;
Standard_Address dataPtr;
};
#endif /* INTERFACEGRAPHIC_RawBufferData_H */
|