aboutsummaryrefslogtreecommitdiff
path: root/APEX_1.4/include/AssetPreview.h
blob: 21da310e58b8d9ad8cb3d2b173b42a0e6250b580 (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
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
/*
 * Copyright (c) 2008-2017, NVIDIA CORPORATION.  All rights reserved.
 *
 * NVIDIA CORPORATION and its licensors retain all intellectual property
 * and proprietary rights in and to this software, related documentation
 * and any modifications thereto.  Any use, reproduction, disclosure or
 * distribution of this software and related documentation without an express
 * license agreement from NVIDIA CORPORATION is strictly prohibited.
 */


#ifndef ASSET_PREVIEW_H
#define ASSET_PREVIEW_H

/*!
\file
\brief class AssetPreview
*/

#include "ApexInterface.h"
#include "Renderable.h"

namespace nvidia
{
namespace apex
{

PX_PUSH_PACK_DEFAULT

/**
\brief Base class of all APEX asset previews

    The preview is a lightweight Renderable instance which can be
	rendered without having to create an ApexScene.  It is intended to be
	used by level editors to place assets within a level.
*/
class AssetPreview : public ApexInterface, public Renderable
{
public:

	/**
	\brief Set the preview instance's world pose.  This may include scaling.
	*/
	virtual void setPose(const PxMat44& pose) = 0;

	/**
	\brief Get the preview instance's world pose.

	\note can't return by reference as long as the internal representation is not identical.
	*/
	virtual const PxMat44 getPose() const = 0;
protected:
	AssetPreview() {}
};

PX_POP_PACK

}
} // end namespace nvidia::apex

#endif // ASSET_PREVIEW_H