1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved.
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef CR_PIXELDATA_H
|
---|
8 | #define CR_PIXELDATA_H
|
---|
9 |
|
---|
10 | #include "chromium.h"
|
---|
11 | #include "state/cr_client.h"
|
---|
12 |
|
---|
13 | #include <iprt/cdefs.h>
|
---|
14 | #include <stdarg.h>
|
---|
15 |
|
---|
16 | #ifdef __cplusplus
|
---|
17 | extern "C" {
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | DECLEXPORT(int) crPixelSize( GLenum format, GLenum type );
|
---|
21 |
|
---|
22 | DECLEXPORT(unsigned int) crImageSize( GLenum format, GLenum type,
|
---|
23 | GLsizei width, GLsizei height );
|
---|
24 |
|
---|
25 | DECLEXPORT(unsigned int) crTextureSize( GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth );
|
---|
26 |
|
---|
27 | DECLEXPORT(void) crPixelCopy1D( GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
|
---|
28 | const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
|
---|
29 | GLsizei width, const CRPixelPackState *srcPacking );
|
---|
30 |
|
---|
31 | DECLEXPORT(void) crPixelCopy2D( GLsizei width, GLsizei height,
|
---|
32 | GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
|
---|
33 | const CRPixelPackState *dstPacking,
|
---|
34 | const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
|
---|
35 | const CRPixelPackState *srcPacking );
|
---|
36 |
|
---|
37 | DECLEXPORT(void) crPixelCopy3D( GLsizei width, GLsizei height, GLsizei depth,
|
---|
38 | GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
|
---|
39 | const CRPixelPackState *dstPacking, const GLvoid *srcPtr,
|
---|
40 | GLenum srcFormat, GLenum srcType,
|
---|
41 | const CRPixelPackState *srcPacking );
|
---|
42 |
|
---|
43 | DECLEXPORT(void) crBitmapCopy( GLsizei width, GLsizei height, GLubyte *dstPtr,
|
---|
44 | const GLubyte *srcPtr, const CRPixelPackState *srcPacking );
|
---|
45 |
|
---|
46 | DECLEXPORT(void) crDumpNamedTGA(const char *fname, GLint w, GLint h, GLvoid *data);
|
---|
47 | DECLEXPORT(void) crDumpNamedTGAV(GLint w, GLint h, GLvoid *data, const char* fname, va_list va);
|
---|
48 | DECLEXPORT(void) crDumpNamedTGAF(GLint w, GLint h, GLvoid *data, const char* fname, ...);
|
---|
49 | DECLEXPORT(void) crDumpTGA(GLint w, GLint h, GLvoid *data);
|
---|
50 | #ifdef __cplusplus
|
---|
51 | }
|
---|
52 | #endif
|
---|
53 |
|
---|
54 | #endif /* CR_PIXELDATA_H */
|
---|