Stereo.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #ifndef SE_INCL_GFXSTEREO_H
  13. #define SE_INCL_GFXSTEREO_H
  14. #ifdef PRAGMA_ONCE
  15. #pragma once
  16. #endif
  17. //
  18. // stereo rendering support
  19. //
  20. // note: left and right are in succession, to be able to make 'for' loops
  21. // if stereo is disabled, 'left' has same effect as 'both' to all functions
  22. #define STEREO_LEFT 0
  23. #define STEREO_RIGHT 1
  24. #define STEREO_BOTH 2
  25. // query whether user has turned stereo rendering on
  26. ENGINE_API BOOL Stereo_IsEnabled(void);
  27. // set buffer for stereo rendering left/right/both
  28. ENGINE_API void Stereo_SetBuffer(INDEX iEye);
  29. // adjust perspective projection for stereo rendering left/right/both
  30. ENGINE_API void Stereo_AdjustProjection(CProjection3D &pr, INDEX iEye, FLOAT fFactor);
  31. #endif /* include-once check. */