Tramway SDK
direct3d.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_RENDER_DIRECT3D_DIRECT3D_H
5#define TRAM_SDK_RENDER_DIRECT3D_DIRECT3D_H
6
7#include <render/render.h>
8#include <render/renderer.h>
9
10namespace tram::Render::API {
12 uint32_t flags = 0;
13
14 Pose* pose = nullptr;
15
16 mat4 matrix = mat4(1.0f);
17
18 uint32_t lights[4] = {0};
19
20 IDirect3DVertexBuffer9* vertex_buffer = nullptr;
21 IDirect3DIndexBuffer9* index_buffer = nullptr;
22
23 uint32_t vertex_count = 0;
24 uint32_t index_length = 0;
25 uint32_t index_offset = 0;
26
27 uint32_t fvf = 0;
28
29 uint32_t layer = 0;
30 IDirect3DTexture9* lightmap = nullptr;
31 IDirect3DTexture9* texture = nullptr;
32
33 vec4 color = {1.0f, 1.0f, 1.0f, 1.0f};
34
35 float specular_weight = 0.0f;
36 float specular_exponent = 1.0f;
38 };
39
40 struct D3DLight {
41 vec3 location = {0.0f, 0.0f, 0.0f};
42 vec3 color = {0.0f, 0.0f, 0.0f};
43 float distance = 0.0f;
44 vec3 direction = {0.0f, 0.0f, -1.0f};
45 float exponent = 0.0f;
46 };
47}
48
49#endif // TRAM_SDK_RENDER_DIRECT3D_DIRECT3D_H
Definition: api.h:6
glm::vec4 vec4
Definition: math.h:16
glm::vec3 vec3
Definition: math.h:12
glm::mat4 mat4
Definition: math.h:15
Definition: direct3d.h:11
float specular_weight
Definition: direct3d.h:35
mat4 matrix
Definition: direct3d.h:16
uint32_t layer
Definition: direct3d.h:29
float specular_transparency
Definition: direct3d.h:37
Pose * pose
Definition: direct3d.h:14
IDirect3DVertexBuffer9 * vertex_buffer
Definition: direct3d.h:20
uint32_t flags
Definition: direct3d.h:12
IDirect3DIndexBuffer9 * index_buffer
Definition: direct3d.h:21
uint32_t lights[4]
Definition: direct3d.h:18
uint32_t index_length
Definition: direct3d.h:24
uint32_t vertex_count
Definition: direct3d.h:23
float specular_exponent
Definition: direct3d.h:36
uint32_t fvf
Definition: direct3d.h:27
IDirect3DTexture9 * lightmap
Definition: direct3d.h:30
IDirect3DTexture9 * texture
Definition: direct3d.h:31
uint32_t index_offset
Definition: direct3d.h:25
vec4 color
Definition: direct3d.h:33
Definition: direct3d.h:40
float exponent
Definition: direct3d.h:45
vec3 color
Definition: direct3d.h:42
float distance
Definition: direct3d.h:43
vec3 location
Definition: direct3d.h:41
vec3 direction
Definition: direct3d.h:44
Definition: animation.h:36