-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also some prep work for Ply exporting, build fix for linux
- Loading branch information
1 parent
e558090
commit 48767c4
Showing
7 changed files
with
77 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
Copyright (c) 2024 Anthony J. Thibault | ||
This software is licensed under the MIT License. See LICENSE for more details. | ||
*/ | ||
|
||
#include "binaryattribute.h" | ||
|
||
static uint32_t propertyTypeSizeArr[(size_t)BinaryAttribute::Type::NumTypes] = { | ||
0, // Unknown | ||
sizeof(int8_t), // Char | ||
sizeof(uint8_t), // UChar | ||
sizeof(int16_t), // Short | ||
sizeof(uint16_t), // UShort | ||
sizeof(int32_t), // Int | ||
sizeof(uint32_t), // UInt | ||
sizeof(float), // Float | ||
sizeof(double) // Double | ||
}; | ||
|
||
BinaryAttribute::BinaryAttribute(Type typeIn, size_t offsetIn) : | ||
type(typeIn), | ||
size(propertyTypeSizeArr[(uint32_t)typeIn]), | ||
offset(offsetIn) | ||
{ | ||
; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters