mirror of
https://github.com/Relintai/sfw.git
synced 2025-03-11 23:39:09 +01:00
Use include paths relative to the lib's folder to simplify the build setup.
This commit is contained in:
parent
724b1b3901
commit
985aa8e2fb
102
compile_linux.sh
102
compile_linux.sh
@ -7,65 +7,65 @@
|
|||||||
#g++ main.cpp shader.cpp material.cpp mesh.cpp mesh_instance.cpp mesh_utils.cpp texture.cpp camera.cpp render_core.cpp scene.cpp game_scene.cpp object_2d.cpp tile_map.cpp sprite.cpp \
|
#g++ main.cpp shader.cpp material.cpp mesh.cpp mesh_instance.cpp mesh_utils.cpp texture.cpp camera.cpp render_core.cpp scene.cpp game_scene.cpp object_2d.cpp tile_map.cpp sprite.cpp \
|
||||||
# -g -Wall -o3 -o ./bin/game $(pkg-config --cflags --libs sdl2 glew)
|
# -g -Wall -o3 -o ./bin/game $(pkg-config --cflags --libs sdl2 glew)
|
||||||
|
|
||||||
#g++ -Wall -fexceptions -I/usr/include/SDL2 -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/aabb.cpp -o sfw/core/aabb.o
|
#g++ -Wall -fexceptions -I/usr/include/SDL2 -D_REENTRANT -g -Isfw -c sfw/core/aabb.cpp -o sfw/core/aabb.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/aabb.cpp -o sfw/core/aabb.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/aabb.cpp -o sfw/core/aabb.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/basis.cpp -o sfw/core/basis.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/basis.cpp -o sfw/core/basis.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/color.cpp -o sfw/core/color.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/color.cpp -o sfw/core/color.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/face3.cpp -o sfw/core/face3.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/face3.cpp -o sfw/core/face3.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/logger.cpp -o sfw/core/logger.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/logger.cpp -o sfw/core/logger.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/math_funcs.cpp -o sfw/core/math_funcs.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/math_funcs.cpp -o sfw/core/math_funcs.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/memory.cpp -o sfw/core/memory.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/memory.cpp -o sfw/core/memory.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/pcg.cpp -o sfw/core/pcg.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/pcg.cpp -o sfw/core/pcg.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/plane.cpp -o sfw/core/plane.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/plane.cpp -o sfw/core/plane.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/projection.cpp -o sfw/core/projection.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/projection.cpp -o sfw/core/projection.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/quaternion.cpp -o sfw/core/quaternion.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/quaternion.cpp -o sfw/core/quaternion.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/random_pcg.cpp -o sfw/core/random_pcg.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/random_pcg.cpp -o sfw/core/random_pcg.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/rect2.cpp -o sfw/core/rect2.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/rect2.cpp -o sfw/core/rect2.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/rect2i.cpp -o sfw/core/rect2i.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/rect2i.cpp -o sfw/core/rect2i.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/safe_refcount.cpp -o sfw/core/safe_refcount.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/safe_refcount.cpp -o sfw/core/safe_refcount.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/transform_2d.cpp -o sfw/core/transform_2d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/transform_2d.cpp -o sfw/core/transform_2d.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/transform.cpp -o sfw/core/transform.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/transform.cpp -o sfw/core/transform.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/ustring.cpp -o sfw/core/ustring.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/ustring.cpp -o sfw/core/ustring.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/string_name.cpp -o sfw/core/string_name.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/string_name.cpp -o sfw/core/string_name.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/vector2.cpp -o sfw/core/vector2.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/vector2.cpp -o sfw/core/vector2.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/vector2i.cpp -o sfw/core/vector2i.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/vector2i.cpp -o sfw/core/vector2i.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/vector3.cpp -o sfw/core/vector3.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/vector3.cpp -o sfw/core/vector3.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/vector3i.cpp -o sfw/core/vector3i.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/vector3i.cpp -o sfw/core/vector3i.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/vector4.cpp -o sfw/core/vector4.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/vector4.cpp -o sfw/core/vector4.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/vector4i.cpp -o sfw/core/vector4i.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/vector4i.cpp -o sfw/core/vector4i.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/pool_vector.cpp -o sfw/core/pool_vector.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/pool_vector.cpp -o sfw/core/pool_vector.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/pool_allocator.cpp -o sfw/core/pool_allocator.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/pool_allocator.cpp -o sfw/core/pool_allocator.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/mutex.cpp -o sfw/core/mutex.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/mutex.cpp -o sfw/core/mutex.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/core/stime.cpp -o sfw/core/stime.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/core/stime.cpp -o sfw/core/stime.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/object/object.cpp -o sfw/object/object.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/object/object.cpp -o sfw/object/object.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -c sfw/object/reference.cpp -o sfw/object/reference.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/object/reference.cpp -o sfw/object/reference.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/application.cpp -o sfw/render_core/application.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/application.cpp -o sfw/render_core/application.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/scene.cpp -o sfw/render_core/scene.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/scene.cpp -o sfw/render_core/scene.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/window.cpp -o sfw/render_core/window.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/window.cpp -o sfw/render_core/window.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/shader.cpp -o sfw/render_core/shader.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/shader.cpp -o sfw/render_core/shader.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/material.cpp -o sfw/render_core/material.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/material.cpp -o sfw/render_core/material.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/mesh.cpp -o sfw/render_core/mesh.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/mesh.cpp -o sfw/render_core/mesh.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/mesh_utils.cpp -o sfw/render_core/mesh_utils.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/mesh_utils.cpp -o sfw/render_core/mesh_utils.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/texture.cpp -o sfw/render_core/texture.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/texture.cpp -o sfw/render_core/texture.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -c sfw/render_core/image.cpp -o sfw/render_core/image.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_core/image.cpp -o sfw/render_core/image.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/camera_3d.cpp -o sfw/render_objects/camera_3d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/camera_3d.cpp -o sfw/render_objects/camera_3d.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/object_3d.cpp -o sfw/render_objects/object_3d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/object_3d.cpp -o sfw/render_objects/object_3d.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/mesh_instance_3d.cpp -o sfw/render_objects/mesh_instance_3d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/mesh_instance_3d.cpp -o sfw/render_objects/mesh_instance_3d.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/camera_2d.cpp -o sfw/render_objects/camera_2d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/camera_2d.cpp -o sfw/render_objects/camera_2d.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/mesh_instance_2d.cpp -o sfw/render_objects/mesh_instance_2d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/mesh_instance_2d.cpp -o sfw/render_objects/mesh_instance_2d.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/object_2d.cpp -o sfw/render_objects/object_2d.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/object_2d.cpp -o sfw/render_objects/object_2d.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/sprite.cpp -o sfw/render_objects/sprite.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/sprite.cpp -o sfw/render_objects/sprite.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c sfw/render_objects/tile_map.cpp -o sfw/render_objects/tile_map.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c sfw/render_objects/tile_map.cpp -o sfw/render_objects/tile_map.o
|
||||||
|
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c game_scene.cpp -o game_scene.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c game_scene.cpp -o game_scene.o
|
||||||
ccache g++ -Wall -D_REENTRANT -g -Isfw -Isfw/core -Isfw/object -Isfw/render_core -Isfw/render_objects -c main.cpp -o main.o
|
ccache g++ -Wall -D_REENTRANT -g -Isfw -c main.cpp -o main.o
|
||||||
|
|
||||||
|
|
||||||
ccache g++ -Wall -lm -ldl -lpthread -lX11 -D_REENTRANT -g sfw/core/aabb.o sfw/core/basis.o sfw/core/color.o \
|
ccache g++ -Wall -lm -ldl -lpthread -lX11 -D_REENTRANT -g sfw/core/aabb.o sfw/core/basis.o sfw/core/color.o \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef GAME_APPLICATION_H
|
#ifndef GAME_APPLICATION_H
|
||||||
#define GAME_APPLICATION_H
|
#define GAME_APPLICATION_H
|
||||||
|
|
||||||
#include "application.h"
|
#include "render_core/application.h"
|
||||||
|
|
||||||
#include "game_scene.h"
|
#include "game_scene.h"
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#include "game_scene.h"
|
#include "game_scene.h"
|
||||||
|
|
||||||
#include "application.h"
|
#include "render_core/application.h"
|
||||||
|
|
||||||
#include "3rd_glad.h"
|
#include "render_core/3rd_glad.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "mesh_utils.h"
|
#include "render_core/mesh_utils.h"
|
||||||
|
|
||||||
void GameScene::event() {
|
void GameScene::event() {
|
||||||
/*
|
/*
|
||||||
|
26
game_scene.h
26
game_scene.h
@ -1,20 +1,20 @@
|
|||||||
#ifndef GAME_SCENE_H
|
#ifndef GAME_SCENE_H
|
||||||
#define GAME_SCENE_H
|
#define GAME_SCENE_H
|
||||||
|
|
||||||
#include "scene.h"
|
#include "render_core/scene.h"
|
||||||
|
|
||||||
#include "tile_map.h"
|
#include "render_objects/tile_map.h"
|
||||||
#include "mesh_instance_3d.h"
|
#include "render_objects/mesh_instance_3d.h"
|
||||||
#include "camera_3d.h"
|
#include "render_objects/camera_3d.h"
|
||||||
#include "camera_2d.h"
|
#include "render_objects/camera_2d.h"
|
||||||
#include "color_material.h"
|
#include "render_core/color_material.h"
|
||||||
#include "colored_material.h"
|
#include "render_core/colored_material.h"
|
||||||
#include "mesh.h"
|
#include "render_core/mesh.h"
|
||||||
#include "sprite.h"
|
#include "render_objects/sprite.h"
|
||||||
#include "texture.h"
|
#include "render_core/texture.h"
|
||||||
#include "texture_material.h"
|
#include "render_core/texture_material.h"
|
||||||
#include "texture_material_2d.h"
|
#include "render_core/texture_material_2d.h"
|
||||||
#include "image.h"
|
#include "render_core/image.h"
|
||||||
|
|
||||||
class GameScene : public Scene {
|
class GameScene : public Scene {
|
||||||
public:
|
public:
|
||||||
|
6
main.cpp
6
main.cpp
@ -2,11 +2,11 @@
|
|||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
#endif // __EMSCRIPTEN__
|
#endif // __EMSCRIPTEN__
|
||||||
|
|
||||||
#include "application.h"
|
#include "render_core/application.h"
|
||||||
#include "window.h"
|
#include "render_core/window.h"
|
||||||
|
|
||||||
#include "game_application.h"
|
#include "game_application.h"
|
||||||
#include "window.h"
|
#include "render_core/window.h"
|
||||||
|
|
||||||
Application *application = NULL;
|
Application *application = NULL;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "aabb.h"
|
#include "core/aabb.h"
|
||||||
|
|
||||||
real_t AABB::get_volume() const {
|
real_t AABB::get_volume() const {
|
||||||
return size.x * size.y * size.z;
|
return size.x * size.y * size.z;
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
#include "plane.h"
|
#include "core/plane.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AABB / AABB (Axis Aligned Bounding Box)
|
* AABB / AABB (Axis Aligned Bounding Box)
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "basis.h"
|
#include "core/basis.h"
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
#define cofac(row1, col1, row2, col2) \
|
#define cofac(row1, col1, row2, col2) \
|
||||||
(rows[row1][col1] * rows[row2][col2] - rows[row1][col2] * rows[row2][col1])
|
(rows[row1][col1] * rows[row2][col2] - rows[row1][col2] * rows[row2][col1])
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "quaternion.h"
|
#include "core/quaternion.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include "vector3i.h"
|
#include "core/vector3i.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Basis {
|
struct _NO_DISCARD_CLASS_ Basis {
|
||||||
Vector3 rows[3] = {
|
Vector3 rows[3] = {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#ifndef CHAR_RANGE_INC
|
#ifndef CHAR_RANGE_INC
|
||||||
#define CHAR_RANGE_INC
|
#define CHAR_RANGE_INC
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
struct CharRange {
|
struct CharRange {
|
||||||
char32_t start;
|
char32_t start;
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
#ifndef CHAR_UTILS_H
|
#ifndef CHAR_UTILS_H
|
||||||
#define CHAR_UTILS_H
|
#define CHAR_UTILS_H
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#include "char_range.inc"
|
#include "core/char_range.inc"
|
||||||
|
|
||||||
static _FORCE_INLINE_ bool is_unicode_identifier_start(char32_t c) {
|
static _FORCE_INLINE_ bool is_unicode_identifier_start(char32_t c) {
|
||||||
for (int i = 0; xid_start[i].start != 0; i++) {
|
for (int i = 0; xid_start[i].start != 0; i++) {
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "color.h"
|
#include "core/color.h"
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
uint32_t Color::to_argb32() const {
|
uint32_t Color::to_argb32() const {
|
||||||
uint32_t c = (uint8_t)Math::round(a * 255);
|
uint32_t c = (uint8_t)Math::round(a * 255);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Color {
|
struct _NO_DISCARD_CLASS_ Color {
|
||||||
union {
|
union {
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "error_list.h"
|
#include "core/error_list.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class Vector;
|
class Vector;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#ifndef ERROR_MACROS_H
|
#ifndef ERROR_MACROS_H
|
||||||
#define ERROR_MACROS_H
|
#define ERROR_MACROS_H
|
||||||
|
|
||||||
#include "logger.h"
|
#include "core/logger.h"
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
// Based on Godot Engine's error_macros.h
|
// Based on Godot Engine's error_macros.h
|
||||||
// MIT License
|
// MIT License
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "aabb.h"
|
#include "core/aabb.h"
|
||||||
#include "plane.h"
|
#include "core/plane.h"
|
||||||
#include "transform.h"
|
#include "core/transform.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Face3 {
|
struct _NO_DISCARD_CLASS_ Face3 {
|
||||||
enum Side {
|
enum Side {
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "hashfuncs.h"
|
#include "core/hashfuncs.h"
|
||||||
#include "paged_allocator.h"
|
#include "paged_allocator.h"
|
||||||
#include "pair.h"
|
#include "pair.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "hash_map.h"
|
#include "core/hash_map.h"
|
||||||
#include "hashfuncs.h"
|
#include "core/hashfuncs.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of Set using a bidi indexed hash map.
|
* Implementation of Set using a bidi indexed hash map.
|
||||||
|
@ -6,19 +6,19 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "aabb.h"
|
#include "core/aabb.h"
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "rect2.h"
|
#include "core/rect2.h"
|
||||||
#include "rect2i.h"
|
#include "core/rect2i.h"
|
||||||
#include "vector2.h"
|
#include "core/vector2.h"
|
||||||
#include "vector2i.h"
|
#include "core/vector2i.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include "vector3i.h"
|
#include "core/vector3i.h"
|
||||||
#include "vector4.h"
|
#include "core/vector4.h"
|
||||||
#include "vector4i.h"
|
#include "core/vector4i.h"
|
||||||
#include "string_name.h"
|
#include "core/string_name.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "sort_array.h"
|
#include "core/sort_array.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic Templatized Linked List Implementation.
|
* Generic Templatized Linked List Implementation.
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
#include "sort_array.h"
|
#include "core/sort_array.h"
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
template <class T, class U = uint32_t, bool force_trivial = false>
|
template <class T, class U = uint32_t, bool force_trivial = false>
|
||||||
class LocalVector {
|
class LocalVector {
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
|
|
||||||
#include "logger.h"
|
#include "core/logger.h"
|
||||||
|
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "logger.h"
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <thread>
|
|
||||||
|
|
||||||
|
|
||||||
void RLogger::print_trace(const String &str) {
|
void RLogger::print_trace(const String &str) {
|
||||||
print_trace(str.utf8().get_data());
|
print_trace(str.utf8().get_data());
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
|
|
||||||
RandomPCG Math::default_rand(RandomPCG::DEFAULT_SEED, RandomPCG::DEFAULT_INC);
|
RandomPCG Math::default_rand(RandomPCG::DEFAULT_SEED, RandomPCG::DEFAULT_INC);
|
||||||
|
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
#include "random_pcg.h"
|
#include "core/random_pcg.h"
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#include "pcg.h"
|
#include "core/pcg.h"
|
||||||
|
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "mutex.h"
|
#include "core/mutex.h"
|
||||||
|
|
||||||
static Mutex _global_mutex;
|
static Mutex _global_mutex;
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_list.h"
|
#include "core/error_list.h"
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#if !defined(NO_THREADS)
|
#if !defined(NO_THREADS)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "string.h"
|
#include "string.h"
|
||||||
|
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "spin_lock.h"
|
#include "spin_lock.h"
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "hashfuncs.h"
|
#include "core/hashfuncs.h"
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
template <class F, class S>
|
template <class F, class S>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// *Really* minimal PCG32 code / (c) 2014 M.E. O'Neill / pcg-random.org
|
// *Really* minimal PCG32 code / (c) 2014 M.E. O'Neill / pcg-random.org
|
||||||
// Licensed under Apache License 2.0 (NO WARRANTY, etc. see website)
|
// Licensed under Apache License 2.0 (NO WARRANTY, etc. see website)
|
||||||
|
|
||||||
#include "pcg.h"
|
#include "core/pcg.h"
|
||||||
|
|
||||||
uint32_t pcg32_random_r(pcg32_random_t* rng)
|
uint32_t pcg32_random_r(pcg32_random_t* rng)
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#ifndef RANDOM_H
|
#ifndef RANDOM_H
|
||||||
#define RANDOM_H
|
#define RANDOM_H
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#define PCG_DEFAULT_INC_64 1442695040888963407ULL
|
#define PCG_DEFAULT_INC_64 1442695040888963407ULL
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "plane.h"
|
#include "core/plane.h"
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
void Plane::set_normal(const Vector3 &p_normal) {
|
void Plane::set_normal(const Vector3 &p_normal) {
|
||||||
normal = p_normal;
|
normal = p_normal;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Plane {
|
struct _NO_DISCARD_CLASS_ Plane {
|
||||||
Vector3 normal;
|
Vector3 normal;
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
#include "pool_allocator.h"
|
#include "pool_allocator.h"
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
#define COMPACT_CHUNK(m_entry, m_to_pos) \
|
#define COMPACT_CHUNK(m_entry, m_to_pos) \
|
||||||
do { \
|
do { \
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@author Juan Linietsky <reduzio@gmail.com>
|
@author Juan Linietsky <reduzio@gmail.com>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
|
|
||||||
Mutex pool_vector_lock;
|
Mutex pool_vector_lock;
|
||||||
|
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "mutex.h"
|
#include "core/mutex.h"
|
||||||
#include "pool_allocator.h"
|
#include "pool_allocator.h"
|
||||||
#include "rw_lock.h"
|
#include "rw_lock.h"
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
struct MemoryPool {
|
struct MemoryPool {
|
||||||
//avoid accessing these directly, must be public for template access
|
//avoid accessing these directly, must be public for template access
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "projection.h"
|
#include "core/projection.h"
|
||||||
|
|
||||||
#include "aabb.h"
|
#include "core/aabb.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "plane.h"
|
#include "core/plane.h"
|
||||||
#include "rect2.h"
|
#include "core/rect2.h"
|
||||||
#include "transform.h"
|
#include "core/transform.h"
|
||||||
|
|
||||||
float Projection::determinant() const {
|
float Projection::determinant() const {
|
||||||
return matrix[0][3] * matrix[1][2] * matrix[2][1] * matrix[3][0] - matrix[0][2] * matrix[1][3] * matrix[2][1] * matrix[3][0] -
|
return matrix[0][3] * matrix[1][2] * matrix[2][1] * matrix[3][0] - matrix[0][2] * matrix[1][3] * matrix[2][1] * matrix[3][0] -
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
#ifndef PROJECTION_H
|
#ifndef PROJECTION_H
|
||||||
#define PROJECTION_H
|
#define PROJECTION_H
|
||||||
|
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include "vector4.h"
|
#include "core/vector4.h"
|
||||||
|
|
||||||
struct AABB;
|
struct AABB;
|
||||||
struct Plane;
|
struct Plane;
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "quaternion.h"
|
#include "core/quaternion.h"
|
||||||
|
|
||||||
#include "basis.h"
|
#include "core/basis.h"
|
||||||
|
|
||||||
real_t Quaternion::angle_to(const Quaternion &p_to) const {
|
real_t Quaternion::angle_to(const Quaternion &p_to) const {
|
||||||
real_t d = dot(p_to);
|
real_t d = dot(p_to);
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Quaternion {
|
struct _NO_DISCARD_CLASS_ Quaternion {
|
||||||
union {
|
union {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "core/error_macros.h"
|
#include "core/error_macros.h"
|
||||||
|
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
class Queue
|
class Queue
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "random_pcg.h"
|
#include "core/random_pcg.h"
|
||||||
|
|
||||||
//#include "os/os.h"
|
//#include "os/os.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
|
|
||||||
RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) :
|
RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) :
|
||||||
pcg(),
|
pcg(),
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
|
|
||||||
#include "pcg.h"
|
#include "core/pcg.h"
|
||||||
|
|
||||||
#if defined(__GNUC__) || (_llvm_has_builtin(__builtin_clz))
|
#if defined(__GNUC__) || (_llvm_has_builtin(__builtin_clz))
|
||||||
#define CLZ32(x) __builtin_clz(x)
|
#define CLZ32(x) __builtin_clz(x)
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
// based on the very nice implementation of rb-trees by:
|
// based on the very nice implementation of rb-trees by:
|
||||||
// https://web.archive.org/web/20120507164830/http://web.mit.edu/~emin/www/source_code/red_black_tree/index.html
|
// https://web.archive.org/web/20120507164830/http://web.mit.edu/~emin/www/source_code/red_black_tree/index.html
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
// based on the very nice implementation of rb-trees by:
|
// based on the very nice implementation of rb-trees by:
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||||
|
|
||||||
#include "rect2i.h"
|
#include "core/rect2i.h"
|
||||||
|
|
||||||
bool Rect2::is_equal_approx(const Rect2 &p_rect) const {
|
bool Rect2::is_equal_approx(const Rect2 &p_rect) const {
|
||||||
return position.is_equal_approx(p_rect.position) && size.is_equal_approx(p_rect.size);
|
return position.is_equal_approx(p_rect.position) && size.is_equal_approx(p_rect.size);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector2.h" // also includes math_funcs and ustring
|
#include "core/vector2.h" // also includes math_funcs and ustring
|
||||||
#include "vector2i.h"
|
#include "core/vector2i.h"
|
||||||
|
|
||||||
struct Transform2D;
|
struct Transform2D;
|
||||||
struct Rect2i;
|
struct Rect2i;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||||
|
|
||||||
Rect2i::operator String() const {
|
Rect2i::operator String() const {
|
||||||
return "[P: " + position.operator String() + ", S: " + size + "]";
|
return "[P: " + position.operator String() + ", S: " + size + "]";
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector2i.h" // also includes math_funcs and ustring
|
#include "core/vector2i.h" // also includes math_funcs and ustring
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Rect2i {
|
struct _NO_DISCARD_CLASS_ Rect2i {
|
||||||
Point2i position;
|
Point2i position;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class RingBuffer {
|
class RingBuffer {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_list.h"
|
#include "core/error_list.h"
|
||||||
|
|
||||||
#if !defined(NO_THREADS)
|
#if !defined(NO_THREADS)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#if defined(DEBUG_ENABLED) && !defined(NO_THREADS)
|
#if defined(DEBUG_ENABLED) && !defined(NO_THREADS)
|
||||||
|
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
|
||||||
#include "core/error/error_macros.h"
|
#include "core/error/error_macros.h"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#if !defined(NO_THREADS)
|
#if !defined(NO_THREADS)
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#define ERR_BAD_COMPARE(cond) \
|
#define ERR_BAD_COMPARE(cond) \
|
||||||
if (unlikely(cond)) { \
|
if (unlikely(cond)) { \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// time
|
// time
|
||||||
|
|
||||||
#include "stime.h"
|
#include "core/stime.h"
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// time framework utils
|
// time framework utils
|
||||||
// - originally by rlyeh, public domain.
|
// - originally by rlyeh, public domain.
|
||||||
|
|
||||||
#include "int_types.h"
|
#include "core/int_types.h"
|
||||||
|
|
||||||
class STime {
|
class STime {
|
||||||
public:
|
public:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "string_name.h"
|
#include "core/string_name.h"
|
||||||
|
|
||||||
StaticCString StaticCString::create(const char *p_ptr) {
|
StaticCString StaticCString::create(const char *p_ptr) {
|
||||||
StaticCString scs;
|
StaticCString scs;
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "mutex.h"
|
#include "core/mutex.h"
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
struct StaticCString {
|
struct StaticCString {
|
||||||
const char *ptr;
|
const char *ptr;
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
#include "sort_array.h"
|
#include "core/sort_array.h"
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
// It grows strictly as much as needed. (The vanilla LocalVector is what you want in most cases).
|
// It grows strictly as much as needed. (The vanilla LocalVector is what you want in most cases).
|
||||||
template <class T, class U = uint32_t, bool force_trivial = false>
|
template <class T, class U = uint32_t, bool force_trivial = false>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "transform.h"
|
#include "core/transform.h"
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
void Transform::invert() {
|
void Transform::invert() {
|
||||||
basis.transpose();
|
basis.transpose();
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "aabb.h"
|
#include "core/aabb.h"
|
||||||
#include "basis.h"
|
#include "core/basis.h"
|
||||||
#include "plane.h"
|
#include "core/plane.h"
|
||||||
#include "vector3i.h"
|
#include "core/vector3i.h"
|
||||||
#include "pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Transform {
|
struct _NO_DISCARD_CLASS_ Transform {
|
||||||
Basis basis;
|
Basis basis;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "transform_2d.h"
|
#include "core/transform_2d.h"
|
||||||
|
|
||||||
void Transform2D::invert() {
|
void Transform2D::invert() {
|
||||||
// FIXME: this function assumes the basis is a rotation matrix, with no scaling.
|
// FIXME: this function assumes the basis is a rotation matrix, with no scaling.
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
#include "rect2.h" // also includes vector2, math_funcs, and ustring
|
#include "core/rect2.h" // also includes vector2, math_funcs, and ustring
|
||||||
#include "rect2i.h" // also includes vector2i, math_funcs, and ustring
|
#include "core/rect2i.h" // also includes vector2i, math_funcs, and ustring
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Transform2D {
|
struct _NO_DISCARD_CLASS_ Transform2D {
|
||||||
// Warning #1: basis of Transform2D is stored differently from Basis. In terms of columns array, the basis matrix looks like "on paper":
|
// Warning #1: basis of Transform2D is stored differently from Basis. In terms of columns array, the basis matrix looks like "on paper":
|
||||||
|
@ -120,9 +120,9 @@ T *_nullptr() {
|
|||||||
#undef CONNECT_DEFERRED // override from Windows SDK, clashes with Object enum
|
#undef CONNECT_DEFERRED // override from Windows SDK, clashes with Object enum
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "int_types.h"
|
#include "core/int_types.h"
|
||||||
|
|
||||||
#include "error_list.h"
|
#include "core/error_list.h"
|
||||||
|
|
||||||
/** Generic ABS function, for math uses please use Math::abs */
|
/** Generic ABS function, for math uses please use Math::abs */
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
#define _CRT_SECURE_NO_WARNINGS // to disable build-time warning which suggested to use strcpy_s instead strcpy
|
#define _CRT_SECURE_NO_WARNINGS // to disable build-time warning which suggested to use strcpy_s instead strcpy
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
#include "color.h"
|
#include "core/color.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "ucaps.h"
|
#include "ucaps.h"
|
||||||
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "cowdata.h"
|
#include "cowdata.h"
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include "char_utils.h"
|
#include "char_utils.h"
|
||||||
#include "typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* CharProxy */
|
/* CharProxy */
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cowdata.h"
|
#include "cowdata.h"
|
||||||
#include "sort_array.h"
|
#include "core/sort_array.h"
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class VectorWriteProxy {
|
class VectorWriteProxy {
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector2.h"
|
#include "core/vector2.h"
|
||||||
|
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
real_t Vector2::angle() const {
|
real_t Vector2::angle() const {
|
||||||
return Math::atan2(y, x);
|
return Math::atan2(y, x);
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
|
|
||||||
class String;
|
class String;
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector2i.h"
|
#include "core/vector2i.h"
|
||||||
|
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
Vector2i Vector2i::clamp(const Vector2i &p_min, const Vector2i &p_max) const {
|
Vector2i Vector2i::clamp(const Vector2i &p_min, const Vector2i &p_max) const {
|
||||||
return Vector2i(
|
return Vector2i(
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
#include "vector2.h"
|
#include "core/vector2.h"
|
||||||
|
|
||||||
class String;
|
class String;
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
|
|
||||||
#include "basis.h"
|
#include "core/basis.h"
|
||||||
|
|
||||||
void Vector3::rotate(const Vector3 &p_axis, real_t p_phi) {
|
void Vector3::rotate(const Vector3 &p_axis, real_t p_phi) {
|
||||||
*this = Basis(p_axis, p_phi).xform(*this);
|
*this = Basis(p_axis, p_phi).xform(*this);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
struct Basis;
|
struct Basis;
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector3i.h"
|
#include "core/vector3i.h"
|
||||||
|
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
void Vector3i::set_axis(const int p_axis, const int32_t p_value) {
|
void Vector3i::set_axis(const int p_axis, const int32_t p_value) {
|
||||||
ERR_FAIL_INDEX(p_axis, 3);
|
ERR_FAIL_INDEX(p_axis, 3);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
#ifndef VECTOR3I_H
|
#ifndef VECTOR3I_H
|
||||||
#define VECTOR3I_H
|
#define VECTOR3I_H
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
class String;
|
class String;
|
||||||
struct Vector3;
|
struct Vector3;
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector4.h"
|
#include "core/vector4.h"
|
||||||
|
|
||||||
#include "basis.h"
|
#include "core/basis.h"
|
||||||
|
|
||||||
void Vector4::set_axis(const int p_axis, const real_t p_value) {
|
void Vector4::set_axis(const int p_axis, const real_t p_value) {
|
||||||
ERR_FAIL_INDEX(p_axis, 4);
|
ERR_FAIL_INDEX(p_axis, 4);
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
#ifndef VECTOR4_H
|
#ifndef VECTOR4_H
|
||||||
#define VECTOR4_H
|
#define VECTOR4_H
|
||||||
|
|
||||||
#include "math_defs.h"
|
#include "core/math_defs.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
struct _NO_DISCARD_CLASS_ Vector4 {
|
struct _NO_DISCARD_CLASS_ Vector4 {
|
||||||
enum Axis {
|
enum Axis {
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector4i.h"
|
#include "core/vector4i.h"
|
||||||
|
|
||||||
#include "vector4.h"
|
#include "core/vector4.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
|
|
||||||
void Vector4i::set_axis(const int p_axis, const int32_t p_value) {
|
void Vector4i::set_axis(const int p_axis, const int32_t p_value) {
|
||||||
ERR_FAIL_INDEX(p_axis, 4);
|
ERR_FAIL_INDEX(p_axis, 4);
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
#ifndef VECTOR4I_H
|
#ifndef VECTOR4I_H
|
||||||
#define VECTOR4I_H
|
#define VECTOR4I_H
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "math_funcs.h"
|
#include "core/math_funcs.h"
|
||||||
|
|
||||||
class String;
|
class String;
|
||||||
struct Vector4;
|
struct Vector4;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "object.h"
|
#include "object/object.h"
|
||||||
|
|
||||||
Object::Object() {
|
Object::Object() {
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#ifndef OBJECT_H
|
#ifndef OBJECT_H
|
||||||
#define OBJECT_H
|
#define OBJECT_H
|
||||||
|
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* object.h */
|
/* object.h */
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "core/string.h"
|
#include "core/string.h"
|
||||||
#include "core/variant.h"
|
#include "core/variant.h"
|
||||||
|
|
||||||
#include "reference.h"
|
#include "object/reference.h"
|
||||||
|
|
||||||
class Signal {
|
class Signal {
|
||||||
public:
|
public:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "reference.h"
|
#include "object/reference.h"
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* reference.cpp */
|
/* reference.cpp */
|
||||||
|
@ -6,9 +6,9 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "object.h"
|
#include "object/object.h"
|
||||||
#include "safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
|
||||||
class Reference : public Object {
|
class Reference : public Object {
|
||||||
SFW_OBJECT(Reference, Object);
|
SFW_OBJECT(Reference, Object);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef RESOURCE_H
|
#ifndef RESOURCE_H
|
||||||
#define RESOURCE_H
|
#define RESOURCE_H
|
||||||
|
|
||||||
#include "reference.h"
|
#include "object/reference.h"
|
||||||
|
|
||||||
#include "psignal.h"
|
#include "psignal.h"
|
||||||
|
|
||||||
|
@ -6,21 +6,21 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "pool_vector.h"
|
#include "core/pool_vector.h"
|
||||||
#include "aabb.h"
|
#include "core/aabb.h"
|
||||||
#include "basis.h"
|
#include "core/basis.h"
|
||||||
#include "color.h"
|
#include "core/color.h"
|
||||||
#include "face3.h"
|
#include "face3.h"
|
||||||
#include "plane.h"
|
#include "core/plane.h"
|
||||||
#include "projection.h"
|
#include "core/projection.h"
|
||||||
#include "quaternion.h"
|
#include "core/quaternion.h"
|
||||||
#include "transform.h"
|
#include "core/transform.h"
|
||||||
#include "transform_2d.h"
|
#include "core/transform_2d.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include "vector3i.h"
|
#include "core/vector3i.h"
|
||||||
#include "vector4.h"
|
#include "core/vector4.h"
|
||||||
#include "vector4i.h"
|
#include "core/vector4i.h"
|
||||||
#include "ustring.h"
|
#include "core/ustring.h"
|
||||||
#include "array.h"
|
#include "array.h"
|
||||||
#include "dictionary.h"
|
#include "dictionary.h"
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include "application.h"
|
#include "render_core/application.h"
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
#include "window.h"
|
#include "render_core/window.h"
|
||||||
|
|
||||||
void Application::event() {
|
void Application::event() {
|
||||||
scene->event();
|
scene->event();
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "scene.h"
|
#include "render_core/scene.h"
|
||||||
|
|
||||||
class AppWindow;
|
class AppWindow;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#ifndef COLOR_MATERIAL_H
|
#ifndef COLOR_MATERIAL_H
|
||||||
#define COLOR_MATERIAL_H
|
#define COLOR_MATERIAL_H
|
||||||
|
|
||||||
#include "material.h"
|
#include "render_core/material.h"
|
||||||
|
|
||||||
#include "camera_3d.h"
|
#include "render_objects/camera_3d.h"
|
||||||
|
|
||||||
class ColorMaterial : public Material {
|
class ColorMaterial : public Material {
|
||||||
public:
|
public:
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#ifndef COLORED_MATERIAL_H
|
#ifndef COLORED_MATERIAL_H
|
||||||
#define COLORED_MATERIAL_H
|
#define COLORED_MATERIAL_H
|
||||||
|
|
||||||
#include "material.h"
|
#include "render_core/material.h"
|
||||||
|
|
||||||
#include "color.h"
|
#include "core/color.h"
|
||||||
|
|
||||||
#include "camera_3d.h"
|
#include "render_objects/camera_3d.h"
|
||||||
|
|
||||||
class ColoredMaterial : public Material {
|
class ColoredMaterial : public Material {
|
||||||
public:
|
public:
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "image.h"
|
#include "render_core/image.h"
|
||||||
|
|
||||||
#include "error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "hash_map.h"
|
#include "core/hash_map.h"
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "memory.h"
|
#include "core/memory.h"
|
||||||
#include "vector3.h"
|
#include "core/vector3.h"
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
#include "color.h"
|
#include "core/color.h"
|
||||||
#include "rect2.h"
|
#include "core/rect2.h"
|
||||||
#include "rect2i.h"
|
#include "core/rect2i.h"
|
||||||
#include "reference.h"
|
#include "object/reference.h"
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include "vector2i.h"
|
#include "core/vector2i.h"
|
||||||
|
|
||||||
class Image : public Reference {
|
class Image : public Reference {
|
||||||
SFW_OBJECT(Image, Reference);
|
SFW_OBJECT(Image, Reference);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "material.h"
|
#include "render_core/material.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#ifndef MATERIAL_H
|
#ifndef MATERIAL_H
|
||||||
#define MATERIAL_H
|
#define MATERIAL_H
|
||||||
|
|
||||||
#include "projection.h"
|
#include "core/projection.h"
|
||||||
#include "shader.h"
|
#include "render_core/shader.h"
|
||||||
#include "transform.h"
|
#include "core/transform.h"
|
||||||
#include "transform_2d.h"
|
#include "core/transform_2d.h"
|
||||||
|
|
||||||
class Material {
|
class Material {
|
||||||
public:
|
public:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "mesh.h"
|
#include "render_core/mesh.h"
|
||||||
|
|
||||||
#include "shader.h"
|
#include "render_core/shader.h"
|
||||||
|
|
||||||
void Mesh::add_vertex2(float x, float y) {
|
void Mesh::add_vertex2(float x, float y) {
|
||||||
vertices.push_back(x);
|
vertices.push_back(x);
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#ifndef MESH_H
|
#ifndef MESH_H
|
||||||
#define MESH_H
|
#define MESH_H
|
||||||
|
|
||||||
#include "vector.h"
|
#include "core/vector.h"
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "3rd_glad.h"
|
#include "render_core/3rd_glad.h"
|
||||||
|
|
||||||
class Mesh {
|
class Mesh {
|
||||||
public:
|
public:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user