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
/********************************************************************
 *
 *    File:       fsCNative3dScene.h
 *
 *    Purpose:    bgfx implementation of 3d scene.
 *
 *				  TODO: 3d is not supported by the bgfx backend yet -
 *				  this exists so the shared renderData dispatch
 *				  compiles.
 *
 *********************************************************************/

#ifndef fsCNative3dScenehdr
#define fsCNative3dScenehdr

#include <fsCore/fsBaseTypes.h>

#if defined fs3d

#include "fsINative.h"

#include <fs3d/fsI3dScene.h>

class fsC3dCamera;
class fsI3dLight;
class fsC3dSprite;
class fsC3dLight;
struct fsPoint;
class fsC3dModelData;


class fsCNative3dScene : public fsINative
{
	friend class fsCNative3dSceneRenderData;

public:

	void pick(const fsPoint& pScreenPos, fsI3dScene::fsTPickCallback pPickCallback);
	void spriteAdd(fsC3dSprite* const);
	void spriteRemove(fsC3dSprite* const);
	void ligthtAdd(fsI3dLight* const pLight);
	void ligthtRemove(fsI3dLight* const pLight);
	void cameraSet(fsC3dCamera* const pCamera);

	virtual ~fsCNative3dScene();<--- Destructor in derived class

protected:

	virtual void renderDo() override;
	virtual void matrixApplyDo(const fsAffineMtx2d& pRenderMatrix) override;

	fsCNative3dScene();

private:

};

#endif

#endif