Change enum values
This commit is contained in:
parent
fdebcf9499
commit
098555453a
|
@ -77,7 +77,9 @@ int main(int argc, char *argv[]) {
|
||||||
game.add_event(scene);
|
game.add_event(scene);
|
||||||
|
|
||||||
se::ecs::Entity other_e = scene->create_entity();
|
se::ecs::Entity other_e = scene->create_entity();
|
||||||
other_e.add_component<se::ModelComponent>("examples/dev_testing/resources/transparent_window.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE | simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_TRANSPARENT);
|
other_e.add_component<se::ModelComponent>("examples/dev_testing/resources/transparent_window.fbx",
|
||||||
|
se::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE |
|
||||||
|
se::gfx::ModelProcessingFlags::MdlProcFlag_TRANSPARENT);
|
||||||
auto &other_transform = other_e.add_component<se::TransformComponent>();
|
auto &other_transform = other_e.add_component<se::TransformComponent>();
|
||||||
other_transform.translate(5.f, 0.5f, 1.f);
|
other_transform.translate(5.f, 0.5f, 1.f);
|
||||||
|
|
||||||
|
@ -86,13 +88,16 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// entity.add_component<se::ModelComponent>("examples/dev_testing/resources/planks/planks.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE);
|
// entity.add_component<se::ModelComponent>("examples/dev_testing/resources/planks/planks.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE);
|
||||||
//entity.add_component<se::ModelComponent>("examples/dev_testing/resources/bricks/bricks.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE);
|
//entity.add_component<se::ModelComponent>("examples/dev_testing/resources/bricks/bricks.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE);
|
||||||
entity.add_component<se::ModelComponent>("examples/dev_testing/resources/transparent_window.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE | simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_TRANSPARENT);
|
entity.add_component<se::ModelComponent>("examples/dev_testing/resources/transparent_window.fbx",
|
||||||
|
se::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE |
|
||||||
|
se::gfx::ModelProcessingFlags::MdlProcFlag_TRANSPARENT);
|
||||||
|
|
||||||
auto &transform_comp = entity.add_component<se::TransformComponent>();
|
auto &transform_comp = entity.add_component<se::TransformComponent>();
|
||||||
transform_comp.translate(4.f, 0.f, 0.f);
|
transform_comp.translate(4.f, 0.f, 0.f);
|
||||||
|
|
||||||
se::ecs::Entity brick_e = scene->create_entity();
|
se::ecs::Entity brick_e = scene->create_entity();
|
||||||
brick_e.add_component<se::ModelComponent>("examples/dev_testing/resources/bricks/bricks.fbx", simpleengine::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE);
|
brick_e.add_component<se::ModelComponent>("examples/dev_testing/resources/bricks/bricks.fbx",
|
||||||
|
se::gfx::ModelProcessingFlags::MdlProcFlag_CALCULATE_TANGENT_SPACE);
|
||||||
auto &brick_transf = brick_e.add_component<se::TransformComponent>();
|
auto &brick_transf = brick_e.add_component<se::TransformComponent>();
|
||||||
brick_transf.translate(6.f, -0.5f, 1.f);
|
brick_transf.translate(6.f, -0.5f, 1.f);
|
||||||
|
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
//#include <assimp/mesh.h>
|
//#include <assimp/mesh.h>
|
||||||
|
|
||||||
namespace simpleengine::gfx {
|
namespace simpleengine::gfx {
|
||||||
enum ModelProcessingFlags : uint8_t {
|
enum ModelProcessingFlags {
|
||||||
MdlProcFlag_NONE = 0b00000000,
|
MdlProcFlag_NONE = 0x0,
|
||||||
MdlProcFlag_FLIP_TEX_COORDS_VERTICALLY = 0b00000001,
|
MdlProcFlag_FLIP_TEX_COORDS_VERTICALLY = 0x1,
|
||||||
MdlProcFlag_FLIP_TEX_COORDS_HORIZONTALLY = 0b00000010,
|
MdlProcFlag_FLIP_TEX_COORDS_HORIZONTALLY = 0x2,
|
||||||
MdlProcFlag_CALCULATE_TANGENT_SPACE = 0b00000100,
|
MdlProcFlag_CALCULATE_TANGENT_SPACE = 0x4,
|
||||||
MdlProcFlag_TRANSPARENT = 0b00001000,
|
MdlProcFlag_TRANSPARENT = 0x8,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,14 +18,11 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace simpleengine::gfx {
|
namespace simpleengine::gfx {
|
||||||
enum TextureFlags : uint8_t {
|
enum TextureFlags {
|
||||||
TexFlags_IMG_2D = 0b00000001,
|
TexFlags_IMG_2D = 0x1,
|
||||||
TexFlags_FLIP_VERTICALLY = 0b00000010,
|
TexFlags_FLIP_VERTICALLY = 0x2,
|
||||||
TexFlags_FLIP_HORIZONTALLY = 0b00000100,
|
TexFlags_FLIP_HORIZONTALLY = 0x4,
|
||||||
TexFlags_MIPMAP = 0b00001000,
|
TexFlags_MIPMAP = 0x8
|
||||||
/* TexFlags_NO_COLOR = 0b00010000,
|
|
||||||
TexFlags_RGB = 0b00100000,
|
|
||||||
TexFlags_RGBA = 0b01000000, */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Texture {
|
class Texture {
|
||||||
|
|
Loading…
Reference in New Issue