Isle
Loading...
Searching...
No Matches
camera.cpp
Go to the documentation of this file.
1#include "impl.h"
2
3using namespace TglImpl;
4
7
8// FUNCTION: LEGO1 0x100a36f0
9// FUNCTION: BETA10 0x1016f2e0
11{
12 return reinterpret_cast<void*>(&m_data);
13}
14
15// FUNCTION: LEGO1 0x100a3700
17{
18 D3DRMMATRIX4D helper;
19 D3DRMMATRIX4D* pTransformation = Translate(matrix, helper);
20
21 D3DVECTOR position;
22 Result result;
23 Result result2;
24
25 result2 = ResultVal(m_data->GetPosition(0, &position));
26 result = ResultVal(m_data->AddTransform(D3DRMCOMBINE_REPLACE, *pTransformation));
27 // The did this second call just to assert on the return value
28 result2 = ResultVal(m_data->GetPosition(0, &position));
29
30 return result;
31}
[AI] Implementation of Tgl::Camera, wraps a Direct3DRMFrame2 and provides transformation management [...
Definition: impl.h:666
Result SetTransformation(FloatMatrix4 &) override
Sets the camera transformation matrix [AI].
Definition: camera.cpp:16
void * ImplementationDataPtr() override
Returns Direct3DRMFrame2 implementation pointer [AI].
Definition: camera.cpp:10
[AI] Represents a viewpoint in the 3D scene.
Definition: tgl.h:531
@ D3DRMCOMBINE_REPLACE
Definition: d3drmdef.h:109
D3DVALUE D3DRMMATRIX4D[4][4]
Definition: d3drmdef.h:35
#define DECOMP_SIZE_ASSERT(T, S)
Definition: decomp.h:19
[AI] Forward declaration for Direct3DRMTexture interface [AI]
Definition: impl.h:23
Result ResultVal(HRESULT result)
Returns a Tgl Result value for HRESULT [AI].
Definition: impl.h:35
D3DRMRENDERQUALITY Translate(ShadingModel tglShadingModel)
Converts Tgl shading model enum to D3DRM enum [AI].
Definition: impl.h:1398
Result
[AI] Result type used throughout the Tgl API to report operation success or failure.
Definition: tgl.h:126
float FloatMatrix4[4][4]
[AI] Represents a 4x4 matrix of single-precision floating point values.
Definition: tglvector.h:53