gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
types.h
1// © Joseph Cameron - MIT License
2
3#ifndef GDK_GRAPHICS_TYPES_H
4#define GDK_GRAPHICS_TYPES_H
5
6#include <gdk/graphics/data_types.h>
7
8#include <memory>
9
10namespace gdk::graphics {
11 class entity;
12 class material;
13 class model;
14 class scene;
15 class screen_camera;
16 class shader_program;
17 class texture;
18 class texture_camera;
19
20 class context;
21
24//
25 using context_ptr_type = std::shared_ptr<graphics::context>;
26 using entity_ptr_type = std::shared_ptr<entity>;
27 using material_ptr_type = std::shared_ptr<material>;
28 using model_ptr_type = std::shared_ptr<model>;
29 using scene_ptr_type = std::shared_ptr<scene>;
30 using screen_camera_ptr_type = std::shared_ptr<screen_camera>;
31 using shader_ptr_type = std::shared_ptr<shader_program>;
32 using texture_camera_ptr_type = std::shared_ptr<texture_camera>;
33 using texture_ptr_type = std::shared_ptr<texture>;
34
35 using const_context_ptr_type = std::shared_ptr<const graphics::context>;
36 using const_entity_ptr_type = std::shared_ptr<const entity>;
37 using const_material_ptr_type = std::shared_ptr<const material>;
38 using const_model_ptr_type = std::shared_ptr<const model>;
39 using const_scene_ptr_type = std::shared_ptr<const scene>;
40 using const_screen_camera_ptr_type = std::shared_ptr<const screen_camera>;
41 using const_shader_ptr_type = std::shared_ptr<const shader_program>;
42 using const_texture_camera_ptr_type = std::shared_ptr<const texture_camera>;
43 using const_texture_ptr_type = std::shared_ptr<const texture>;
45}
46
47#endif
entry point for gdk-graphics
Definition context.h:23
represents an observable 3d object.
Definition entity.h:13
decides how models using the material should be drawn.
Definition material.h:21
Vertex data representing a 3D graphical object.
Definition model.h:10
a 3d environment within which cameras draw entities
Definition scene.h:18
Position, orientation and perspective from which entity(s) are drawn.
Definition screen_camera.h:12
Specifies drawing behaviours at the programmable stages in the graphics pipeline.
Definition shader_program.h:9
texture camera renders to textures instead of the screen
Definition texture_camera.h:12
uniform color data, usually used to color the surface of a 3d model, but also used for height maps,...
Definition texture.h:14