VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/cr_bufpool.h@ 53426

Last change on this file since 53426 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 947 bytes
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_BUFPOOL_H
8#define CR_BUFPOOL_H
9
10#include <iprt/cdefs.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct CRBufferPool_t CRBufferPool;
17typedef void (*CRBufferPoolDeleteCallback)(void *data);
18
19DECLEXPORT(CRBufferPool *) crBufferPoolInit( unsigned int maxBuffers );
20DECLEXPORT(void) crBufferPoolFree( CRBufferPool *pool );
21DECLEXPORT(void) crBufferPoolCallbackFree(CRBufferPool *pool, CRBufferPoolDeleteCallback pfnDelete);
22
23DECLEXPORT(void) crBufferPoolPush( CRBufferPool *pool, void *buf, unsigned int bytes );
24DECLEXPORT(void *) crBufferPoolPop( CRBufferPool *pool, unsigned int bytes );
25
26DECLEXPORT(int) crBufferPoolGetNumBuffers( CRBufferPool *pool );
27DECLEXPORT(int) crBufferPoolGetMaxBuffers( CRBufferPool *pool );
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif /* CR_BUFPOOL_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