| 1981 | } |
| 1982 | |
| 1983 | void TSShape::createEmptyShape() |
| 1984 | { |
| 1985 | nodes.set(dMalloc(1 * sizeof(Node)), 1); |
| 1986 | nodes[0].nameIndex = 1; |
| 1987 | nodes[0].parentIndex = -1; |
| 1988 | nodes[0].firstObject = 0; |
| 1989 | nodes[0].firstChild = -1; |
| 1990 | nodes[0].nextSibling = -1; |
| 1991 | |
| 1992 | objects.set(dMalloc(1 * sizeof(Object)), 1); |
| 1993 | objects[0].nameIndex = 2; |
| 1994 | objects[0].numMeshes = 1; |
| 1995 | objects[0].startMeshIndex = 0; |
| 1996 | objects[0].nodeIndex = 0; |
| 1997 | objects[0].nextSibling = -1; |
| 1998 | objects[0].firstDecal = -1; |
| 1999 | |
| 2000 | objectStates.set(dMalloc(1 * sizeof(ObjectState)), 1); |
| 2001 | objectStates[0].vis = 1; |
| 2002 | objectStates[0].frameIndex = 0; |
| 2003 | objectStates[0].matFrameIndex = 0; |
| 2004 | |
| 2005 | subShapeFirstNode.set(dMalloc(1 * sizeof(S32)), 1); |
| 2006 | subShapeFirstNode[0] = 0; |
| 2007 | |
| 2008 | subShapeFirstObject.set(dMalloc(1 * sizeof(S32)), 1); |
| 2009 | subShapeFirstObject[0] = 0; |
| 2010 | |
| 2011 | detailFirstSkin.set(NULL, 0); |
| 2012 | |
| 2013 | subShapeNumNodes.set(dMalloc(1 * sizeof(S32)), 1); |
| 2014 | subShapeNumNodes[0] = 1; |
| 2015 | |
| 2016 | subShapeNumObjects.set(dMalloc(1 * sizeof(S32)), 1); |
| 2017 | subShapeNumObjects[0] = 1; |
| 2018 | |
| 2019 | details.set(dMalloc(1 * sizeof(Detail)), 1); |
| 2020 | details[0].nameIndex = 0; |
| 2021 | details[0].subShapeNum = 0; |
| 2022 | details[0].objectDetailNum = 0; |
| 2023 | details[0].size = 2.0f; |
| 2024 | details[0].averageError = -1.0f; |
| 2025 | details[0].maxError = -1.0f; |
| 2026 | details[0].polyCount = 0; |
| 2027 | |
| 2028 | defaultRotations.set(dMalloc(1 * sizeof(Quat16)), 1); |
| 2029 | defaultRotations[0].x = 0.0f; |
| 2030 | defaultRotations[0].y = 0.0f; |
| 2031 | defaultRotations[0].z = 0.0f; |
| 2032 | defaultRotations[0].w = 0.0f; |
| 2033 | |
| 2034 | defaultTranslations.set(dMalloc(1 * sizeof(Point3F)), 1); |
| 2035 | defaultTranslations[0].set(0.0f, 0.0f, 0.0f); |
| 2036 | |
| 2037 | subShapeFirstTranslucentObject.set(dMalloc(1 * sizeof(S32)), 1); |
| 2038 | subShapeFirstTranslucentObject[0] = 1; |
| 2039 | |
| 2040 | alphaIn.set(dMalloc(1 * sizeof(F32)), 1); |