Revision 1378,
1.0 KB
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Line | |
---|
1 | #include "dxstdafx.h"
|
---|
2 | #include ".\renderer.h"
|
---|
3 | #include "Scene.h"
|
---|
4 |
|
---|
5 | Renderer::Renderer(void)
|
---|
6 | {
|
---|
7 | //Get the Device
|
---|
8 | this->device = DXUTGetD3DDevice();
|
---|
9 | this->myRenderPriority = 1;
|
---|
10 | this->nodeAdded = false;
|
---|
11 | this->rendererType = 0;
|
---|
12 | }
|
---|
13 |
|
---|
14 | Renderer::~Renderer(void)
|
---|
15 | {
|
---|
16 | }
|
---|
17 |
|
---|
18 | void Renderer::setScene(Scene &scene)
|
---|
19 | {
|
---|
20 | this->myScene = &scene;
|
---|
21 | }
|
---|
22 |
|
---|
23 | void Renderer::setNode(WPTR<Node> &_myNode)
|
---|
24 | {
|
---|
25 | this->nodeAdded = true;
|
---|
26 | this->myNode = _myNode;
|
---|
27 | }
|
---|
28 |
|
---|
29 | void Renderer::setRenderPriority(int _priority)
|
---|
30 | {
|
---|
31 | this->myRenderPriority = _priority;
|
---|
32 | }
|
---|
33 |
|
---|
34 | int Renderer::getRenderPriority()
|
---|
35 | {
|
---|
36 | return this->myRenderPriority;
|
---|
37 | }
|
---|
38 |
|
---|
39 | bool Renderer::isA(int _rendererType)
|
---|
40 | {
|
---|
41 | return (_rendererType == this->rendererType);
|
---|
42 | }
|
---|
43 |
|
---|
44 | bool Renderer::needsExtraPass() {
|
---|
45 | return false;
|
---|
46 | }
|
---|
47 |
|
---|
48 | //Im Normalfall nichts zu tun!
|
---|
49 | void Renderer::setCurrentTexture(IDirect3DTexture9* texture) {}
|
---|
50 |
|
---|
51 | void Renderer::setWorldMatrix(D3DXMATRIX &_worldMat) {}
|
---|
52 | void Renderer::setViewMatrix(D3DXMATRIX &_viewMat) {}
|
---|
53 | void Renderer::setProjectionMatrix(D3DXMATRIX &_projMat) {} |
---|
Note: See
TracBrowser
for help on using the repository browser.