mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Moved BitMap to core.
This commit is contained in:
parent
3902cf1924
commit
049440aaf1
@ -200,6 +200,7 @@ SConscript("log/SCsub")
|
|||||||
SConscript("object/SCsub")
|
SConscript("object/SCsub")
|
||||||
SConscript("input/SCsub")
|
SConscript("input/SCsub")
|
||||||
SConscript("bind/SCsub")
|
SConscript("bind/SCsub")
|
||||||
|
SConscript("scene/SCsub")
|
||||||
|
|
||||||
# Build it all as a library
|
# Build it all as a library
|
||||||
lib = env.add_library("core", env.core_sources)
|
lib = env.add_library("core", env.core_sources)
|
||||||
|
6
core/scene/SCsub
Normal file
6
core/scene/SCsub
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
Import("env")
|
||||||
|
|
||||||
|
env.add_source_files(env.core_sources, "resources/*.cpp")
|
||||||
|
#env.add_source_files(env.core_sources, "*.cpp")
|
@ -33,7 +33,7 @@
|
|||||||
#include "core/math/rect2.h"
|
#include "core/math/rect2.h"
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
|
|
||||||
void EditorAtlasPacker::_plot_triangle(Ref<BitMap> p_bitmap, Vector2i *vertices) {
|
void EditorAtlasPacker::_plot_triangle(Ref<BitMap> p_bitmap, Vector2i *vertices) {
|
||||||
int width = p_bitmap->get_size().width;
|
int width = p_bitmap->get_size().width;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include "core/math/vector2.h"
|
#include "core/math/vector2.h"
|
||||||
#include "core/containers/vector.h"
|
#include "core/containers/vector.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "core/object/reference.h"
|
#include "core/object/reference.h"
|
||||||
|
|
||||||
class BitMap;
|
class BitMap;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "core/io/image_loader.h"
|
#include "core/io/image_loader.h"
|
||||||
#include "editor/editor_file_system.h"
|
#include "editor/editor_file_system.h"
|
||||||
#include "editor/editor_node.h"
|
#include "editor/editor_node.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
#include "core/io/image.h"
|
#include "core/io/image.h"
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include "editor/editor_inspector.h"
|
#include "editor/editor_inspector.h"
|
||||||
#include "editor/editor_plugin.h"
|
#include "editor/editor_plugin.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
|
|
||||||
#include "scene/gui/box_container.h"
|
#include "scene/gui/box_container.h"
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "core/os/os.h"
|
#include "core/os/os.h"
|
||||||
#include "editor/editor_settings.h"
|
#include "editor/editor_settings.h"
|
||||||
#include "editor/editor_scale.h"
|
#include "editor/editor_scale.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "scene/resources/font/dynamic_font.h"
|
#include "scene/resources/font/dynamic_font.h"
|
||||||
#include "scene/resources/material/material.h"
|
#include "scene/resources/material/material.h"
|
||||||
#include "scene/resources/mesh/mesh.h"
|
#include "scene/resources/mesh/mesh.h"
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "scene/2d/mesh_instance_2d.h"
|
#include "scene/2d/mesh_instance_2d.h"
|
||||||
#include "scene/2d/polygon_2d.h"
|
#include "scene/2d/polygon_2d.h"
|
||||||
#include "scene/gui/box_container.h"
|
#include "scene/gui/box_container.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "thirdparty/misc/clipper.hpp"
|
#include "thirdparty/misc/clipper.hpp"
|
||||||
#include "scene/resources/mesh/mesh.h"
|
#include "scene/resources/mesh/mesh.h"
|
||||||
#include "core/variant/array.h"
|
#include "core/variant/array.h"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "core/io/resource_loader.h"
|
#include "core/io/resource_loader.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
|
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
|
|
||||||
String ImagePickerButton::get_image_path() {
|
String ImagePickerButton::get_image_path() {
|
||||||
return image_path;
|
return image_path;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "core/input/input_map.h"
|
#include "core/input/input_map.h"
|
||||||
#include "core/input/input.h"
|
#include "core/input/input.h"
|
||||||
#include "core/os/os.h"
|
#include "core/os/os.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "scene/resources/shapes_2d/rectangle_shape_2d.h"
|
#include "scene/resources/shapes_2d/rectangle_shape_2d.h"
|
||||||
#include "scene/resources/texture.h"
|
#include "scene/resources/texture.h"
|
||||||
#include "scene/main/scene_string_names.h"
|
#include "scene/main/scene_string_names.h"
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "texture_button.h"
|
#include "texture_button.h"
|
||||||
|
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "scene/main/scene_string_names.h"
|
#include "scene/main/scene_string_names.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
#include "scene/main/viewport.h"
|
#include "scene/main/viewport.h"
|
||||||
#include "scene/main/world.h"
|
#include "scene/main/world.h"
|
||||||
#include "scene/audio/audio_stream_sample.h"
|
#include "scene/audio/audio_stream_sample.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
#include "scene/resources/shapes/box_shape.h"
|
#include "scene/resources/shapes/box_shape.h"
|
||||||
#include "scene/resources/shapes/capsule_shape.h"
|
#include "scene/resources/shapes/capsule_shape.h"
|
||||||
#include "scene/resources/shapes_2d/capsule_shape_2d.h"
|
#include "scene/resources/shapes_2d/capsule_shape_2d.h"
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "core/object/method_bind_ext.gen.inc"
|
#include "core/object/method_bind_ext.gen.inc"
|
||||||
#include "core/os/os.h"
|
#include "core/os/os.h"
|
||||||
#include "scene/resources/mesh/mesh.h"
|
#include "scene/resources/mesh/mesh.h"
|
||||||
#include "scene/resources/bit_map.h"
|
#include "core/scene/resources/bit_map.h"
|
||||||
|
|
||||||
Size2 Texture::get_size() const {
|
Size2 Texture::get_size() const {
|
||||||
return Size2(get_width(), get_height());
|
return Size2(get_width(), get_height());
|
||||||
|
Loading…
Reference in New Issue
Block a user