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