aaa
This commit is contained in:
@@ -23,10 +23,10 @@ add_library(PuzGame SHARED ${sources_game})
|
|||||||
set_property(TARGET PuzGame PROPERTY CXX_STANDARD 17)
|
set_property(TARGET PuzGame PROPERTY CXX_STANDARD 17)
|
||||||
|
|
||||||
SET(BGFX_BUILD_TOOLS ON)
|
SET(BGFX_BUILD_TOOLS ON)
|
||||||
SET(BGFX_BUILD_EXAMPLES OFF)
|
SET(BGFX_BUILD_EXAMPLES ON)
|
||||||
SET(BGFX_CONFIG_MULTITHREADED OFF)
|
#SET(BGFX_CONFIG_MULTITHREADED OFF)
|
||||||
add_subdirectory("${CMAKE_SOURCE_DIR}/dependency/bgfx.cmake")
|
add_subdirectory("${CMAKE_SOURCE_DIR}/dependency/bgfx.cmake")
|
||||||
|
|
||||||
target_link_libraries(PuzGame bx bimg bgfx)
|
target_link_libraries(PuzGame bx bimg bgfx)
|
||||||
target_link_libraries(PuzGameEngine bx bimg bgfx)
|
target_link_libraries(PuzGameEngine bx)
|
||||||
set_target_properties(PuzGame PROPERTIES OUTPUT_NAME "PuzGame2")
|
set_target_properties(PuzGame PROPERTIES OUTPUT_NAME "PuzGame2")
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <bx/string.h>
|
#include <bx/string.h>
|
||||||
#include <bgfx/bgfx.h>
|
|
||||||
|
|
||||||
#define VISUAL_STUDIO
|
#define VISUAL_STUDIO
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -94,8 +94,8 @@ namespace Game
|
|||||||
{
|
{
|
||||||
bgfx::Init init;
|
bgfx::Init init;
|
||||||
init.type = bgfx::RendererType::OpenGL;
|
init.type = bgfx::RendererType::OpenGL;
|
||||||
init.debug = true;
|
//init.debug = true;
|
||||||
init.callback = &Callback;
|
//init.callback = &Callback;
|
||||||
init.platformData.nwh = (void*)window;
|
init.platformData.nwh = (void*)window;
|
||||||
init.platformData.ndt = nullptr;
|
init.platformData.ndt = nullptr;
|
||||||
init.platformData.type = bgfx::NativeWindowHandleType::Default;
|
init.platformData.type = bgfx::NativeWindowHandleType::Default;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
$input v_color0
|
$input v_color0
|
||||||
|
|
||||||
#include "common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
|
|||||||
Reference in New Issue
Block a user