Initial Skeleton.

This commit is contained in:
Relintai 2019-10-20 21:19:00 +02:00
parent 3f74e3f401
commit 4a4c98fa68
8 changed files with 66 additions and 1 deletions

8
.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
.import
*.d
*.o
*.meta
*.pyc
*.obj
*.bc

View File

@ -1 +1,3 @@
# merge_texture
# merge_texture
TODO

5
SCsub Normal file
View File

@ -0,0 +1,5 @@
Import('env')
env.add_source_files(env.modules_sources,"register_types.cpp")
env.add_source_files(env.modules_sources,"merge_texture.cpp")

5
config.py Normal file
View File

@ -0,0 +1,5 @@
def can_build(env, platform):
return True
def configure(env):
pass

12
merge_texture.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "merge_texture.h"
MergeTexture::MergeTexture() {
}
MergeTexture::~MergeTexture() {
}
void MergeTexture::_bind_methods() {
}

18
merge_texture.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef MERGE_TEXTURE_H
#define MERGE_TEXTURE_H
#include "scene/resources/texture.h"
class MergeTexture : public ImageTexture {
GDCLASS(MergeTexture, ImageTexture);
public:
MergeTexture();
~MergeTexture();
protected:
static void _bind_methods();
};
#endif

12
register_types.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "register_types.h"
#include "merge_texture.h"
void register_merge_texture_types() {
ClassDB::register_class<MergeTexture>();
}
void unregister_merge_texture_types() {
}

3
register_types.h Normal file
View File

@ -0,0 +1,3 @@
void register_merge_texture_types();
void unregister_merge_texture_types();