aboutsummaryrefslogtreecommitdiff
path: root/APEX_1.4/externals/extensions/include/nvsimplemesh/NvSimpleMeshLoader.h
blob: e3820594da6c1c626b907f44e74b4d500254a99a (plain) (blame)
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
// TAGRELEASE: PUBLIC
#pragma once
#include <string>
#include <DirectXMath.h>

struct aiScene;
struct aiNode;

class NvSimpleRawMesh;

/*
    Allow loading of various mesh file formats and then simple extraction of various vertex/index streams
*/
class NvSimpleMeshLoader
{
public:

    NvSimpleMeshLoader();
    ~NvSimpleMeshLoader();

    bool LoadFile(LPWSTR szFilename);
    void XM_CALLCONV RecurseAddMeshes(const aiScene *scene, aiNode*pNode, DirectX::FXMMATRIX parentCompositeTransformD3D, bool bFlattenTransforms);

    int NumMeshes;
    NvSimpleRawMesh *pMeshes;
        
protected:

    std::string mediaPath;
};