Tramway SDK
api.h
Go to the documentation of this file.
1#ifndef TRAM_SDK_RENDER_OPENGL_API_H
2#define TRAM_SDK_RENDER_OPENGL_API_H
3
4#include <render/render.h>
5#include <render/renderer.h>
6
7//namespace tram::Render::OpenGL {
8
9//void Init();
10
11//void Render();
12
13//void SetScreenSize (float width, float height);
14
15//drawlistentry_t InsertDrawListEntry ();
16//uint32_t GetFlags (drawlistentry_t entry);
17//void SetFlags (drawlistentry_t entry, uint32_t flags);
18//void SetLayer (drawlistentry_t entry, uint32_t flags);
19//void SetPose (drawlistentry_t entry, Pose* pose);
20//void SetLightmap (drawlistentry_t entry, uint32_t lightmap);
21//void SetLights (drawlistentry_t entry, uint32_t* lights);
22//void SetMatrix (drawlistentry_t entry, const mat4& matrix);
23//void SetDrawListVertexArray (drawlistentry_t entry, uint32_t vertex_array_handle);
24//void SetDrawListIndexRange (drawlistentry_t entry, uint32_t index_offset, uint32_t index_length);
25//void SetDrawListShader (drawlistentry_t entry, vertexformat_t vertex_format, materialtype_t material_type);
26//void SetDrawListTextures (drawlistentry_t entry, size_t texture_count, uint32_t* textures);
27//void SetScreenClear (vec3 clear_color, bool clear);
28
29//void SetLightingParameters (vec3 sun_direction, vec3 sun_color, vec3 ambient_color, uint32_t layer);
30//void SetViewParameters (vec3 position, quat rotation, uint32_t layer);
31
32//light_t MakeLight ();
33//void DeleteLight (light_t light);
34
35//void SetLightParameters (light_t light, vec3 location, vec3 color, float distance);
36
37//void RemoveDrawListEntry (drawlistentry_t entry);
38
39//uint32_t CreateTexture (ColorMode color_mode, TextureFilter texture_filter, uint32_t width, uint32_t height, void* data);
40
41// this bit of the API is a bit leaky
42// might change later!
43//void CreateIndexedVertexArray (VertexDefinition vertex_format, vertexhandle_t& vertex_buffer_handle, vertexhandle_t& index_buffer_handle, vertexhandle_t& vertex_array_handle, size_t vertex_size, void* vertex_data, size_t index_size, void* index_data);
44//void CreateVertexArray (VertexDefinition vertex_format, vertexhandle_t& vertex_buffer_handle, vertexhandle_t& vertex_array_handle);
45//void UpdateVertexArray (vertexhandle_t vertex_buffer_handle, size_t data_size, void* data);
46
47//void RenderFrame ();
48
49//}
50
51#endif // TRAM_SDK_RENDER_OPENGL_API_H