Rev | Line | |
---|
[3598] | 1 | /* $Id: internal.c,v 1.2 2000-05-23 20:40:38 jeroen Exp $ */
|
---|
[2962] | 2 | /*****************************************************************************/
|
---|
| 3 | /* */
|
---|
| 4 | /* OpenGL - Internal functions for GLIDE support */
|
---|
| 5 | /* */
|
---|
| 6 | /*****************************************************************************/
|
---|
| 7 |
|
---|
[3598] | 8 | #include <windows.h>
|
---|
[2962] | 9 | #include "types.h"
|
---|
| 10 | #include "wmesadef.h"
|
---|
| 11 | #include "internal.h"
|
---|
| 12 |
|
---|
| 13 | extern PWMC Current;
|
---|
| 14 |
|
---|
| 15 | void * _System _InternalOGLQueryBB(void)
|
---|
| 16 | {
|
---|
[3598] | 17 | #ifdef DIVE
|
---|
[2962] | 18 | /* Return ptr to the current backbuffer */
|
---|
| 19 | if(Current)
|
---|
| 20 | return Current->pbPixels;
|
---|
[3598] | 21 | #endif
|
---|
[2962] | 22 |
|
---|
| 23 | return 0;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | void * _System _InternalOGLQueryFB(void)
|
---|
| 27 | {
|
---|
| 28 | /* Return ptr to the current frontbuffer */
|
---|
[3598] | 29 | #ifdef DIVE
|
---|
[2962] | 30 | if(Current)
|
---|
| 31 | if(Current->ppFrameBuffer)
|
---|
| 32 | return Current->ppFrameBuffer;
|
---|
| 33 | else
|
---|
| 34 | return Current->pbPixels;
|
---|
[3598] | 35 | #endif
|
---|
[2962] | 36 |
|
---|
| 37 | return 0;
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.