Renamed bx::init::* tags.

This commit is contained in:
Бранимир Караџић
2023-04-22 22:22:45 -07:00
parent a3e68cd9b7
commit e9d1e3d0fe
10 changed files with 36 additions and 36 deletions

View File

@@ -624,7 +624,7 @@ void parseObj(char* _data, uint32_t _size, Mesh* _mesh, bool _hasBc)
if (0 == bx::strCmp(argv[0], "vn") )
{
bx::Vec3 normal(bx::init::None);
bx::Vec3 normal(bx::InitNone);
bx::fromString(&normal.x, argv[1]);
bx::fromString(&normal.y, argv[2]);
bx::fromString(&normal.z, argv[3]);
@@ -642,7 +642,7 @@ void parseObj(char* _data, uint32_t _size, Mesh* _mesh, bool _hasBc)
}
else if (0 == bx::strCmp(argv[0], "vt") )
{
bx::Vec3 texcoord(bx::init::None);
bx::Vec3 texcoord(bx::InitNone);
texcoord.y = 0.0f;
texcoord.z = 0.0f;
@@ -783,7 +783,7 @@ void processGltfNode(cgltf_node* _node, Mesh* _mesh, Group* _group, bool _hasBc)
{
_mesh->m_positions.reserve(_mesh->m_positions.size() + accessorCount);
bx::Vec3 pos(bx::init::None);
bx::Vec3 pos(bx::InitNone);
for (cgltf_size v = 0; v < accessorCount; ++v)
{
@@ -797,7 +797,7 @@ void processGltfNode(cgltf_node* _node, Mesh* _mesh, Group* _group, bool _hasBc)
_mesh->m_normals.reserve(_mesh->m_normals.size() + accessorCount);
hasNormal = true;
bx::Vec3 normal(bx::init::None);
bx::Vec3 normal(bx::InitNone);
for (cgltf_size v = 0; v < accessorCount; ++v)
{
@@ -811,7 +811,7 @@ void processGltfNode(cgltf_node* _node, Mesh* _mesh, Group* _group, bool _hasBc)
_mesh->m_texcoords.reserve(_mesh->m_texcoords.size() + accessorCount);
hasTexcoord = true;
bx::Vec3 texcoord(bx::init::None);
bx::Vec3 texcoord(bx::InitNone);
for (cgltf_size v = 0; v < accessorCount; ++v)
{

View File

@@ -169,7 +169,7 @@ struct Camera
{
Camera()
{
init(bx::init::Zero, 2.0f, 0.01f, 100.0f);
init(bx::InitZero, 2.0f, 0.01f, 100.0f);
}
void init(const bx::Vec3& _center, float _distance, float _near, float _far)
@@ -265,8 +265,8 @@ struct Camera
struct Interp3f
{
bx::Vec3 curr = bx::init::None;
bx::Vec3 dest = bx::init::None;
bx::Vec3 curr = bx::InitNone;
bx::Vec3 dest = bx::InitNone;
};
Interp3f m_target;