glcompat.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*=============================================================================
  2. Name : glcompat.h
  3. Purpose : GL compatibility layer - for fast GL frontends, DrawPixels -> texture, &c
  4. Created 7/14/1999 by khent
  5. Copyright Relic Entertainment, Inc. All rights reserved.
  6. =============================================================================*/
  7. #ifndef _GLCOMPAT_H
  8. #define _GLCOMPAT_H
  9. #include "prim2d.h"
  10. #include "color.h"
  11. extern bool glcLinear;
  12. bool glcStartup(void);
  13. bool glcShutdown(void);
  14. bool glcAllocateScratch(bool allocate);
  15. ubyte* glcGetScratch(sdword* pitch);
  16. ubyte* glcGetScratchMaybeAllocate(sdword* pitch);
  17. void glcDisplayRGBABackground(ubyte* surface);
  18. void glcDisplayRGBABackgroundScaled(ubyte* surface);
  19. void glcDisplayRGBABackgroundLinearScaled(ubyte* surface);
  20. void glcDisplayRGBABackgroundWithoutScaling(ubyte* surface);
  21. void glcMatrixSetup(bool on);
  22. void glcPageFlip(bool scaled);
  23. bool glcActive(void);
  24. bool glcActivate(bool active);
  25. bool glcFullscreen(bool full);
  26. bool glcIsFullscreen(void);
  27. void glcRectSolid2(rectangle* rect, color c);
  28. void glcBeveledRectSolid2(rectangle* rect, color c, sdword xb, sdword yb);
  29. void glcRectTranslucent2(rectangle* rect, color c);
  30. void glcRectShaded2(rectangle* rect, color* c);
  31. void glcRectOutline2(rectangle* rect, sdword thickness, color c);
  32. void glcRectSolidTextured2(rectangle* rect, sdword width, sdword height, ubyte* data, color* palette, bool reverse);
  33. void glcRectSolidTexturedScaled2(rectangle* rect, sdword width, sdword height,
  34. ubyte* data, color* palette, bool reverse);
  35. void glcPoint2(sdword x, sdword y, sdword thickness, color c);
  36. void glcLine2(sdword x0, sdword y0, sdword x1, sdword y1, sdword thickness, color c);
  37. void glcTriSolid2(triangle* tri, color c);
  38. void glcTriOutline2(triangle* tri, sdword thickness, color c);
  39. void glcMouseDraw(void);
  40. void glcCursorUnder(ubyte* data, sdword width, sdword height, sdword x0, sdword y0, bool store);
  41. void glcRenderEverything(void);
  42. void glcRenderEverythingALot(void);
  43. void glcLoadTextures(void);
  44. void glcFreeTextures(void);
  45. #endif