re-added libext.dll being compiled separately (to serve as a way to segregate non-engine into here)
This commit is contained in:
parent
87ed97408f
commit
add0b88248
2
Makefile
2
Makefile
@ -245,7 +245,7 @@ ifneq (,$(findstring xz,$(REQ_DEPS)))
|
|||||||
DEPS += -lxz -llzma
|
DEPS += -lxz -llzma
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS_DLL := $(shell find $(ENGINE_SRC_DIR) -name "*.cpp") $(shell find $(EXT_SRC_DIR) -name "*.cpp") $(shell find $(DEP_SRC_DIR) -name "*.cpp")
|
SRCS_DLL := $(shell find $(ENGINE_SRC_DIR) -name "*.cpp") $(shell find $(DEP_SRC_DIR) -name "*.cpp")
|
||||||
OBJS_DLL += $(patsubst %.cpp,%.$(PREFIX).o,$(SRCS_DLL))
|
OBJS_DLL += $(patsubst %.cpp,%.$(PREFIX).o,$(SRCS_DLL))
|
||||||
BASE_DLL += lib$(LIB_NAME)
|
BASE_DLL += lib$(LIB_NAME)
|
||||||
IM_DLL += $(ENGINE_LIB_DIR)/$(PREFIX_PATH)/$(BASE_DLL).$(TARGET_LIB_EXTENSION).a
|
IM_DLL += $(ENGINE_LIB_DIR)/$(PREFIX_PATH)/$(BASE_DLL).$(TARGET_LIB_EXTENSION).a
|
||||||
|
@ -36,7 +36,7 @@ namespace {
|
|||||||
|
|
||||||
client::terminated = true;
|
client::terminated = true;
|
||||||
|
|
||||||
//ext::terminate();
|
ext::terminate();
|
||||||
uf::terminate();
|
uf::terminate();
|
||||||
client::terminate();
|
client::terminate();
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ int main(int argc, char** argv){
|
|||||||
signal(SIGSEGV, ::handlers::segv);
|
signal(SIGSEGV, ::handlers::segv);
|
||||||
|
|
||||||
client::initialize();
|
client::initialize();
|
||||||
//ext::initialize();
|
ext::initialize();
|
||||||
uf::initialize();
|
uf::initialize();
|
||||||
|
|
||||||
// For Multithreaded initialization
|
// For Multithreaded initialization
|
||||||
@ -109,22 +109,22 @@ int main(int argc, char** argv){
|
|||||||
// auto& thread = uf::thread::fetchWorker();
|
// auto& thread = uf::thread::fetchWorker();
|
||||||
auto& thread = uf::thread::get("Render");
|
auto& thread = uf::thread::get("Render");
|
||||||
uf::thread::queue(thread, [&]{
|
uf::thread::queue(thread, [&]{
|
||||||
//ext::render();
|
ext::render();
|
||||||
uf::render();
|
uf::render();
|
||||||
client::render();
|
client::render();
|
||||||
});
|
});
|
||||||
|
|
||||||
client::tick();
|
client::tick();
|
||||||
//ext::tick();
|
ext::tick();
|
||||||
uf::tick();
|
uf::tick();
|
||||||
|
|
||||||
uf::thread::wait( thread );
|
uf::thread::wait( thread );
|
||||||
} else {
|
} else {
|
||||||
client::tick();
|
client::tick();
|
||||||
uf::tick();
|
uf::tick();
|
||||||
//ext::tick();
|
ext::tick();
|
||||||
|
|
||||||
//ext::render();
|
ext::render();
|
||||||
uf::render();
|
uf::render();
|
||||||
client::render();
|
client::render();
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ int main(int argc, char** argv){
|
|||||||
if ( !client::terminated ) {
|
if ( !client::terminated ) {
|
||||||
client::terminated = true;
|
client::terminated = true;
|
||||||
UF_MSG_INFO("Natural termination!");
|
UF_MSG_INFO("Natural termination!");
|
||||||
//ext::terminate();
|
ext::terminate();
|
||||||
uf::terminate();
|
uf::terminate();
|
||||||
client::terminate();
|
client::terminate();
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@ namespace uf {
|
|||||||
pod::Vector3f tangent{};
|
pod::Vector3f tangent{};
|
||||||
pod::Vector<uint16_t, 2> id{};
|
pod::Vector<uint16_t, 2> id{};
|
||||||
|
|
||||||
static UF_API uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
static uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
||||||
static UF_API Base interpolate( const Base& p1, const Base& p2, float t ) {
|
static Base interpolate( const Base& p1, const Base& p2, float t ) {
|
||||||
return {
|
return {
|
||||||
uf::vector::lerp( p1.position, p2.position, t ),
|
uf::vector::lerp( p1.position, p2.position, t ),
|
||||||
uf::vector::lerp( p1.uv, p2.uv, t ),
|
uf::vector::lerp( p1.uv, p2.uv, t ),
|
||||||
@ -36,8 +36,8 @@ namespace uf {
|
|||||||
pod::Vector<uint16_t, 4> joints{};
|
pod::Vector<uint16_t, 4> joints{};
|
||||||
pod::Vector4f weights{};
|
pod::Vector4f weights{};
|
||||||
|
|
||||||
static UF_API uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
static uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
||||||
static UF_API Skinned interpolate( const Skinned& p1, const Skinned& p2, float t ) {
|
static Skinned interpolate( const Skinned& p1, const Skinned& p2, float t ) {
|
||||||
return {
|
return {
|
||||||
uf::vector::lerp( p1.position, p2.position, t ),
|
uf::vector::lerp( p1.position, p2.position, t ),
|
||||||
uf::vector::lerp( p1.uv, p2.uv, t ),
|
uf::vector::lerp( p1.uv, p2.uv, t ),
|
||||||
@ -64,8 +64,8 @@ namespace uf {
|
|||||||
pod::Vector3f16 tangent{};
|
pod::Vector3f16 tangent{};
|
||||||
pod::Vector<uint16_t, 2> id{};
|
pod::Vector<uint16_t, 2> id{};
|
||||||
|
|
||||||
static UF_API uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
static uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
||||||
static UF_API Base_16f interpolate( const Base_16f& p1, const Base_16f& p2, float t ) {
|
static Base_16f interpolate( const Base_16f& p1, const Base_16f& p2, float t ) {
|
||||||
return t < 0.5 ? p1 : p2;
|
return t < 0.5 ? p1 : p2;
|
||||||
/*
|
/*
|
||||||
return {
|
return {
|
||||||
@ -91,8 +91,8 @@ namespace uf {
|
|||||||
pod::Vector<uint16_t, 4> joints{};
|
pod::Vector<uint16_t, 4> joints{};
|
||||||
pod::Vector3f16 weights{};
|
pod::Vector3f16 weights{};
|
||||||
|
|
||||||
static UF_API uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
static uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
||||||
static UF_API Skinned_16f interpolate( const Skinned_16f& p1, const Skinned_16f& p2, float t ) {
|
static Skinned_16f interpolate( const Skinned_16f& p1, const Skinned_16f& p2, float t ) {
|
||||||
return t < 0.5 ? p1 : p2;
|
return t < 0.5 ? p1 : p2;
|
||||||
/*
|
/*
|
||||||
return {
|
return {
|
||||||
@ -119,8 +119,8 @@ namespace uf {
|
|||||||
pod::Vector<uint16_t, 3> tangent{};
|
pod::Vector<uint16_t, 3> tangent{};
|
||||||
pod::Vector<uint16_t, 2> id{};
|
pod::Vector<uint16_t, 2> id{};
|
||||||
|
|
||||||
static UF_API uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
static uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
||||||
static UF_API Base_u16q interpolate( const Base_u16q& p1, const Base_u16q& p2, float t ) {
|
static Base_u16q interpolate( const Base_u16q& p1, const Base_u16q& p2, float t ) {
|
||||||
return t < 0.5 ? p1 : p2;
|
return t < 0.5 ? p1 : p2;
|
||||||
/*
|
/*
|
||||||
return {
|
return {
|
||||||
@ -146,8 +146,8 @@ namespace uf {
|
|||||||
pod::Vector<uint16_t, 4> joints{};
|
pod::Vector<uint16_t, 4> joints{};
|
||||||
pod::Vector<uint16_t, 3> weights{};
|
pod::Vector<uint16_t, 3> weights{};
|
||||||
|
|
||||||
static UF_API uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
static uf::stl::vector<uf::renderer::AttributeDescriptor> descriptor;
|
||||||
static UF_API Skinned_u16q interpolate( const Skinned_u16q& p1, const Skinned_u16q& p2, float t ) {
|
static Skinned_u16q interpolate( const Skinned_u16q& p1, const Skinned_u16q& p2, float t ) {
|
||||||
return t < 0.5 ? p1 : p2;
|
return t < 0.5 ? p1 : p2;
|
||||||
/*
|
/*
|
||||||
return {
|
return {
|
||||||
|
15
ext/main.cpp
Normal file
15
ext/main.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include <uf/config.h>
|
||||||
|
#include <uf/ext/ext.h>
|
||||||
|
|
||||||
|
void EXT_API ext::initialize() {
|
||||||
|
|
||||||
|
}
|
||||||
|
void EXT_API ext::tick() {
|
||||||
|
|
||||||
|
}
|
||||||
|
void EXT_API ext::render() {
|
||||||
|
|
||||||
|
}
|
||||||
|
void EXT_API ext::terminate() {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user