mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-20 11:54:07 +03:00
Graphic3d_StereoMode - add new enumeration for stereoscopic outputs: - Graphic3d_StereoMode_QuadBuffer - Graphic3d_StereoMode_Anaglyph - Graphic3d_StereoMode_RowInterlaced - Graphic3d_StereoMode_ColumnInterlaced - Graphic3d_StereoMode_ChessBoard - Graphic3d_StereoMode_SideBySide - Graphic3d_StereoMode_OverUnder Graphic3d_RenderingParams - add new options controlling stereo output: - StereoMode - ToReverseStereo - AnaglyphFilter OpenGl_ShaderManager - add predefined GLSL programs for new stereo outputs. OpenGl_Workspace::Redraw() - do not implicitly disable stereo to allow stereo dump as is. OpenGl_Caps - add flag swapInterval to control VSync. OpenGl_Workspace::BufferDump() - handle cases with non-applicable GL_PACK_ROW_LENGTH. CALL_DEF_WINDOW - drop unused fields; add fields "left" and "top" to reverse stereo pair for interlaced output depending on window position. Draw Harness, ViewerTest: - Extend syntax of command vstereo to setup stereo. - Extend vdump command to allow dump of stereoscopic pair in different formats. - Extend command vcaps with option vsync. - Use mouse scroll to zoom and adjust ZFocus in WinAPI. - Use "/" and "*" to adjust IOD. v3d/glsl/stereo - add test case for stereo modes. Cocoa_LocalPool, OSD_EnvironmentIterator - fix compilation issues on OS X Snow Leopard.
34 lines
1.6 KiB
C++
34 lines
1.6 KiB
C++
// Created on: 2015-06-05
|
|
// Created by: Kirill Gavrilov
|
|
// Copyright (c) 2015 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _Graphic3d_StereoMode_HeaderFile
|
|
#define _Graphic3d_StereoMode_HeaderFile
|
|
|
|
//! This enumeration defines the list of stereoscopic output modes.
|
|
enum Graphic3d_StereoMode
|
|
{
|
|
Graphic3d_StereoMode_QuadBuffer, //!< OpenGL QuadBuffer
|
|
Graphic3d_StereoMode_Anaglyph, //!< Anaglyph glasses, the type should be specified in addition
|
|
Graphic3d_StereoMode_RowInterlaced, //!< Row-interlaced stereo
|
|
Graphic3d_StereoMode_ColumnInterlaced, //!< Column-interlaced stereo
|
|
Graphic3d_StereoMode_ChessBoard, //!< chess-board stereo for DLP TVs
|
|
Graphic3d_StereoMode_SideBySide, //!< horizontal pair
|
|
Graphic3d_StereoMode_OverUnder, //!< vertical pair
|
|
Graphic3d_StereoMode_SoftPageFlip, //!< software PageFlip for shutter glasses, should NOT be used!
|
|
Graphic3d_StereoMode_NB //!< the number of modes
|
|
};
|
|
|
|
#endif // _Graphic3d_StereoMode_HeaderFile
|