VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/cr_pixeldata.h@ 69474

Last change on this file since 69474 was 69474, checked in by vboxsync, 7 years ago

*: scm updates - header files should have 'svn:keywords=Id Revision' too (doesn't mean they have to use them).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.9 KB
Line 
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
17extern "C" {
18#endif
19
20DECLEXPORT(int) crPixelSize( GLenum format, GLenum type );
21
22DECLEXPORT(unsigned int) crImageSize( GLenum format, GLenum type,
23 GLsizei width, GLsizei height );
24
25DECLEXPORT(unsigned int) crTextureSize( GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth );
26
27DECLEXPORT(void) crPixelCopy1D( GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
28 const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
29 GLsizei width, const CRPixelPackState *srcPacking );
30
31DECLEXPORT(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
37DECLEXPORT(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
43DECLEXPORT(void) crBitmapCopy( GLsizei width, GLsizei height, GLubyte *dstPtr,
44 const GLubyte *srcPtr, const CRPixelPackState *srcPacking );
45
46DECLEXPORT(void) crDumpNamedTGA(const char *fname, GLint w, GLint h, GLvoid *data);
47DECLEXPORT(void) crDumpNamedTGAV(GLint w, GLint h, GLvoid *data, const char* fname, va_list va);
48DECLEXPORT(void) crDumpNamedTGAF(GLint w, GLint h, GLvoid *data, const char* fname, ...);
49DECLEXPORT(void) crDumpTGA(GLint w, GLint h, GLvoid *data);
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* CR_PIXELDATA_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette