Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
commit
574d831c80
@ -29,12 +29,12 @@ Supported platforms:
|
|||||||
* asm.js/Emscripten (1.25.0)
|
* asm.js/Emscripten (1.25.0)
|
||||||
* FreeBSD
|
* FreeBSD
|
||||||
* iOS (iPhone, iPad, AppleTV)
|
* iOS (iPhone, iPad, AppleTV)
|
||||||
* Linux /statusIcon)
|
* Linux
|
||||||
* MIPS Creator CI20
|
* MIPS Creator CI20
|
||||||
* Native Client (PPAPI 37+, ARM, x86, x64, PNaCl)
|
* Native Client (PPAPI 37+, ARM, x86, x64, PNaCl)
|
||||||
* OSX (10.9+)
|
* OSX (10.9+)
|
||||||
* RaspberryPi
|
* RaspberryPi
|
||||||
* Windows (XP, Vista, 7, 8, 10) /statusIcon)
|
* Windows (XP, Vista, 7, 8, 10)
|
||||||
* WinRT (WinPhone 8.0+)
|
* WinRT (WinPhone 8.0+)
|
||||||
|
|
||||||
Supported compilers:
|
Supported compilers:
|
||||||
@ -51,11 +51,6 @@ Languages:
|
|||||||
* [Go language API bindings](https://github.com/james4k/go-bgfx)
|
* [Go language API bindings](https://github.com/james4k/go-bgfx)
|
||||||
* [Java language API bindings](https://github.com/enleeten/twilight-bgfx)
|
* [Java language API bindings](https://github.com/enleeten/twilight-bgfx)
|
||||||
|
|
||||||
Build status
|
|
||||||
------------
|
|
||||||
|
|
||||||
https://tc27.draster.com/guestAuth/overview.html
|
|
||||||
|
|
||||||
Who is using it?
|
Who is using it?
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@ -1960,7 +1960,7 @@ int _main_(int _argc, char** _argv)
|
|||||||
const float camNear = 0.1f;
|
const float camNear = 0.1f;
|
||||||
const float camFar = 2000.0f;
|
const float camFar = 2000.0f;
|
||||||
const float projHeight = 1.0f/tanf(bx::toRad(camFovy)*0.5f);
|
const float projHeight = 1.0f/tanf(bx::toRad(camFovy)*0.5f);
|
||||||
const float projWidth = projHeight * 1.0f/camAspect;
|
const float projWidth = projHeight * camAspect;
|
||||||
bx::mtxProj(viewState.m_proj, camFovy, camAspect, camNear, camFar);
|
bx::mtxProj(viewState.m_proj, camFovy, camAspect, camNear, camFar);
|
||||||
cameraGetViewMtx(viewState.m_view);
|
cameraGetViewMtx(viewState.m_view);
|
||||||
|
|
||||||
|
@ -1550,9 +1550,10 @@ namespace bgfx
|
|||||||
///
|
///
|
||||||
OcclusionQueryHandle createOcclusionQuery();
|
OcclusionQueryHandle createOcclusionQuery();
|
||||||
|
|
||||||
/// Retrieve occlusion query result.
|
/// Retrieve occlusion query result from previous frame.
|
||||||
///
|
///
|
||||||
/// @param[in] _handle Handle to occlusion query object.
|
/// @param[in] _handle Handle to occlusion query object.
|
||||||
|
/// @returns Occlusion query result.
|
||||||
///
|
///
|
||||||
/// @attention C99 equivalent is `bgfx_get_result`.
|
/// @attention C99 equivalent is `bgfx_get_result`.
|
||||||
///
|
///
|
||||||
|
@ -2732,7 +2732,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||||||
bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible)
|
bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible)
|
||||||
{
|
{
|
||||||
m_occlusionQuery.resolve(_render);
|
m_occlusionQuery.resolve(_render);
|
||||||
return _visible == 0 != _render->m_occlusion[_handle.idx];
|
return _visible == (0 != _render->m_occlusion[_handle.idx]);
|
||||||
}
|
}
|
||||||
|
|
||||||
DXGI_FORMAT getBufferFormat()
|
DXGI_FORMAT getBufferFormat()
|
||||||
|
@ -1568,7 +1568,7 @@ namespace bgfx { namespace d3d9
|
|||||||
bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible)
|
bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible)
|
||||||
{
|
{
|
||||||
m_occlusionQuery.resolve(_render);
|
m_occlusionQuery.resolve(_render);
|
||||||
return _visible == 0 != _render->m_occlusion[_handle.idx];
|
return _visible == (0 != _render->m_occlusion[_handle.idx]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void capturePreReset()
|
void capturePreReset()
|
||||||
|
@ -2715,7 +2715,7 @@ namespace bgfx { namespace gl
|
|||||||
bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible)
|
bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible)
|
||||||
{
|
{
|
||||||
m_occlusionQuery.resolve(_render);
|
m_occlusionQuery.resolve(_render);
|
||||||
return _visible == 0 != _render->m_occlusion[_handle.idx];
|
return _visible == (0 != _render->m_occlusion[_handle.idx]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ovrPostReset()
|
void ovrPostReset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user