feat: project skeleton, core types and math with transform tests
This commit is contained in:
1 parent
e4051bc6b5
commit
8a7e9e97f8
21 files changed
+515
-2
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#include <plot/core/status.hpp>
|
||||
|
||||
namespace plot {
|
||||
|
||||
const char* to_string(ErrorCode code) noexcept {
|
||||
switch (code) {
|
||||
case ErrorCode::Ok:
|
||||
return "Ok";
|
||||
case ErrorCode::InvalidArgument:
|
||||
return "InvalidArgument";
|
||||
case ErrorCode::OutOfMemory:
|
||||
return "OutOfMemory";
|
||||
case ErrorCode::GLFailure:
|
||||
return "GLFailure";
|
||||
case ErrorCode::Unsupported:
|
||||
return "Unsupported";
|
||||
case ErrorCode::NotImplemented:
|
||||
return "NotImplemented";
|
||||
}
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
} // namespace plot
|
||||
Reference in new issue
Block a user