mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-02 20:36:50 -05:00
Moved public header files into bgfx subdirectory.
This commit is contained in:
parent
d885f32a50
commit
2bbfe7e5d3
43 changed files with 43 additions and 43 deletions
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/uint32_t.h>
|
#include <bx/uint32_t.h>
|
||||||
#include "logo.h"
|
#include "logo.h"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
// embedded shaders
|
// embedded shaders
|
||||||
#include "vs_metaballs.bin.h"
|
#include "vs_metaballs.bin.h"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include <bx/string.h>
|
#include <bx/string.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "bgfx_utils.h"
|
#include "bgfx_utils.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "bgfx_utils.h"
|
#include "bgfx_utils.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
|
|
|
@ -19,7 +19,7 @@ using namespace std::tr1;
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "bgfx_utils.h"
|
#include "bgfx_utils.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
#include <bx/allocator.h>
|
#include <bx/allocator.h>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "bgfx_utils.h"
|
#include "bgfx_utils.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/uint32_t.h>
|
#include <bx/uint32_t.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/string.h>
|
#include <bx/string.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
#include "entry/entry.h"
|
#include "entry/entry.h"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#ifndef __VECTORDISPLAY_H__
|
#ifndef __VECTORDISPLAY_H__
|
||||||
#define __VECTORDISPLAY_H__
|
#define __VECTORDISPLAY_H__
|
||||||
|
|
||||||
#include "bgfx.h"
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
#include <tinystl/allocator.h>
|
#include <tinystl/allocator.h>
|
||||||
#include <tinystl/vector.h>
|
#include <tinystl/vector.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "bgfx_utils.h"
|
#include "bgfx_utils.h"
|
||||||
#include "imgui/imgui.h"
|
#include "imgui/imgui.h"
|
||||||
#include "camera.h"
|
#include "camera.h"
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
struct u_paramsDataStruct
|
struct u_paramsDataStruct
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bgfx.c99.h>
|
#include <bgfx/c99/bgfx.h>
|
||||||
#include "../00-helloworld/logo.h"
|
#include "../00-helloworld/logo.h"
|
||||||
|
|
||||||
extern bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset);
|
extern bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <tinystl/string.h>
|
#include <tinystl/string.h>
|
||||||
namespace stl = tinystl;
|
namespace stl = tinystl;
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
#include <bx/string.h>
|
#include <bx/string.h>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#ifndef BGFX_UTILS_H_HEADER_GUARD
|
#ifndef BGFX_UTILS_H_HEADER_GUARD
|
||||||
#define BGFX_UTILS_H_HEADER_GUARD
|
#define BGFX_UTILS_H_HEADER_GUARD
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
void* load(const char* _filePath, uint32_t* _size = NULL);
|
void* load(const char* _filePath, uint32_t* _size = NULL);
|
||||||
void unload(void* _ptr);
|
void unload(void* _ptr);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
#include <limits.h> // INT_MAX
|
#include <limits.h> // INT_MAX
|
||||||
#include <memory.h> // memset
|
#include <memory.h> // memset
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
/// algorithm based on C++ sources provided by Jukka Jylänki at:
|
/// algorithm based on C++ sources provided by Jukka Jylänki at:
|
||||||
/// http://clb.demon.fi/files/RectangleBinPack/
|
/// http://clb.demon.fi/files/RectangleBinPack/
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
struct AtlasRegion
|
struct AtlasRegion
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/string.h>
|
#include <bx/string.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_ANDROID
|
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#define GLFW_DLL
|
#define GLFW_DLL
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
#include "dbg.h"
|
#include "dbg.h"
|
||||||
|
|
||||||
// This is just trivial implementation of GLFW3 integration.
|
// This is just trivial implementation of GLFW3 integration.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
//# define HAS_METAL_SDK
|
//# define HAS_METAL_SDK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#include <bx/uint32_t.h>
|
#include <bx/uint32_t.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_NACL
|
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_NACL
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
#include <ppapi/c/ppp_instance.h>
|
#include <ppapi/c/ppp_instance.h>
|
||||||
#include <ppapi/gles2/gl2ext_ppapi.h>
|
#include <ppapi/gles2/gl2ext_ppapi.h>
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
||||||
#include "entry.h"
|
#include "entry.h"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#include <bx/uint32_t.h>
|
#include <bx/uint32_t.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include <SDL2/SDL_syswm.h>
|
#include <SDL2/SDL_syswm.h>
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_WINDOWS
|
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_WINDOWS
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#include <bx/uint32_t.h>
|
#include <bx/uint32_t.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#if BX_PLATFORM_WINRT
|
#if BX_PLATFORM_WINRT
|
||||||
|
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
||||||
using namespace Windows::ApplicationModel;
|
using namespace Windows::ApplicationModel;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#define XK_LATIN1
|
#define XK_LATIN1
|
||||||
#include <X11/keysymdef.h>
|
#include <X11/keysymdef.h>
|
||||||
#include <X11/Xlib.h> // will include X11 which #defines None... Don't mess with order of includes.
|
#include <X11/Xlib.h> // will include X11 which #defines None... Don't mess with order of includes.
|
||||||
#include <bgfxplatform.h>
|
#include <bgfx/bgfxplatform.h>
|
||||||
|
|
||||||
#undef None
|
#undef None
|
||||||
#include <bx/thread.h>
|
#include <bx/thread.h>
|
||||||
|
|
|
@ -25,7 +25,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||||
|
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if USE_EDTAA3
|
#if USE_EDTAA3
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#define FONT_MANAGER_H_HEADER_GUARD
|
#define FONT_MANAGER_H_HEADER_GUARD
|
||||||
|
|
||||||
#include <bx/handlealloc.h>
|
#include <bx/handlealloc.h>
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
class Atlas;
|
class Atlas;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <stddef.h> // offsetof
|
#include <stddef.h> // offsetof
|
||||||
#include <memory.h> // memcpy
|
#include <memory.h> // memcpy
|
||||||
#include <wchar.h> // wcslen
|
#include <wchar.h> // wcslen
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef IMGUI_H_HEADER_GUARD
|
#ifndef IMGUI_H_HEADER_GUARD
|
||||||
#define IMGUI_H_HEADER_GUARD
|
#define IMGUI_H_HEADER_GUARD
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <ocornut-imgui/imgui.h>
|
#include <ocornut-imgui/imgui.h>
|
||||||
|
|
||||||
#define IMGUI_MBUT_LEFT 0x01
|
#define IMGUI_MBUT_LEFT 0x01
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/allocator.h>
|
#include <bx/allocator.h>
|
||||||
#include <bx/fpumath.h>
|
#include <bx/fpumath.h>
|
||||||
#include <bx/timer.h>
|
#include <bx/timer.h>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "nanovg.h"
|
#include "nanovg.h"
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
|
|
||||||
#include <bx/bx.h>
|
#include <bx/bx.h>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include <stdint.h> // uint32_t
|
#include <stdint.h> // uint32_t
|
||||||
#include <stdlib.h> // size_t
|
#include <stdlib.h> // size_t
|
||||||
|
|
||||||
#include "bgfxdefines.h"
|
#include <bgfx/bgfxdefines.h>
|
||||||
|
|
||||||
///
|
///
|
||||||
#define BGFX_HANDLE(_name) \
|
#define BGFX_HANDLE(_name) \
|
|
@ -13,7 +13,7 @@
|
||||||
#include <stdint.h> // uint32_t
|
#include <stdint.h> // uint32_t
|
||||||
#include <stdlib.h> // size_t
|
#include <stdlib.h> // size_t
|
||||||
|
|
||||||
#include "bgfxdefines.h"
|
#include <bgfx/bgfxdefines.h>
|
||||||
|
|
||||||
typedef enum bgfx_renderer_type
|
typedef enum bgfx_renderer_type
|
||||||
{
|
{
|
|
@ -3217,8 +3217,8 @@ again:
|
||||||
}
|
}
|
||||||
} // namespace bgfx
|
} // namespace bgfx
|
||||||
|
|
||||||
#include <bgfx.c99.h>
|
#include <bgfx/c99/bgfx.h>
|
||||||
#include <bgfxplatform.c99.h>
|
#include <bgfx/c99/bgfxplatform.h>
|
||||||
|
|
||||||
BX_STATIC_ASSERT(bgfx::Fatal::Count == bgfx::Fatal::Enum(BGFX_FATAL_COUNT) );
|
BX_STATIC_ASSERT(bgfx::Fatal::Count == bgfx::Fatal::Enum(BGFX_FATAL_COUNT) );
|
||||||
BX_STATIC_ASSERT(bgfx::RendererType::Count == bgfx::RendererType::Enum(BGFX_RENDERER_TYPE_COUNT) );
|
BX_STATIC_ASSERT(bgfx::RendererType::Count == bgfx::RendererType::Enum(BGFX_RENDERER_TYPE_COUNT) );
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# define BX_CONFIG_ALLOCATOR_DEBUG 1
|
# define BX_CONFIG_ALLOCATOR_DEBUG 1
|
||||||
#endif // BGFX_CONFIG_DEBUG
|
#endif // BGFX_CONFIG_DEBUG
|
||||||
|
|
||||||
#include "bgfx.h"
|
#include <bgfx/bgfx.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
@ -108,7 +108,7 @@ namespace bgfx
|
||||||
#include <bx/string.h>
|
#include <bx/string.h>
|
||||||
#include <bx/os.h>
|
#include <bx/os.h>
|
||||||
|
|
||||||
#include "bgfxplatform.h"
|
#include <bgfx/bgfxplatform.h>
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
|
||||||
#define BGFX_CHUNK_MAGIC_CSH BX_MAKEFOURCC('C', 'S', 'H', 0x2)
|
#define BGFX_CHUNK_MAGIC_CSH BX_MAKEFOURCC('C', 'S', 'H', 0x2)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "bgfx_p.h"
|
#include "bgfx_p.h"
|
||||||
|
|
||||||
#if BX_PLATFORM_NACL && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)
|
#if BX_PLATFORM_NACL && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)
|
||||||
# include <bgfxplatform.h>
|
# include <bgfx/bgfxplatform.h>
|
||||||
# include "renderer_gl.h"
|
# include "renderer_gl.h"
|
||||||
|
|
||||||
namespace bgfx { namespace gl
|
namespace bgfx { namespace gl
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#ifndef BGFX_VERTEXDECL_H_HEADER_GUARD
|
#ifndef BGFX_VERTEXDECL_H_HEADER_GUARD
|
||||||
#define BGFX_VERTEXDECL_H_HEADER_GUARD
|
#define BGFX_VERTEXDECL_H_HEADER_GUARD
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include <bx/readerwriter.h>
|
#include <bx/readerwriter.h>
|
||||||
|
|
||||||
namespace bgfx
|
namespace bgfx
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx/bgfx.h>
|
||||||
#include "../../src/vertexdecl.h"
|
#include "../../src/vertexdecl.h"
|
||||||
|
|
||||||
#include <tinystl/allocator.h>
|
#include <tinystl/allocator.h>
|
||||||
|
|
Loading…
Reference in a new issue