VirtualBox

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

最後變更 在這個檔案從66940是 46369,由 vboxsync 提交於 12 年 前

crOpenGL: burn fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.9 KB
 
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 */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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