/usr/include/cal3d/coremodel.h is in libcal3d12-dev 0.11.0-4.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | //****************************************************************************//
// coremodel.h //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
//****************************************************************************//
// This library 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 2.1 of the License, or (at //
// your option) any later version. //
//****************************************************************************//
#ifndef CAL_COREMODEL_H
#define CAL_COREMODEL_H
#include "cal3d/coreanimation.h"
#include "cal3d/corematerial.h"
#include "cal3d/coremesh.h"
#include "cal3d/coreskeleton.h"
#include "cal3d/global.h"
class CalCoreMorphAnimation;
class CAL3D_API CalCoreModel
{
public:
CalCoreModel(const std::string& name);
~CalCoreModel();
Cal::UserData getUserData();
void setUserData(Cal::UserData userData);
void scale(float factor);
// animations
int addCoreAnimation(CalCoreAnimation *pCoreAnimation);
CalCoreAnimation *getCoreAnimation(int coreAnimationId);
int getCoreAnimationCount();
int loadCoreAnimation(const std::string& strFilename);
int loadCoreAnimation(const std::string& strFilename, const std::string& strAnimationName);
int unloadCoreAnimation(const std::string& name);
int unloadCoreAnimation(int coreAnimationId);
bool saveCoreAnimation(const std::string& strFilename, int coreAnimationId);
bool addAnimationName(const std::string& strAnimationName, int coreAnimationId);
int getCoreAnimationId(const std::string& strAnimationName);
// morph animations
int addCoreMorphAnimation(CalCoreMorphAnimation *pCoreMorphAnimation);
CalCoreMorphAnimation *getCoreMorphAnimation(int coreMorphAnimationId);
int getCoreMorphAnimationCount();
// materials
int addCoreMaterial(CalCoreMaterial *pCoreMaterial);
bool createCoreMaterialThread(int coreMaterialThreadId);
CalCoreMaterial *getCoreMaterial(int coreMaterialId);
int getCoreMaterialCount();
int getCoreMaterialId(int coreMaterialThreadId, int coreMaterialSetId);
int loadCoreMaterial(const std::string& strFilename);
int loadCoreMaterial(const std::string& strFilename, const std::string& strMaterialName);
int unloadCoreMaterial(const std::string& name);
int unloadCoreMaterial(int coreMaterialId);
bool saveCoreMaterial(const std::string& strFilename, int coreMaterialId);
bool setCoreMaterialId(int coreMaterialThreadId, int coreMaterialSetId, int coreMaterialId);
bool addMaterialName(const std::string& strMaterialName, int coreMaterialId);
int getCoreMaterialId(const std::string& strMaterialName);
// meshes
int addCoreMesh(CalCoreMesh *pCoreMesh);
CalCoreMesh *getCoreMesh(int coreMeshId);
int getCoreMeshCount();
int loadCoreMesh(const std::string& strFilename);
int loadCoreMesh(const std::string& strFilename, const std::string& strMeshName);
int unloadCoreMesh(const std::string& name);
int unloadCoreMesh(int coreMeshId);
bool saveCoreMesh(const std::string& strFilename, int coreMeshId);
bool addMeshName(const std::string& strMeshName, int coreMeshId);
int getCoreMeshId(const std::string& strMeshName);
// skeleton
CalCoreSkeleton *getCoreSkeleton();
bool loadCoreSkeleton(const std::string& strFilename);
bool saveCoreSkeleton(const std::string& strFilename);
void setCoreSkeleton(CalCoreSkeleton *pCoreSkeleton);
void addBoneName(const std::string& strBoneName, int boneId);
int getBoneId(const std::string& strBoneName);
// member variables
private:
std::string m_strName;
CalCoreSkeletonPtr m_pCoreSkeleton;
std::vector<CalCoreAnimationPtr> m_vectorCoreAnimation;
std::vector<CalCoreMorphAnimation *> m_vectorCoreMorphAnimation;
std::vector<CalCoreMeshPtr> m_vectorCoreMesh;
std::vector<CalCoreMaterialPtr> m_vectorCoreMaterial;
std::map<int, std::map<int, int> > m_mapmapCoreMaterialThread;
Cal::UserData m_userData;
std::map<std::string, int> m_animationName;
std::map<std::string, int> m_materialName;
std::map<std::string, int> m_meshName;
};
#endif
//****************************************************************************//
|