mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Removed HMD API and OculusVR support.
This commit is contained in:
@@ -842,34 +842,6 @@ namespace bgfx
|
||||
uint16_t num; //!< Number of matrices.
|
||||
};
|
||||
|
||||
/// HMD info.
|
||||
///
|
||||
/// @attention C99 equivalent is `bgfx_hmd_t`.
|
||||
///
|
||||
struct HMD
|
||||
{
|
||||
/// Eye
|
||||
///
|
||||
/// @attention C99 equivalent is `bgfx_hmd_eye_t`.
|
||||
///
|
||||
struct Eye
|
||||
{
|
||||
float rotation[4]; //!< Eye rotation represented as quaternion.
|
||||
float translation[3]; //!< Eye translation.
|
||||
float fov[4]; //!< Field of view (up, down, left, right).
|
||||
float viewOffset[3]; //!< Eye view matrix translation adjustment.
|
||||
float projection[16]; //!< Eye projection matrix.
|
||||
float pixelsPerTanAngle[2]; //!< Number of pixels that fit in tan(angle) = 1.
|
||||
};
|
||||
|
||||
Eye eye[2];
|
||||
uint16_t width; //!< Frame buffer width.
|
||||
uint16_t height; //!< Frame buffer height.
|
||||
uint32_t deviceWidth; //!< Device resolution width.
|
||||
uint32_t deviceHeight; //!< Device resolution height.
|
||||
uint8_t flags; //!< Status flags.
|
||||
};
|
||||
|
||||
///
|
||||
typedef uint16_t ViewId;
|
||||
|
||||
@@ -1887,9 +1859,6 @@ namespace bgfx
|
||||
/// - `BGFX_RESET_VSYNC` - Enable V-Sync.
|
||||
/// - `BGFX_RESET_MAXANISOTROPY` - Turn on/off max anisotropy.
|
||||
/// - `BGFX_RESET_CAPTURE` - Begin screen capture.
|
||||
/// - `BGFX_RESET_HMD` - HMD stereo rendering.
|
||||
/// - `BGFX_RESET_HMD_DEBUG` - HMD stereo rendering debug mode.
|
||||
/// - `BGFX_RESET_HMD_RECENTER` - HMD calibration.
|
||||
/// - `BGFX_RESET_FLUSH_AFTER_RENDER` - Flush rendering after submitting to GPU.
|
||||
/// - `BGFX_RESET_FLIP_AFTER_RENDER` - This flag specifies where flip
|
||||
/// occurs. Default behavior is that flip occurs before rendering new
|
||||
@@ -1949,12 +1918,6 @@ namespace bgfx
|
||||
///
|
||||
const Caps* getCaps();
|
||||
|
||||
/// Returns HMD info.
|
||||
///
|
||||
/// @attention C99 equivalent is `bgfx_get_hmd`.
|
||||
///
|
||||
const HMD* getHMD();
|
||||
|
||||
/// Returns performance counters.
|
||||
///
|
||||
/// @attention Pointer returned is valid until `bgfx::frame` is called.
|
||||
|
||||
@@ -337,30 +337,6 @@ typedef struct bgfx_transform_s
|
||||
|
||||
} bgfx_transform_t;
|
||||
|
||||
/**/
|
||||
typedef struct bgfx_hmd_eye_s
|
||||
{
|
||||
float rotation[4];
|
||||
float translation[3];
|
||||
float fov[4];
|
||||
float viewOffset[3];
|
||||
float projection[16];
|
||||
float pixelsPerTanAngle[2];
|
||||
|
||||
} bgfx_hmd_eye_t;
|
||||
|
||||
/**/
|
||||
typedef struct bgfx_hmd_s
|
||||
{
|
||||
bgfx_hmd_eye_t eye[2];
|
||||
uint16_t width;
|
||||
uint16_t height;
|
||||
uint32_t deviceWidth;
|
||||
uint32_t deviceHeight;
|
||||
uint8_t flags;
|
||||
|
||||
} bgfx_hmd_t;
|
||||
|
||||
/**/
|
||||
typedef uint16_t bgfx_view_id_t;
|
||||
|
||||
@@ -723,9 +699,6 @@ BGFX_C_API bgfx_renderer_type_t bgfx_get_renderer_type(void);
|
||||
/**/
|
||||
BGFX_C_API const bgfx_caps_t* bgfx_get_caps(void);
|
||||
|
||||
/**/
|
||||
BGFX_C_API const bgfx_hmd_t* bgfx_get_hmd(void);
|
||||
|
||||
/**/
|
||||
BGFX_C_API const bgfx_stats_t* bgfx_get_stats(void);
|
||||
|
||||
|
||||
@@ -92,7 +92,6 @@ typedef struct bgfx_interface_vtbl
|
||||
uint32_t (*frame)(bool _capture);
|
||||
bgfx_renderer_type_t (*get_renderer_type)();
|
||||
const bgfx_caps_t* (*get_caps)();
|
||||
const bgfx_hmd_t* (*get_hmd)();
|
||||
const bgfx_stats_t* (*get_stats)();
|
||||
const bgfx_memory_t* (*alloc)(uint32_t _size);
|
||||
const bgfx_memory_t* (*copy)(const void* _data, uint32_t _size);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#ifndef BGFX_DEFINES_H_HEADER_GUARD
|
||||
#define BGFX_DEFINES_H_HEADER_GUARD
|
||||
|
||||
#define BGFX_API_VERSION UINT32_C(75)
|
||||
#define BGFX_API_VERSION UINT32_C(76)
|
||||
|
||||
/// Color RGB/alpha/depth write. When it's not specified write will be disabled.
|
||||
#define BGFX_STATE_WRITE_R UINT64_C(0x0000000000000001) //!< Enable R write.
|
||||
@@ -417,9 +417,6 @@
|
||||
#define BGFX_RESET_VSYNC UINT32_C(0x00000080) //!< Enable V-Sync.
|
||||
#define BGFX_RESET_MAXANISOTROPY UINT32_C(0x00000100) //!< Turn on/off max anisotropy.
|
||||
#define BGFX_RESET_CAPTURE UINT32_C(0x00000200) //!< Begin screen capture.
|
||||
#define BGFX_RESET_HMD UINT32_C(0x00000400) //!< HMD stereo rendering.
|
||||
#define BGFX_RESET_HMD_DEBUG UINT32_C(0x00000800) //!< HMD stereo rendering debug mode.
|
||||
#define BGFX_RESET_HMD_RECENTER UINT32_C(0x00001000) //!< HMD calibration.
|
||||
#define BGFX_RESET_FLUSH_AFTER_RENDER UINT32_C(0x00002000) //!< Flush rendering after submitting to GPU.
|
||||
#define BGFX_RESET_FLIP_AFTER_RENDER UINT32_C(0x00004000) //!< This flag specifies where flip occurs. Default behavior is that flip occurs before rendering new frame. This flag only has effect when `BGFX_CONFIG_MULTITHREADED=0`.
|
||||
#define BGFX_RESET_SRGB_BACKBUFFER UINT32_C(0x00008000) //!< Enable sRGB backbuffer.
|
||||
@@ -440,7 +437,6 @@
|
||||
#define BGFX_CAPS_FRAGMENT_ORDERING UINT64_C(0x0000000000000040) //!< Fragment ordering is available in fragment shader.
|
||||
#define BGFX_CAPS_GRAPHICS_DEBUGGER UINT64_C(0x0000000000000080) //!< Graphics debugger is present.
|
||||
#define BGFX_CAPS_HIDPI UINT64_C(0x0000000000000100) //!< HiDPI rendering is supported.
|
||||
#define BGFX_CAPS_HMD UINT64_C(0x0000000000000200) //!< Head Mounted Display is available.
|
||||
#define BGFX_CAPS_INDEX32 UINT64_C(0x0000000000000400) //!< 32-bit indices are supported.
|
||||
#define BGFX_CAPS_INSTANCING UINT64_C(0x0000000000000800) //!< Instancing is supported.
|
||||
#define BGFX_CAPS_OCCLUSION_QUERY UINT64_C(0x0000000000001000) //!< Occlusion query is supported.
|
||||
@@ -496,11 +492,6 @@
|
||||
#define BGFX_PCI_ID_INTEL UINT16_C(0x8086) //!< Intel adapter.
|
||||
#define BGFX_PCI_ID_NVIDIA UINT16_C(0x10de) //!< nVidia adapter.
|
||||
|
||||
///
|
||||
#define BGFX_HMD_NONE UINT8_C(0x00) //!< None.
|
||||
#define BGFX_HMD_DEVICE_RESOLUTION UINT8_C(0x01) //!< Has HMD native resolution.
|
||||
#define BGFX_HMD_RENDERING UINT8_C(0x02) //!< Rendering to HMD.
|
||||
|
||||
///
|
||||
#define BGFX_CUBE_MAP_POSITIVE_X UINT8_C(0x00) //!< Cubemap +x.
|
||||
#define BGFX_CUBE_MAP_NEGATIVE_X UINT8_C(0x01) //!< Cubemap -x.
|
||||
|
||||
Reference in New Issue
Block a user