X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fgoat3d%2Fsrc%2Futil.h;fp=libs%2Fgoat3d%2Fsrc%2Futil.h;h=66b9d9e89834611cc30d66190a666cc9ac567f6c;hb=4c42122003b1e2e859e63013aaf15e270d47b082;hp=0000000000000000000000000000000000000000;hpb=26bd2163df04d5f7007584fcf835b1f687f3cd02;p=deeprace diff --git a/libs/goat3d/src/util.h b/libs/goat3d/src/util.h new file mode 100644 index 0000000..66b9d9e --- /dev/null +++ b/libs/goat3d/src/util.h @@ -0,0 +1,44 @@ +/* +goat3d - 3D scene, and animation file format library. +Copyright (C) 2013-2023 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with this program. If not, see . +*/ +#ifndef GOAT3D_UTIL_H_ +#define GOAT3D_UTIL_H_ + +#include "goat3d.h" + +#ifndef _MSC_VER +#ifdef __sgi +#include +#else +#include +#endif +#else +typedef unsigned __int32 uint32_t; +#endif + +#if defined(__mips) +#define GOAT3D_BIGEND +#endif + +int calc_b64_size(const char *s); + +GOAT3DAPI void *goat3d_b64decode(const char *str, void *buf, int *bufsz); +#define b64decode goat3d_b64decode + +GOAT3DAPI void goat3d_bswap32(void *buf, int count); + +#endif /* GOAT3D_UTIL_H_ */